public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: "Moessbauer, Felix (T CED SES-DE)" <felix.moessbauer@siemens.com>,
	"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Cc: "ubely@ilbers.de" <ubely@ilbers.de>
Subject: Re: [PATCH 1/1] Revert "buildchroot: Do not build cross when there are no arch-specific outputs"
Date: Tue, 4 Jan 2022 13:24:34 +0100	[thread overview]
Message-ID: <03399826-b6c9-67a4-9784-c75059cf2f62@siemens.com> (raw)
In-Reply-To: <AM9PR10MB486929E50E83034FD6D2324A894A9@AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM>

On 04.01.22 11:15, Moessbauer, Felix (T CED SES-DE) wrote:
> Hi Jan,
> 
>> -----Original Message-----
>> From: Kiszka, Jan (T RDA IOT) <jan.kiszka@siemens.com>
>> Sent: Monday, January 3, 2022 8:31 AM
>> To: Moessbauer, Felix (T RDA IOT SES-DE)
>> <felix.moessbauer@siemens.com>; isar-users@googlegroups.com
>> Subject: Re: [PATCH 1/1] Revert "buildchroot: Do not build cross when there
>> are no arch-specific outputs"
>>
>> On 22.12.21 13:55, Felix Moessbauer wrote:
>>> This reverts commit 563986703d9a0405c70af9b50ecedede2ac59cbd.
>>>
>>> The reverted patch made a shortcut to simplify the handling of
>>> cross-build dependencies of architecture:all packages.
>>> This is not valid for the following reasons:
>>>
>>> 1. Just scanning the control file for 'all' is not sufficient as a
>>> source package might generate both arch specific and :all packages.
>>>
>>> 2. This breaks architecture specific transitive build dependencies.
>>> These mainly apply to correctly packaged python packages that support
>>> cross building and use setuptools. By that, the transitive dependency
>>> libpython3.9-minimal:<target-arch> is not attracted but instead the
>>> version for the host, leading to very hard to debug build-time issues.
>>>
>>> In case packages do not handle their cross-build dependencies
>>> correctly, we should not try to work around in ISAR, but better enforce
>> upstream patches.
>>>
>>> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
>>> ---
>>>  meta/recipes-devtools/buildchroot/files/deps.sh | 6 ------
>>>  1 file changed, 6 deletions(-)
>>>
>>> diff --git a/meta/recipes-devtools/buildchroot/files/deps.sh
>>> b/meta/recipes-devtools/buildchroot/files/deps.sh
>>> index 1d617bc8..ccfc460c 100644
>>> --- a/meta/recipes-devtools/buildchroot/files/deps.sh
>>> +++ b/meta/recipes-devtools/buildchroot/files/deps.sh
>>> @@ -27,12 +27,6 @@ if [ "$3" != "--download-only" ]; then
>>>          -o APT::Get::List-Cleanup="0"
>>>  fi
>>>
>>> -# Do not set an architecture when building only 'all' (generic) packages.
>>> -# This can avoid unneeded cross-build issues.
>>> -if ! grep "^Architecture:" debian/control | grep -qv "all"; then
>>> -    set_arch=""
>>> -fi
>>> -
>>>  control_file=$(pwd)/debian/control
>>>  cd ..
>>>
>>
>> Unfortunately, I missed to document at least one example for which I once
>> wrote this. I will try out the usual suspects later to see if there are still issues
>> (with bullseye). I agree on the direction unless it causes massive patching
>> needs elsewhere. In that case, making the workaround configurable could be
>> a compromise.
> 
> As the patch "[PATCH v2 0/1] meta: Reenable deps checking" is already merged, I expect that a lot of broken multi-arch packages have to be re-packaged anyways.
> The deps-checking in dpkg-buildpackage is not configurable and always enabled.
> By that, I doubt that the hack from above makes sense anymore as you will install packages for your host arch, but later validate them against the target arch.
> 
> The current situation (post eeefa03185e3f259d08ff94295b0981a19eddf55, without this revert) is simply broken.
> 
> I highly vote for reverting the hack.
> 

I don't oppose, specifically after having successfully built
jailhouse-images and meta-iot2050 with this patch applied.

Jan

-- 
Siemens AG, Technology
Competence Center Embedded Linux

  reply	other threads:[~2022-01-04 12:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-22 12:55 Felix Moessbauer
2022-01-03  7:31 ` Jan Kiszka
2022-01-04 10:15   ` Moessbauer, Felix
2022-01-04 12:24     ` Jan Kiszka [this message]
2022-01-10  7:20       ` Moessbauer, Felix
2022-01-10  7:38         ` Jan Kiszka
2022-01-10  7:50 ` Anton Mikanovich

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=03399826-b6c9-67a4-9784-c75059cf2f62@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=felix.moessbauer@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