diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-05-09 12:34:38 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-05-09 12:34:38 +0200 |
commit | afd1bc3ae35acc5871a02ec07f1ac71a47c6fb43 (patch) | |
tree | 0c4de72f042dbd5c69a9989c1a2fa0340d7e031c | |
parent | 284986e85c767f3473e868a065e344df0d946ede (diff) | |
download | jenkins.debian.net-afd1bc3ae35acc5871a02ec07f1ac71a47c6fb43.tar.xz |
reproducible: deal gracefully with dose-deb-coinstall failures
-rwxr-xr-x | bin/reproducible_create_meta_pkg_sets.sh | 43 | ||||
-rw-r--r-- | logparse/reproducible.rules | 1 |
2 files changed, 32 insertions, 12 deletions
diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh index 5659c7fd..e972d11b 100755 --- a/bin/reproducible_create_meta_pkg_sets.sh +++ b/bin/reproducible_create_meta_pkg_sets.sh @@ -68,6 +68,17 @@ update_if_similar() { fi } +get_installable_set() { + set +e + schroot --directory /tmp -c source:jenkins-dpkg-jessie -- dose-deb-coinstall --deb-native-arch=$ARCH --bg=$PACKAGES --fg=${TMPFILE2} > $TMPFILE + RESULT=$? + if [ $RESULT -ne 0 ] ; then + rm $TMPFILE + echo "Warning: dose-deb-coinstall cannot calculate the installable set for $1" + fi + set -e +} + update_pkg_sets() { # the essential package set if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[1]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[3]}.pkgset ] ; then @@ -87,9 +98,11 @@ update_pkg_sets() { if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[3]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[3]}.pkgset ] ; then chdist --data-dir=$CHPATH grep-dctrl-packages $DISTNAME -X \( -FBuild-Essential yes --or -FPackage build-essential \) > ${TMPFILE2} # here we want the installable set: - schroot --directory /tmp -c source:jenkins-dpkg-jessie -- dose-deb-coinstall --deb-native-arch=$ARCH --bg=$PACKAGES --fg=${TMPFILE2} > $TMPFILE - convert_from_deb822_into_source_packages_only - update_if_similar ${META_PKGSET[3]}.pkgset + get_installable_set ${META_PKGSET[3]}.pkgset + if [ -f $TMPFILE ] ; then + convert_from_deb822_into_source_packages_only + update_if_similar ${META_PKGSET[3]}.pkgset + fi fi # build-essential-depends @@ -151,9 +164,11 @@ update_pkg_sets() { # gnome and everything it depends on if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[8]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[8]}.pkgset ] ; then chdist --data-dir=$CHPATH grep-dctrl-packages $DISTNAME -X \( -FPriority required --or -FPackage gnome \) > ${TMPFILE2} - schroot --directory /tmp -c source:jenkins-dpkg-jessie -- dose-deb-coinstall --deb-native-arch=$ARCH --bg=$PACKAGES --fg=${TMPFILE2} > $TMPFILE - convert_from_deb822_into_source_packages_only - update_if_similar ${META_PKGSET[8]}.pkgset + get_installable_set ${META_PKGSET[8]}.pkgset + if [ -f $TMPFILE ] ; then + convert_from_deb822_into_source_packages_only + update_if_similar ${META_PKGSET[8]}.pkgset + fi fi # The build-depends of X tasks can be solved once dose-ceve is able to read @@ -178,9 +193,11 @@ update_pkg_sets() { # kde and everything it depends on if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[10]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[10]}.pkgset ] ; then chdist --data-dir=$CHPATH grep-dctrl-packages $DISTNAME -X \( -FPriority required --or -FPackage kde-full \) > ${TMPFILE2} - schroot --directory /tmp -c source:jenkins-dpkg-jessie -- dose-deb-coinstall --deb-native-arch=$ARCH --bg=$PACKAGES --fg=${TMPFILE2} > $TMPFILE - convert_from_deb822_into_source_packages_only - update_if_similar ${META_PKGSET[10]}.pkgset + get_installable_set ${META_PKGSET[10]}.pkgset + if [ -f $TMPFILE ] ; then + convert_from_deb822_into_source_packages_only + update_if_similar ${META_PKGSET[10]}.pkgset + fi fi # all build depends of kde rm -f $TMPFILE @@ -195,9 +212,11 @@ update_pkg_sets() { # xfce and everything it depends on if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[12]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[12]}.pkgset ] ; then chdist --data-dir=$CHPATH grep-dctrl-packages $DISTNAME -X \( -FPriority required --or -FPackage xfce4 \) > ${TMPFILE2} - schroot --directory /tmp -c source:jenkins-dpkg-jessie -- dose-deb-coinstall --deb-native-arch=$ARCH --bg=$PACKAGES --fg=${TMPFILE2} > $TMPFILE - convert_from_deb822_into_source_packages_only - update_if_similar ${META_PKGSET[12]}.pkgset + get_installable_set ${META_PKGSET[12]}.pkgset + if [ -f $TMPFILE ] ; then + convert_from_deb822_into_source_packages_only + update_if_similar ${META_PKGSET[12]}.pkgset + fi fi # all build depends of xfce rm -f $TMPFILE diff --git a/logparse/reproducible.rules b/logparse/reproducible.rules index a5094a44..f2d04fdd 100644 --- a/logparse/reproducible.rules +++ b/logparse/reproducible.rules @@ -18,3 +18,4 @@ warning /Warning: package .+is probably already building elsewhere, exiting./ warning /Warning: too much difference for .+, aborting. Please investigate and update manually./ warning /Warning: This query produces no results:.+/ warning /Warning: couldn't delete old files from.+/ +warning /Warning: dose-deb-coinstall cannot.+/ |