X-Git-Url: https://git.jankratochvil.net/?p=massrebuild.git;a=blobdiff_plain;f=runone;h=1ac986d79681a40ad6833e1363b4ec3385f47507;hp=3a06d7d96142d201ef4937dae133264753b6bf29;hb=9f90b73f1a54389ae283f9f2a955728bd8866afb;hpb=b8c156e17fa63af0012dc6c19ecb9396effce590 diff --git a/runone b/runone index 3a06d7d..1ac986d 100755 --- a/runone +++ b/runone @@ -5,6 +5,9 @@ shift mock="mock -v -r fedora-rawhide-x86_64 --uniqueext=mass$$ --no-bootstrap-chroot --disable-plugin=yum_cache" # https://bugzilla.redhat.com/show_bug.cgi?id=1869030 glibc 2.32.9000-1 snapshot build in rawhide breaks systemd-nspawn based chroots mock="$mock --isolation=simple" +# (1) inaccessible plugin file plugin/annobin.so expanded from short plugin name annobin +# (2) -a gets ignored. +mock="$mock --disable-plugin=root_cache" mkdir -p build cd build for pkg in "$@";do @@ -21,6 +24,7 @@ for pkg in "$@";do continue fi #rpm -q --requires -p $srcrpm|egrep '^(gcc|clang)' || continue +if false;then rpm2archive $srcrpm rm -rf $srcrpm.d mkdir $srcrpm.d @@ -50,19 +54,22 @@ for pkg in "$@";do continue fi # if not pkg.endswith('.rpm'): log.error("%s doesn't appear to be an rpm - skipping", pkg) - mv -f resultdir/*.src.rpm ../$srcrpm.dt.rpm + mv -f resultdir/*.src.rpm ../$srcrpm.nc.rpm cd .. - test -e $srcrpm.dt.rpm - ln $srcrpm.dt.rpm $srcrpm.dt5.rpm + test -e $srcrpm.nc.rpm rm -rf $srcrpm.d - for ext in "" ".dt.rpm" ".dt5.rpm";do +else + ln $srcrpm $srcrpm.nc.rpm +fi + for ext in "" ".nc.rpm";do resultdir=$PWD/$srcrpm$ext.resultdir test ! -e $resultdir set +e # --chain instead of --rebuild as otherwise -a does not work $mock --resultdir=$resultdir --nocheck $( - if [ "$ext" = ".dt.rpm" ];then echo -a https://www.jankratochvil.net/t/rpmdts/ ;fi - if [ "$ext" = ".dt5.rpm" ];then echo -a https://www.jankratochvil.net/t/rpmdts5/;fi + if [ "$ext" = ".nc.rpm" ];then echo -a https://www.jankratochvil.net/t/nocommon/;fi + if [ "$ext" = ".dt.rpm" ];then echo -a https://www.jankratochvil.net/t/rpmdts/ ;fi + if [ "$ext" = ".dt5.rpm" ];then echo -a https://www.jankratochvil.net/t/rpmdts5/ ;fi ) --chain $srcrpm$ext &>$srcrpm$ext.mocklog mockrc=$? set -e