* [PATCH 1/1] fix: clean apt-cache dirs in dpkg_runbuild as root
@ 2024-02-05 11:48 Felix Moessbauer
2024-02-07 8:19 ` Uladzimir Bely
2024-02-08 6:48 ` Uladzimir Bely
0 siblings, 2 replies; 4+ messages in thread
From: Felix Moessbauer @ 2024-02-05 11:48 UTC (permalink / raw)
To: isar-users; +Cc: Felix Moessbauer, Jan Kiszka
This patch fixes a regression introduced in a0b293c5: The cleaning
of the rootfs dir before dpkg_runbuild needs to be performed as root, as
this dir might contain data which cannot be deleted by the default user.
Reported-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
meta/classes/dpkg.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass
index 3fc29806..0578977d 100644
--- a/meta/classes/dpkg.bbclass
+++ b/meta/classes/dpkg.bbclass
@@ -34,7 +34,7 @@ CP_FLAGS ?= "-Ln --no-preserve=owner"
CP_FLAGS:sid ?= "-L --update=none --no-preserve=owner"
# Build package from sources using build script
-dpkg_runbuild[cleandirs] += "${WORKDIR}/rootfs"
+dpkg_runbuild[root_cleandirs] += "${WORKDIR}/rootfs"
dpkg_runbuild[vardepsexclude] += "${SBUILD_PASSTHROUGH_ADDITIONS}"
dpkg_runbuild() {
E="${@ isar_export_proxies(d)}"
--
2.39.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] fix: clean apt-cache dirs in dpkg_runbuild as root
2024-02-05 11:48 [PATCH 1/1] fix: clean apt-cache dirs in dpkg_runbuild as root Felix Moessbauer
@ 2024-02-07 8:19 ` Uladzimir Bely
2024-02-07 17:45 ` Jan Kiszka
2024-02-08 6:48 ` Uladzimir Bely
1 sibling, 1 reply; 4+ messages in thread
From: Uladzimir Bely @ 2024-02-07 8:19 UTC (permalink / raw)
To: Felix Moessbauer, isar-users; +Cc: Jan Kiszka
On Mon, 2024-02-05 at 12:48 +0100, 'Felix Moessbauer' via isar-users
wrote:
> This patch fixes a regression introduced in a0b293c5: The cleaning
> of the rootfs dir before dpkg_runbuild needs to be performed as root,
> as
> this dir might contain data which cannot be deleted by the default
> user.
>
> Reported-by: Jan Kiszka <jan.kiszka@siemens.com>
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
> meta/classes/dpkg.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass
> index 3fc29806..0578977d 100644
> --- a/meta/classes/dpkg.bbclass
> +++ b/meta/classes/dpkg.bbclass
> @@ -34,7 +34,7 @@ CP_FLAGS ?= "-Ln --no-preserve=owner"
> CP_FLAGS:sid ?= "-L --update=none --no-preserve=owner"
>
> # Build package from sources using build script
> -dpkg_runbuild[cleandirs] += "${WORKDIR}/rootfs"
> +dpkg_runbuild[root_cleandirs] += "${WORKDIR}/rootfs"
> dpkg_runbuild[vardepsexclude] += "${SBUILD_PASSTHROUGH_ADDITIONS}"
> dpkg_runbuild() {
> E="${@ isar_export_proxies(d)}"
> --
> 2.39.2
>
This has passed internal CI, so if noone against, we could merge this
fix faster than usually.
Jan, could you confirm that it fixes the regression you've discovered
with rebuilding?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] fix: clean apt-cache dirs in dpkg_runbuild as root
2024-02-07 8:19 ` Uladzimir Bely
@ 2024-02-07 17:45 ` Jan Kiszka
0 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2024-02-07 17:45 UTC (permalink / raw)
To: Uladzimir Bely, Felix Moessbauer, isar-users
On 07.02.24 09:19, Uladzimir Bely wrote:
> On Mon, 2024-02-05 at 12:48 +0100, 'Felix Moessbauer' via isar-users
> wrote:
>> This patch fixes a regression introduced in a0b293c5: The cleaning
>> of the rootfs dir before dpkg_runbuild needs to be performed as root,
>> as
>> this dir might contain data which cannot be deleted by the default
>> user.
>>
>> Reported-by: Jan Kiszka <jan.kiszka@siemens.com>
>> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
>> ---
>> meta/classes/dpkg.bbclass | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass
>> index 3fc29806..0578977d 100644
>> --- a/meta/classes/dpkg.bbclass
>> +++ b/meta/classes/dpkg.bbclass
>> @@ -34,7 +34,7 @@ CP_FLAGS ?= "-Ln --no-preserve=owner"
>> CP_FLAGS:sid ?= "-L --update=none --no-preserve=owner"
>>
>> # Build package from sources using build script
>> -dpkg_runbuild[cleandirs] += "${WORKDIR}/rootfs"
>> +dpkg_runbuild[root_cleandirs] += "${WORKDIR}/rootfs"
>> dpkg_runbuild[vardepsexclude] += "${SBUILD_PASSTHROUGH_ADDITIONS}"
>> dpkg_runbuild() {
>> E="${@ isar_export_proxies(d)}"
>> --
>> 2.39.2
>>
>
> This has passed internal CI, so if noone against, we could merge this
> fix faster than usually.
>
> Jan, could you confirm that it fixes the regression you've discovered
> with rebuilding?
Tested-by: Jan Kiszka <jan.kiszka@siemens.com>
Thanks,
Jan
--
Siemens AG, Technology
Linux Expert Center
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] fix: clean apt-cache dirs in dpkg_runbuild as root
2024-02-05 11:48 [PATCH 1/1] fix: clean apt-cache dirs in dpkg_runbuild as root Felix Moessbauer
2024-02-07 8:19 ` Uladzimir Bely
@ 2024-02-08 6:48 ` Uladzimir Bely
1 sibling, 0 replies; 4+ messages in thread
From: Uladzimir Bely @ 2024-02-08 6:48 UTC (permalink / raw)
To: Felix Moessbauer, isar-users; +Cc: Jan Kiszka
On Mon, 2024-02-05 at 12:48 +0100, 'Felix Moessbauer' via isar-users
wrote:
> This patch fixes a regression introduced in a0b293c5: The cleaning
> of the rootfs dir before dpkg_runbuild needs to be performed as root,
> as
> this dir might contain data which cannot be deleted by the default
> user.
>
> Reported-by: Jan Kiszka <jan.kiszka@siemens.com>
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
> meta/classes/dpkg.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass
> index 3fc29806..0578977d 100644
> --- a/meta/classes/dpkg.bbclass
> +++ b/meta/classes/dpkg.bbclass
> @@ -34,7 +34,7 @@ CP_FLAGS ?= "-Ln --no-preserve=owner"
> CP_FLAGS:sid ?= "-L --update=none --no-preserve=owner"
>
> # Build package from sources using build script
> -dpkg_runbuild[cleandirs] += "${WORKDIR}/rootfs"
> +dpkg_runbuild[root_cleandirs] += "${WORKDIR}/rootfs"
> dpkg_runbuild[vardepsexclude] += "${SBUILD_PASSTHROUGH_ADDITIONS}"
> dpkg_runbuild() {
> E="${@ isar_export_proxies(d)}"
> --
> 2.39.2
>
Applied to next, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-08 6:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-05 11:48 [PATCH 1/1] fix: clean apt-cache dirs in dpkg_runbuild as root Felix Moessbauer
2024-02-07 8:19 ` Uladzimir Bely
2024-02-07 17:45 ` Jan Kiszka
2024-02-08 6:48 ` Uladzimir Bely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox