From: "Moessbauer, Felix" <felix.moessbauer@siemens.com>
To: "Schild, Henning" <henning.schild@siemens.com>,
Anton Mikanovich <amikan@ilbers.de>
Cc: "isar-users@googlegroups.com" <isar-users@googlegroups.com>,
"Bezdeka, Florian" <florian.bezdeka@siemens.com>,
"ubely@ilbers.de" <ubely@ilbers.de>
Subject: RE: [PATCH] override HOME to isolate sbuild configuration
Date: Tue, 20 Sep 2022 11:22:28 +0000 [thread overview]
Message-ID: <AM9PR10MB4869F0CC974D5B9849FAE2BB894C9@AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20220920125832.55602ed6@md1za8fc.ad001.siemens.net>
> -----Original Message-----
> From: Schild, Henning (T CED SES-DE) <henning.schild@siemens.com>
> Sent: Tuesday, September 20, 2022 12:59 PM
> To: Moessbauer, Felix (T CED SES-DE) <felix.moessbauer@siemens.com>
> Cc: isar-users@googlegroups.com; Bezdeka, Florian (T CED SES-DE)
> <florian.bezdeka@siemens.com>
> Subject: Re: [PATCH] override HOME to isolate sbuild configuration
>
> Am Tue, 20 Sep 2022 11:26:54 +0200
> schrieb Felix Moessbauer <felix.moessbauer@siemens.com>:
>
> > 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}"
>
> This is not kas, maybe people want that from isar. And if they do not want it they
> can use kas.
>
> I would bbwarn on -f ~/.sbuildrc, setting HOME to something else is pretty heavy
> and can have all sorts of fun side-effects.
I had the funny side effect that I could not build with ISAR on my sbuild + unshare enabled host.
Had a hard time to figure out why this did not work, especially as the sbuild man page is not very precise on the effect of the SBUILD_CONFIG env var.
Setting HOME there is only relevant for the sbuild invocation and also there, the HOME variable is set but quite pointless as everything happens inside the schroot.
AFAIK there is no statement in the user_manual.md regarding the configuration of host tools.
Let's put Anton in CC to get a statement from an maintainer of ISAR.
Felix
>
> Henning
>
> > rm -f ${SBUILD_CONFIG}
> >
next prev parent reply other threads:[~2022-09-20 11:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-20 9:26 Felix Moessbauer
2022-09-20 10:58 ` Henning Schild
2022-09-20 11:22 ` Moessbauer, Felix [this message]
2022-09-23 9:17 ` Anton Mikanovich
2022-09-25 8:13 ` Moessbauer, Felix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM9PR10MB4869F0CC974D5B9849FAE2BB894C9@AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM \
--to=felix.moessbauer@siemens.com \
--cc=amikan@ilbers.de \
--cc=florian.bezdeka@siemens.com \
--cc=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=ubely@ilbers.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox