public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] sbuild: always start build with a fresh sbuild.conf
@ 2022-07-19 15:03 Henning Schild
  2022-07-26  6:53 ` Anton Mikanovich
  0 siblings, 1 reply; 2+ messages in thread
From: Henning Schild @ 2022-07-19 15:03 UTC (permalink / raw)
  To: isar-users; +Cc: Henning Schild

So that rebuilds do not have to deal with old files, potentially
generated with older isar code.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
---
 meta/classes/dpkg.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass
index b726ea9d8473..2144ef0d3e43 100644
--- a/meta/classes/dpkg.bbclass
+++ b/meta/classes/dpkg.bbclass
@@ -18,6 +18,8 @@ dpkg_runbuild() {
     export DEB_BUILD_OPTIONS="${@ isar_deb_build_options(d)}"
     export PARALLEL_MAKE="${PARALLEL_MAKE}"
 
+    rm -f ${SBUILD_CONFIG}
+
     env | while read -r line; do
         # Filter the same lines
         grep -q "^${line}" ${DPKG_PREBUILD_ENV_FILE} && continue
-- 
2.35.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] sbuild: always start build with a fresh sbuild.conf
  2022-07-19 15:03 [PATCH] sbuild: always start build with a fresh sbuild.conf Henning Schild
@ 2022-07-26  6:53 ` Anton Mikanovich
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Mikanovich @ 2022-07-26  6:53 UTC (permalink / raw)
  To: Henning Schild, isar-users

19.07.2022 18:03, Henning Schild wrote:
> So that rebuilds do not have to deal with old files, potentially
> generated with older isar code.
>
> Signed-off-by: Henning Schild <henning.schild@siemens.com>
> ---
>   meta/classes/dpkg.bbclass | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass
> index b726ea9d8473..2144ef0d3e43 100644
> --- a/meta/classes/dpkg.bbclass
> +++ b/meta/classes/dpkg.bbclass
> @@ -18,6 +18,8 @@ dpkg_runbuild() {
>       export DEB_BUILD_OPTIONS="${@ isar_deb_build_options(d)}"
>       export PARALLEL_MAKE="${PARALLEL_MAKE}"
>   
> +    rm -f ${SBUILD_CONFIG}
> +
>       env | while read -r line; do
>           # Filter the same lines
>           grep -q "^${line}" ${DPKG_PREBUILD_ENV_FILE} && continue

Applied to next, thanks.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-26  6:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19 15:03 [PATCH] sbuild: always start build with a fresh sbuild.conf Henning Schild
2022-07-26  6:53 ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox