public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: "Moessbauer, Felix (T CED INW-CN)" <felix.moessbauer@siemens.com>,
	"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Cc: "amikan@ilbers.de" <amikan@ilbers.de>
Subject: Re: [PATCH 3/4] sbuild-chroot: Pre-install cross-compiler and libc6-dev
Date: Mon, 9 Jan 2023 08:45:57 +0100	[thread overview]
Message-ID: <9385b2ee-65ec-22a2-b75d-2dab90970711@siemens.com> (raw)
In-Reply-To: <dc2a965cd087a21334044754fdc456d432b9f7e4.camel@siemens.com>

On 09.01.23 06:56, Moessbauer, Felix (T CED INW-CN) wrote:
> On Mon, 2023-01-09 at 06:32 +0100, Jan Kiszka wrote:
>> From: Jan Kiszka <jan.kiszka@siemens.com>
>>
>> This saves build setup time by pre-installing not only build-
>> essential
>> but - for cross and compat-arch cases - also the cross-compiler as
>> well
>> as libc6-dev.
>>
>> The latter is coming via build-essential in the native case, it's not
>> installed by crossbuild-essential but sbuild is pulling it. We can
>> install libc6-dev:${DISTRO_ARCH} unconditionally as this becomes a
>> not
>> in the native case.
>>
>> Things brings sbuild on eye-level with buildchroot regarding the
>> initial
>> build environment, even goes beyond as buildchroot used to install
>> only
>> libc6:<target-arch>.
>>
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>> ---
>>  .../sbuild-chroot/sbuild-chroot-host.bb               | 11
>> +++++++++++
>>  .../sbuild-chroot/sbuild-chroot-target.bb             |  4 ++++
>>  meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc | 10 ++++++---
>> -
>>  3 files changed, 21 insertions(+), 4 deletions(-)
>>
>> diff --git a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-
>> host.bb b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
>> index a37e49b7..c0015721 100644
>> --- a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
>> +++ b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
>> @@ -12,3 +12,14 @@ require sbuild-chroot.inc
>>  ROOTFS_ARCH = "${HOST_ARCH}"
>>  ROOTFS_DISTRO = "${HOST_DISTRO}"
>>  ROOTFS_BASE_DISTRO = "${HOST_BASE_DISTRO}"
>> +
>> +SBUILD_CHROOT_PREINSTALL ?= " \
>> +    ${SBUILD_CHROOT_PREINSTALL_COMMON} \
>> +    crossbuild-essential-${DISTRO_ARCH} \
> 
> I proposed this a couple of month ago in
> "[PATCH] install crossbuild-essential into base schroot"
> 
> In the end, it was rejected after having some build failures in risc64.
> 

This version works on riscv64 (with a working sid snaptshot, of course...).

Jan

-- 
Siemens AG, Technology
Competence Center Embedded Linux


  reply	other threads:[~2023-01-09  7:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-09  5:32 [PATCH 0/4] sbuild-chroot optimizations Jan Kiszka
2023-01-09  5:32 ` [PATCH 1/4] sbuild-chroot: Only install ccache is used Jan Kiszka
2023-01-20  8:28   ` Jan Kiszka
2023-01-09  5:32 ` [PATCH 2/4] crossbuild-essential-riscv64: Drop unneeded crossbuild disabling Jan Kiszka
2023-01-09  5:32 ` [PATCH 3/4] sbuild-chroot: Pre-install cross-compiler and libc6-dev Jan Kiszka
2023-01-09  5:56   ` Moessbauer, Felix
2023-01-09  7:45     ` Jan Kiszka [this message]
2023-01-09  5:32 ` [PATCH 4/4] sbuild-chroot: Pre-install also libcpp-*-dev and libstdc++-*-dev Jan Kiszka
2023-01-24  7:33 ` [PATCH 0/4] sbuild-chroot optimizations 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=9385b2ee-65ec-22a2-b75d-2dab90970711@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=amikan@ilbers.de \
    --cc=felix.moessbauer@siemens.com \
    --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