From: Jan Kiszka <jan.kiszka@siemens.com>
To: <quirin.gylstorff@siemens.com>, <isar-users@googlegroups.com>,
"Baurzhan Ismagulov" <ibr@ilbers.de>
Subject: Re: Question related to Sbuild CLEAN_SOURCE
Date: Wed, 9 Feb 2022 16:37:55 +0100 [thread overview]
Message-ID: <10522aee-53b0-c899-f792-7f83447e35df@siemens.com> (raw)
In-Reply-To: <fafc8b96-a362-93a0-85e6-fe180dd1c3b4@siemens.com>
On 09.02.22 16:14, quirin.gylstorff@siemens.com wrote:
>
>
> On 2/9/22 12:52, Baurzhan Ismagulov wrote:
>> On Wed, Feb 09, 2022 at 11:36:09AM +0100, quirin.gylstorff@siemens.com
>> wrote:
>>>>> - Is there are reason sbuild executes clean outside of the chroot?
>>
>> It would be interesting to hear what kind of issues you had due to that.
>>
>
> If we rebuild a debian package with dpkg-gbp which uses for example
> `dh-lua` (swupdate) the build will fail due to the missing installation
> of dh-lua in the host environment. The solution to this is to install
> dh-* in the build environment.
>
> ```
> gbp:info: Performing the build
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: info: applying use-gcc-compiler.diff
> dh clean --with lua
> dh: error: unable to load addon lua: Can't locate
> Debian/Debhelper/Sequence/lua.pm in @INC (you may need to install the
> Debian::Debhelper::Sequence::lua module) (@INC contains: /etc/perl
> /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1
> /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5
> /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32
> /usr/share/perl/5.32 /usr/local/lib/site_perl) at (eval 13) line 1.
> BEGIN failed--compilation aborted at (eval 13) line 1.
> ```
>
> You can fix it with documentation but it needs to be addressed.
>
Resolving that concrete issue is one thing, but using sbuild in its
"convenience feature" mode for Isar is another and not that easily fixable.
> A project where this can be tested is isar-cip-core with the current
> preintegrated sbuild[1].
> [1]: https://gitlab.com/Quirin.Gy/isar-cip-core/-/tree/test/sbuild
>>
>>>> But the actual input to sbuild is the source package
>>>> (the dsc). Don't use sbuild to create a source package. The source
>>>> package is
>>>> the input to sbuild. The output of sbuild are binary packages, not
>>>> source
>>>> packages.
>>
>> It's interesting that he is mentioning it; we are currently performing
>> this
>> exact split for meta-iot2050.
What will that mean for layers? Patching Debian packages "ad-hoc" is not
an uncommon use case anymore. In fact, bringing Debianization in via
Isar/bitbake is even more common and would be equally affected.
Jan
--
Siemens AG, Technology
Competence Center Embedded Linux
next prev parent reply other threads:[~2022-02-09 15:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1b5ef299-ec8d-c180-c2b6-505294f5484b@siemens.com>
[not found] ` <164435326066.1656.13805705968480410488@localhost>
2022-02-09 10:36 ` quirin.gylstorff
2022-02-09 11:52 ` Baurzhan Ismagulov
2022-02-09 15:14 ` quirin.gylstorff
2022-02-09 15:37 ` Jan Kiszka [this message]
2022-02-10 9:59 ` Baurzhan Ismagulov
2022-02-10 11:27 ` Jan Kiszka
2022-02-10 12:00 ` Baurzhan Ismagulov
2022-02-10 8:47 ` Uladzimir Bely
2022-02-10 9:10 ` quirin.gylstorff
2022-02-11 10:54 ` Uladzimir Bely
2022-02-11 11:20 ` Jan Kiszka
2022-02-14 8:54 ` quirin.gylstorff
2022-02-14 9:47 ` Uladzimir Bely
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=10522aee-53b0-c899-f792-7f83447e35df@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=ibr@ilbers.de \
--cc=isar-users@googlegroups.com \
--cc=quirin.gylstorff@siemens.com \
/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