From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7075595997826514944 X-Received: by 2002:a2e:a490:0:b0:249:894b:ce20 with SMTP id h16-20020a2ea490000000b00249894bce20mr7841277lji.301.1649323937691; Thu, 07 Apr 2022 02:32:17 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:5285:0:b0:44a:94d2:1d8f with SMTP id q5-20020ac25285000000b0044a94d21d8fls1823045lfm.0.gmail; Thu, 07 Apr 2022 02:32:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVFroo8WAkRSMhDpDRYiaT/CQuosJtGfvONvXXQDIH/zIY+y0olHpsz24Fi5aOkoTo3ujM X-Received: by 2002:a05:6512:2347:b0:44a:6e3f:74f7 with SMTP id p7-20020a056512234700b0044a6e3f74f7mr8748161lfu.660.1649323936483; Thu, 07 Apr 2022 02:32:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649323936; cv=none; d=google.com; s=arc-20160816; b=pnG/DTOoYbI0yTTAmjbUsoeiQof4bDCQWMZk7GxeVi6/4SqZbALKfUJqzatuNZyp9s cAdCcObX7coudCK9sVfRDMeVAnU1wSHX2JIaVzT9NqWpIaxxt4EuldkQlvB5n2hMtV7n AK1v6l0Mxb37MxFZ8f6XlvN1fbyEHS8YFJmKLF97mxIhEJ4O9ZiQi7qQl4LEOGSKRkQe pN1RT6kRrHf0J+sNpTeWvz60deYhhLCXmywyKxMKpGgHE5kISYDv0Ehlr3EWHlCWTzD1 lvGJNLY4EEXdskaE3dFbRXOStW2BszlMi741VbIfwb2KUWk76JkQjTrTtS03cdipzBZD ltTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id; bh=VBhJuJwy7uSNAKmYp/RjtGGHUKEOsq+LvkF9IUxgfN4=; b=ZJdVyDR02Y5ArCIl/a/gfbnqp6rS1kMl1DytQAjpmA/RXL0kic2pNWoEzJ+3XaNHUu iMgQZ+EnXe1tbUMPjzb0W/bIpw0LUTEbjYzUq0XmAqZrHvjlv8chf2f0Qnq/7X7ecKbM RwLIpaoKelq4q+oiGHMh9ybAHALqIQ7FrvoE6DDdTykvZvxgRDt645ovtM/vO9WgA3lu kWEhSF3TSYOVeVAMwkNvlbBNDfLyZmqc7YnINTyfIPt6T/ZsDJLDdcrd94Iot5c2/rsi nFCdcZwR+Q18ycxQGRKbND0kycpERO0iCxxUFwy7i9zoNLCfCkSgpxncePuCHLHBUuhh 9V3Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id p17-20020a2e9a91000000b0024b17d3d51dsi560069lji.7.2022.04.07.02.32.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Apr 2022 02:32:16 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 2379WDh7032748 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 7 Apr 2022 11:32:15 +0200 Message-ID: <30fb6f7c-a287-65cd-1c70-6c765789c924@ilbers.de> Date: Thu, 7 Apr 2022 12:32:13 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v8 00/16] Sbuild/Schroot migration Content-Language: en-US To: isar-users@googlegroups.com, Uladzimir Bely References: <20220317045021.4018-1-ubely@ilbers.de> From: Anton Mikanovich In-Reply-To: <20220317045021.4018-1-ubely@ilbers.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: EYKWZE8bUnUn 17.03.2022 07:50, Uladzimir Bely wrote: > This is a patchset showing how sbuild/schroot tools can be integrated > into Isar build system. > > Base schroot images are created with sbuild-chroot-target or, in case > of cross-build, sbuild-chroot-host recipes. These images are based on > isar-bootstrap ones, but include some build-related stuff preinstalled. > > To use these changes you need to have sbuild and schroot installed and > configured. User who runs build should be added to sbuild group. > > Currently, sbuild-related stuff is supported in latest kas. > > If Gilab CI is used, the following configuration changes are required: > - external dir for schroot overlay should be set in the config > /etc/gitlab-runner/config.toml: > > volumes = ["/path/to/overlay:/var/lib/schroot/union/overlay"] > > The patchset was tested with 'meta-iot2050' and 'xenomai-images' > downstreams in combination with kas image mentioned above. > > Current limitations: > - parallel building of several packages requires more free space in > comparison with buildchroot-based architecture. This happens due > the sbuild architecture which uses some basic layer (common for all > packages) and per-package separate layer (where builddeps are downloaded > and installed). > > > Changes since v8: > - Added patch with support of package versions with epochs > > Changes since v7: > - fixed work with proxy by adding some environment filters in sbuild; > - DEB_BUILD_PROFILES support simplified and improved > - Fixed gbp-based recipes rebuilding (get back --git-ignore-new option > previously removed) > - fixed base-apt caching for packages and source packages temporary > installed in sbuild isolated environment > - fixed rare build error related to ccache setup (added locking) > > Changes since v6: > - added patch that switches sbuild from using source directory to using > .dsc file. The file is generated before sbuild call by `dpkg-source`. > > Changes since v5: > - warning about shell exports in dpkg_runbuild_prepend. This should > avoided be reworked to templates. > > Changes since v4: > - consider shell exports done in dpkg_runbuild_prepend and pass them > to sbuild environment; > - fixed ccache work. > > Changes since v3: > - dpkg_do_mounts() and dpkg_undo_mounts() are not removed for downstreams > compatibility; > - dpkg_build_export is used for adjusting sbuild environment; > - DEB_BUILD_PROFILES support for sbuild is fixed in case of cross-build. > > Changes since v2: > - patches reworked/squashed for easier reading and understanding; > - fixed building foreigh architectures with kas-docker; > - implemented support of ccache; > - fixed devshell and devshell_nodeps. > > Changes since v1: > - parallel builds with different BUILD_DIR are supported; > - parallel multiconfig targets in one build are supported; > - per-task schroot configuration in /etc/schroot/ is now used; > - patchset now passes Jenkins CI (so patches changes RFC => PATCH). > > > Anton Mikanovich (1): > dpkg: Build packages with sbuild > > Felix Moessbauer (1): > fix: support build of packages with epoch version > > Uladzimir Bely (14): > dpkg-gbp: Use separate command to export tarball > dpkg-gbp: Use host tools for dsc preparation > sbuild: Add recipes for host and target rootfs to run sbuild > sbuild: Introduce a class for another build method > sbuild: Support of DEB_BUILD_PROFILES > sbuild: Support of shell exports from dpkg_runbuild_prepend > dpkg: Remove builddeps install task. > sbuild: Add ccache support > dpkg-base: Switch devshell to use schroot > dpkg-base: Switch apt_fetch and apt_unpack to use schroot > doc: Add sbuild-related documentation > sbuild: Use .dsc file instead of source directory. > sbuild: Fixed proxy support > sbuild: Fix debsrc_download for packages dependencies > > doc/user_manual.md | 22 +- > meta/classes/deb-dl-dir.bbclass | 4 + > meta/classes/dpkg-base.bbclass | 78 ++++--- > meta/classes/dpkg-gbp.bbclass | 26 +-- > meta/classes/dpkg.bbclass | 106 ++++++--- > meta/classes/sbuild.bbclass | 211 ++++++++++++++++++ > meta/conf/bitbake.conf | 2 + > .../sbuild-chroot/sbuild-chroot-host.bb | 13 ++ > .../sbuild-chroot/sbuild-chroot-target.bb | 10 + > .../sbuild-chroot/sbuild-chroot.inc | 39 ++++ > 10 files changed, 430 insertions(+), 81 deletions(-) > create mode 100644 meta/classes/sbuild.bbclass > create mode 100644 meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb > create mode 100644 meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb > create mode 100644 meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc Just remind we are going to merge Sbuild implementation in new weeks. Please prepare and check downstreams.