public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] build.sh: Yet another fix for the installation of build deps
@ 2018-01-03 17:59 Henning Schild
  2018-01-03 18:04 ` Henning Schild
  2018-01-04  9:44 ` [PATCHv2] build.sh: yet " Henning Schild
  0 siblings, 2 replies; 5+ messages in thread
From: Henning Schild @ 2018-01-03 17:59 UTC (permalink / raw)
  To: isar-users; +Cc: Frank Lenormand, 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 <henning.schild@siemens.com>
---
 meta/recipes-devtools/buildchroot/buildchroot.bb | 3 ++-
 meta/recipes-devtools/buildchroot/files/build.sh | 9 ++-------
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/meta/recipes-devtools/buildchroot/buildchroot.bb b/meta/recipes-devtools/buildchroot/buildchroot.bb
index 59ad0e0..581cb9a 100644
--- a/meta/recipes-devtools/buildchroot/buildchroot.bb
+++ b/meta/recipes-devtools/buildchroot/buildchroot.bb
@@ -25,7 +25,8 @@ BUILDCHROOT_PREINSTALL ?= "gcc \
                            locales \
                            docbook-to-man \
                            apt \
-                           automake"
+                           automake \
+                           devscripts"
 
 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
-- 
2.13.6


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-11 11:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-03 17:59 [PATCH] build.sh: Yet another fix for the installation of build deps Henning Schild
2018-01-03 18:04 ` Henning Schild
2018-01-04  9:44 ` [PATCHv2] build.sh: yet " Henning Schild
2018-01-04  9:46   ` Henning Schild
2018-01-11 11:38   ` Alexander Smirnov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox