From 9838c3f6ea44d328e5d571d5ccf201bf5ed9f167 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 6 Dec 2014 00:01:17 +0100 Subject: chroot-installation: add install_binary_packages() and prepare_install_binary_packages() so that the new qt4+qt5 jobs can submit a list of source packages, from which all binary packages will be installed --- bin/chroot-installation.sh | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh index d05cc493..e0ecb524 100755 --- a/bin/chroot-installation.sh +++ b/bin/chroot-installation.sh @@ -67,6 +67,17 @@ set +x EOF } +prepare_install_binary_packages() { + # install all binary packages build from these source packages + cat >> $CTMPFILE <<-EOF +$SCRIPT_HEADER +set -x +apt-cache showsrc $@ | grep ^Binary: | sed -s "s#Binary:##g" | tr -d , | sed -s "s# #\n#g" | sort -u | xargs apt-get install -y +apt-get clean +set +x +EOF +} + prepare_install_build_depends() { cat >> $CTMPFILE <<-EOF $SCRIPT_HEADER @@ -117,6 +128,15 @@ install_packages() { execute_ctmpfile } +install_binary_packages() { + echo "Installing extra packages for $1 now, based on a list of source packages." + shift + # install all binary packages build from these source packages + prepare_install_binary_packages $@ + execute_ctmpfile +} + + install_build_depends() { echo "Installing build depends for $1 now." shift @@ -167,9 +187,9 @@ if [ "$2" != "" ] ; then ;; lxde) install_packages lxde lxde desktop-base ;; - qt4) install_packages qt4 qt4-x11 qtwebkit + qt4) install_binary_packages qt4 qt4-x11 qtwebkit ;; - qt5) install_packages qt5 qtbase-opensource-src qtchooser qtimageformats-opensource-src qtx11extras-opensource-src qtscript-opensource-src qtxmlpatterns-opensource-src qtdeclarative-opensource-src qtconnectivity-opensource-src qtsensors-opensource-src qt3d-opensource-src qtlocation-opensource-src qtwebkit-opensource-src qtquick1-opensource-src qtwebkit-examples-opensource-src qttools-opensource-src qtdoc-opensource-src qtgraphicaleffects-opensource-src qtquickcontrols-opensource-src qtserialport-opensource-src qtsvg-opensource-src qtmultimedia-opensource-src qtenginio-opensource-src qtwebsockets-opensource-src qttranslations-opensource-src qtcreator + qt5) install_binary_packages qt5 qtbase-opensource-src qtchooser qtimageformats-opensource-src qtx11extras-opensource-src qtscript-opensource-src qtxmlpatterns-opensource-src qtdeclarative-opensource-src qtconnectivity-opensource-src qtsensors-opensource-src qt3d-opensource-src qtlocation-opensource-src qtwebkit-opensource-src qtquick1-opensource-src qtwebkit-examples-opensource-src qttools-opensource-src qtdoc-opensource-src qtgraphicaleffects-opensource-src qtquickcontrols-opensource-src qtserialport-opensource-src qtsvg-opensource-src qtmultimedia-opensource-src qtenginio-opensource-src qtwebsockets-opensource-src qttranslations-opensource-src qtcreator ;; full_desktop) install_packages full_desktop $FULL_DESKTOP ;; -- cgit v1.2.3-70-g09d2