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
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