From: Florian Bezdeka <florian.bezdeka@siemens.com>
To: Anton Mikanovich <amikan@ilbers.de>,
"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: Re: sbuild migration problem: how to jump into SBUILD_CHROOT with build dependencies installed
Date: Fri, 19 Aug 2022 10:36:52 +0200 [thread overview]
Message-ID: <195731f6-fdab-8355-3d76-a9dd997c07e4@siemens.com> (raw)
In-Reply-To: <4dd276e8-a0db-4215-6d2a-eb74282d0c94@ilbers.de>
Hi Anton,
On 19.08.22 10:30, Anton Mikanovich wrote:
> 19.08.2022 11:25, Florian Bezdeka wrote:
>> Hi all,
>>
>> I'm trying to update Isar to the latest next version in one of our
>> downstream layers. This is the first version for this layer that uses
>> sbuild.
>>
>> One of the recipes has the following dpkg_runbuild_prepend() defined:
>>
>> dpkg_runbuild_prepend() {
>> sudo chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR} \
>> sh -c "autoreconf -fi"
>> }
>>
>> In the pre-sbuild times this task was executed *after* the build
>> dependencies have been installed but *before* the dpkg_runbild task.
>>
>> With sbuild:
>> - There is no "install build dependencies" task anymore
>> Installation of build dependencies is done by sbuild internally
>> - The task is now executed *before* build dependencies are installed
>> - I still could chroot into ${SBUILD_CHROOT}, but the build dependencies
>> will not be there
>>
>> Is there any possibility to jump into the ${SBUILD_CHROOT} after build
>> dependencies are installed but before the actual packet build?
>>
>> Best regards,
>> Florian
>>
> Hello Florian,
>
> Correct way to implement this is to move autoreconf into debian/rules.
>
In this simple example for sure. But: There might be recipes where
debian/rules is not directly "accessable", forcing me to wait for 3rd
parties to update their build process (or patch things in my layer) and
all of this just because I tried to update Isar...
If there is no way to jump into ${SBUILD_CHROOT} with build dependencies
installed we have a (very minor) regression.
next prev parent reply other threads:[~2022-08-19 8:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-19 8:25 Florian Bezdeka
2022-08-19 8:30 ` Anton Mikanovich
2022-08-19 8:36 ` Florian Bezdeka [this message]
2022-08-19 10:32 ` Baurzhan Ismagulov
2022-08-19 13:05 ` Florian Bezdeka
2022-08-27 8:44 ` Henning Schild
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=195731f6-fdab-8355-3d76-a9dd997c07e4@siemens.com \
--to=florian.bezdeka@siemens.com \
--cc=amikan@ilbers.de \
--cc=isar-users@googlegroups.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