From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6506885723410399232 X-Received: by 10.223.157.202 with SMTP id q10mr493307wre.11.1515059170743; Thu, 04 Jan 2018 01:46:10 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.223.166.213 with SMTP id t79ls10599159wrc.11.gmail; Thu, 04 Jan 2018 01:46:10 -0800 (PST) X-Google-Smtp-Source: ACJfBovSsbve0gkBYxkS0Bwb3mj/sSfyuJ3OwmGRFhc5jTx0j0pRLXylrdmYPJ5vNQIYOToQcXO1 X-Received: by 10.223.188.18 with SMTP id s18mr426660wrg.18.1515059170434; Thu, 04 Jan 2018 01:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515059170; cv=none; d=google.com; s=arc-20160816; b=IEQKV2KKscn9QntVaz8gaYuOKv7KsqAZhvAp6o0n8f+ikCEZ4W8tn4IHO+rA38Ekfa 97JNL1qXmyux3qf4y+iL8lSIWkT/sa0zN3qs0TDb9MBEqCDPZEKkIsWigjRpMSzpgwos +8hnCGnXZQihCOX3/TEHQDQTSCGNF2SnoSuNDPZnTjcoYCvxIqwQmRQ7esdlKApBuI7W A/bPflR+TZSPjaSvxyMcq2/xdmG69C1sAAxiYGmuifDrbAUBL7NzSH2u+KrE6zydQgLG lk9cULQLyJw4C8QyvR0vJJS6IRHv12K+oQW9tMQcCMUkTdc8YpX4et2zoxoEAn1+o07p h5Yg== 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:subject:cc:to:from:date:arc-authentication-results; bh=q9X5osF8B6+H+LRli6pUJjPwL96L++KmyqSEX1ybS38=; b=XY4Q7Q6y4IYJAU2Yp0p6iv7D/BALY53XcGUKTmFHWuOFS43aC6Bc29NRyfY7S2n3j6 DCdG1TDjmvhcK4JFxOUUuG3N3N5MLAiJEOeGwAf128nlIeE6/Xh4YQQS6u/4ExkGxkaO 12zlDgJF9hozUCxWQWT7XAUCWqZe/hBqT+ZE78YvkQUepMbQoFASoghumlnkDHi40DJK 3mpLzFpcQFa6lGD8UnQghvl+OrChtDT/akOMP99+NIDisEGA/5yT/dQ92+Wc8rC4a8Bo aS9pCqcjOBxRsMcJ3QMBprRTxqTWTfMjOK+nG/NeDvPjEDXXdeVWTjTbtkO+8fy8uJZz t1yw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id m3si446188wrm.5.2018.01.04.01.46.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jan 2018 01:46:10 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w049k9Lu030550 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 4 Jan 2018 10:46:09 +0100 Received: from mmd1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40] (may be forged)) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id w049k9vI018800; Thu, 4 Jan 2018 10:46:09 +0100 Date: Thu, 4 Jan 2018 10:46:09 +0100 From: Henning Schild To: Cc: Frank Lenormand Subject: Re: [PATCHv2] build.sh: yet another fix for the installation of build deps Message-ID: <20180104104609.196d0f90@mmd1pvb1c.ad001.siemens.net> In-Reply-To: <20180104094450.20395-1-henning.schild@siemens.com> References: <20180103175948.26103-1-henning.schild@siemens.com> <20180104094450.20395-1-henning.schild@siemens.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: fDYMqMnOxzPI Changes in v2, install "equivs" as well, otherwise the tool will not run. Henning Am Thu, 4 Jan 2018 10:44:50 +0100 schrieb Henning Schild : > The perl code guessing the build-deps of packages can not handle all > the possible syntax that could be found in Build-Depends. And it > ignores Build-Depends-Indep. So there are several issues in it. > > This patch uses an official debian-tool "mk-build-deb" to install the > build deps. The tool generates a package which which will Depends: on > the Build-Depends:. Architecture operators, -Indep etc. are handled > correctly. > > Signed-off-by: Henning Schild > --- > meta/recipes-devtools/buildchroot/buildchroot.bb | 4 +++- > meta/recipes-devtools/buildchroot/files/build.sh | 9 ++------- > 2 files changed, 5 insertions(+), 8 deletions(-) > > diff --git a/meta/recipes-devtools/buildchroot/buildchroot.bb > b/meta/recipes-devtools/buildchroot/buildchroot.bb index > 59ad0e0..51f9d5d 100644 --- > a/meta/recipes-devtools/buildchroot/buildchroot.bb +++ > b/meta/recipes-devtools/buildchroot/buildchroot.bb @@ -25,7 +25,9 @@ > BUILDCHROOT_PREINSTALL ?= "gcc \ locales \ > docbook-to-man \ > apt \ > - automake" > + automake \ > + devscripts \ > + equivs" > > WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PN}" > > diff --git a/meta/recipes-devtools/buildchroot/files/build.sh > b/meta/recipes-devtools/buildchroot/files/build.sh index > 5e310ad..975252e 100644 --- > a/meta/recipes-devtools/buildchroot/files/build.sh +++ > b/meta/recipes-devtools/buildchroot/files/build.sh @@ -6,13 +6,8 @@ > # Go to build directory > cd $1 > > -# Get list of dependencies manually. The package is not in apt, so > no apt-get -# build-dep. dpkg-checkbuilddeps output contains version > information and isn't -# directly suitable for apt-get install. > -DEPS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / > and $p)); s/,|\n|\([^)]+\)|\[[^]]+\]//mg; print if $p' < > debian/control` - -# Install deps > -apt-get install -y $DEPS > +# Install all build deps > +mk-build-deps -i -r debian/control > > # If autotools files have been created, update their timestamp to > # prevent them from being regenerated