Fix removal of: -fcommon
[massrebuild.git] / runone
diff --git a/runone b/runone
index 022d0e5..a31325e 100755 (executable)
--- a/runone
+++ b/runone
@@ -31,7 +31,8 @@ for pkg in "$@";do
      continue
    fi
    (echo '%global _find_debuginfo_dwz_opts %{nil}'
-    echo '%global optflags %(echo %{optflags}|sed "s/ -g / -g -fdebug-types-section /")'
+# It removes -fcommon, use redhat-rpm-config.patch instead.
+#    echo '%global optflags %(echo %{optflags}|sed "s/ -g / -g -fdebug-types-section /")'
     sed 's/^%\(\(define\|global\) *_find_debuginfo_dwz_opts\)/\1/'
    ) <$name.spec >$name.spec.new
    cp -p $name.spec     ../$srcrpm.spec
@@ -56,7 +57,7 @@ for pkg in "$@";do
     test ! -e $resultdir
     set +e
     # --chain instead of --rebuild as otherwise -a does not work
-    $mock --resultdir=$resultdir --nocheck $(: -a https://people.redhat.com/jkratoch/dwzrepo/ ) --chain $srcrpm$ext &>$srcrpm$ext.mocklog
+    $mock --resultdir=$resultdir --nocheck $(if [ -n "$ext" ];then echo -a https://www.jankratochvil.net/t/rpmdts/;fi) --chain $srcrpm$ext &>$srcrpm$ext.mocklog
     mockrc=$?
     set -e
     test -e $resultdir