From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7057122428766388224 X-Received: by 2002:a2e:9846:: with SMTP id e6mr2608427ljj.374.1644475583014; Wed, 09 Feb 2022 22:46:23 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:a782:: with SMTP id c2ls752825ljf.4.gmail; Wed, 09 Feb 2022 22:46:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJ4qa7DYHVPwJCp5a0CvZ/fQOW3svZpPMG1qa0Cb5yqd+F60lAncblf4zFGiqrRRyynBrk X-Received: by 2002:a2e:8789:: with SMTP id n9mr3899353lji.277.1644475581902; Wed, 09 Feb 2022 22:46:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644475581; cv=none; d=google.com; s=arc-20160816; b=JqbfonMVykGlD6os/jjrf53gTJfupIzLWWTQDjAYpiNmLPsZGn/lONzigpXlhEoFJI hvwJQFYgFhWhRbFxtH4F9cX3T95EwxI+++YwILw4wTpO26BmK6y6A5QAcLutZ6j0IRs5 xtKS0FbWACHRyxxWTHrJywKBmGwAmkaimsQxiKlxO7c4NowkQk7YPzZvDbSOPhyrWPv7 sRbyJKD2FflSIhHwW49KRFJaAfJnXiUWhR/euNraBkqsGbdVq18eUJlGtstXWthp48PS KJow7biiIxWwD2A7GmZiXpt4aZe5MvOt4cXaxtYf//I/E2i/hSfgWIiQK1u4V1hSwMoH 7WLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=EtZPxRbKMTuS8Jpp365h/Qo/3MWElCWyn8YDRDXHftM=; b=aMx/C6OmHks79OTP3L2BA+1B21i5m+Wj51fmVNweBm7hd236TAW2+8DmpVnN4TpwLK EpAmldx4fOyulPTsZfFxvTdaTP6V/+jRAuo+SkBLXfEDKeIJzcOdBqxvjFx9t+BQ2apU 8ju3zpLCG2WifVLakh3OYnts3l/e1aJvKVxuzE46XRmeSJ7z2YYJfAosp7WCnrFYcO9w EbcvXoygX6Qt0Ao/+Kp1xP4y9j27yYYEc714yT4d+OwjhNtWwgN7plC3/H9dhdEDbCCy 9b/+UVA+xQYmXWbmzaYDpS4V05UD6Gs935ejh4TgTBb4WElYgzU5bdgfCck3cbVJLNO1 Dl9w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id i2si816876lfb.3.2022.02.09.22.46.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Feb 2022 22:46:21 -0800 (PST) Received-SPF: pass (google.com: domain of ubely@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 ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from baighyz.m.ilbers.de (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 21A6kKr3028169 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 10 Feb 2022 07:46:21 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v6 01/12] dpkg-gbp: Use separate command to export tarball Date: Thu, 10 Feb 2022 07:46:09 +0100 Message-Id: <20220210064620.4392-2-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220210064620.4392-1-ubely@ilbers.de> References: <20220210064620.4392-1-ubely@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: zWJbM/cyU42s We don't actually build the package with gbp, but only prepare it for the building with external dpkg-buildpackage command. In case there is no need in real build we can perform only export which will produce upstream tarball to pass for later building. This allows to use any build tool for later processing. Signed-off-by: Uladzimir Bely --- meta/classes/dpkg-gbp.bbclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/classes/dpkg-gbp.bbclass b/meta/classes/dpkg-gbp.bbclass index d956e8c3..ddf23ca5 100644 --- a/meta/classes/dpkg-gbp.bbclass +++ b/meta/classes/dpkg-gbp.bbclass @@ -30,5 +30,9 @@ do_install_builddeps_append() { } dpkg_runbuild_prepend() { - export GBP_PREFIX="gbp buildpackage --git-ignore-new ${GBP_EXTRA_OPTIONS} --git-builder=" + sudo -E chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR} \ + sh -c "cd ${PP}/${PPS} && gbp buildpackage --git-builder=/bin/true ${GBP_EXTRA_OPTIONS}" + # NOTE: `buildpackage --git-builder=/bin/true --git-pristine-tar` is used + # for compatibility with gbp version froms debian-stretch. In newer distros + # it's possible to use a subcommand `export-orig --pristine-tar` } -- 2.20.1