From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7057122428766388224 X-Received: by 2002:adf:f20e:: with SMTP id p14mr6802397wro.704.1644738302347; Sat, 12 Feb 2022 23:45:02 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:bc83:: with SMTP id g3ls585660wrh.0.gmail; Sat, 12 Feb 2022 23:45:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLaJhnGsxC3PZRJ1kYdKpmaHvQwkDUECHN/piperuEFzzj2aheoAk7D6vv+jMIWxTEzpl1 X-Received: by 2002:adf:f710:: with SMTP id r16mr6830495wrp.327.1644738301375; Sat, 12 Feb 2022 23:45:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644738301; cv=none; d=google.com; s=arc-20160816; b=Kz9EN2kx7BSxwbzLwWHvx4vnNilNtKsoeYlSTnLHEosj0Niy5f+LofxypF1H/l+PG7 KTiNaknaHfbodyyS1jbt+B9eWzmZT5qzKtpSnREknhlg0SH5pBZA4nflM2ljIyPWTTQM uNJcAYQcs9lR62ddVK1tVgX/9IME5Kl08MHItv9c7tpiF0M4pLpPfDZ60sOllJFA5qW9 tb1g4efzVY90yNHk6cqezfPdpw+YSo/OrWEwMZdn04E5phKFyEZgKGN26T+n+dxfQnxJ NuzQ2id51CX9CqSY8gPJ6gcLFmfc/Zw81LuOT37Z1gjVQQegsZxtGlZgD8QRup/RSgS6 +VQw== 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=U54M4vFTei/YcCQIXUdVoMer7q9GcoQsqeZsyEuoIw4znZbFyt8In5FhNiF5lU+cEV 0MatQ7X1zUASaiqxoDLB5ZQ7N6z6Wrz1LT4/MosgZcqxHqLcgiB8vM6kWvsElHo8W30E 98B+n0dHXi6sWTrQ+7YnT7IFiPmHPkIA6fLCOJWwAo0g/npExdW1cN5/s4VYPW0WFjw2 VZ3JYpnk3+67srmMu21hcQP02QZ4W7s1e8HTSU2zKSggx/26gDGoywIlU/EM392LMls3 41YXUzcT7tWHO3vWu1uP0Z0vBONPW6uDtFyT9+5v6b2xcA7ye5KYu5zKpVBEHU8DpDg3 mxpg== 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 j13si630222wrp.6.2022.02.12.23.45.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 12 Feb 2022 23:45:01 -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 21D7j0BT010453 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 13 Feb 2022 08:45:00 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v7 01/13] dpkg-gbp: Use separate command to export tarball Date: Sun, 13 Feb 2022 08:44:47 +0100 Message-Id: <20220213074459.24200-2-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220213074459.24200-1-ubely@ilbers.de> References: <20220213074459.24200-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: hkcq7Hjd8pbO 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