public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] override HOME to isolate sbuild configuration
@ 2022-09-20  9:26 Felix Moessbauer
  2022-09-20 10:58 ` Henning Schild
  0 siblings, 1 reply; 5+ messages in thread
From: Felix Moessbauer @ 2022-09-20  9:26 UTC (permalink / raw)
  To: isar-users; +Cc: florian.bezdeka, Felix Moessbauer

This patch sets the HOME env var to the package build path
to avoid conflicts with an existing .sbuildrc configuration
in the users homedir.

Signed-off-by: Felix Moessbauer <felix.moessbauer@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 c92ea7db..70f8e772 100644
--- a/meta/classes/dpkg.bbclass
+++ b/meta/classes/dpkg.bbclass
@@ -17,6 +17,8 @@ dpkg_runbuild() {
     E="${@ isar_export_ccache(d)}"
     export DEB_BUILD_OPTIONS="${@ isar_deb_build_options(d)}"
     export PARALLEL_MAKE="${PARALLEL_MAKE}"
+    # override HOME to not interfer with users .sbuildrc
+    export HOME="${PP}"
 
     rm -f ${SBUILD_CONFIG}
 
-- 
2.30.2


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

end of thread, other threads:[~2022-09-25  8:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-20  9:26 [PATCH] override HOME to isolate sbuild configuration Felix Moessbauer
2022-09-20 10:58 ` Henning Schild
2022-09-20 11:22   ` Moessbauer, Felix
2022-09-23  9:17     ` Anton Mikanovich
2022-09-25  8:13       ` Moessbauer, Felix

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