i'm building a 2-source pkg @ COPR (https://copr.fedorainfracloud.org/coprs/pgfed/test/). i'm using %forge pkg'ing macros.
my spec contains
Source0: %{forgesource0} Source1: %{forgesource1}
if %prep contains (@ test1.spec)
... %prep %forgesetup -a (or %forgesetup -z 0 %forgesetup -z 1 ) exit 255 ...
COPR build fails to unpack the 2nd SOURCE (https://download.copr.fedorainfracloud.org/results/pgfed/test/fedora-39-x86_...),
... archiveurl0: https://api.github.com/repos/owasp-modsecurity/ModSecurity/tarball/v3.0.12 ... extractdir0: owasp-modsecurity-ModSecurity-e7ecdd6 ... forgesource1: https://api.github.com/repos/client9/libinjection/tarball/v3.10.0 ... extractdir1: client9-libinjection-bf234eb ... Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.2IIb7G + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf owasp-modsecurity-ModSecurity-e7ecdd6 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/v3.0.12 + STATUS=0 + '[' 0 -ne 0 ']' + cd owasp-modsecurity-ModSecurity-e7ecdd6 + rm -rf /builddir/build/BUILD/owasp-modsecurity-ModSecurity-e7ecdd6-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/owasp-modsecurity-ModSecurity-e7ecdd6-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + rm -rf client9-libinjection-bf234eb + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/v3.0.12 + STATUS=0 + '[' 0 -ne 0 ']' + cd client9-libinjection-bf234eb /var/tmp/rpm-tmp.2IIb7G: line 52: cd: client9-libinjection-bf234eb: No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.2IIb7G (%prep) ...
NOTE, that after the proc'ing of the 2nd SOURCE begins,
+ rm -rf client9-libinjection-bf234eb
rpmuncompress execs, **incorrectly**, on the **1st** SOURCE @
/builddir/build/SOURCES/v3.0.12
rather than the
/builddir/build/SOURCES/v3.10.0
OTOH, if i mod %prep (@ test2.spec; otherwise unchanged ...),
... %prep - %forgesetup -a + rm -rf %{extractdir0} + rm -rf %{extractdir1} + /usr/lib/rpm/rpmuncompress -x -v %{_sourcedir}/%{branch0} + pigz -dcq "%{_sourcedir}/%{branch0}" | tar -xvvof - + /usr/lib/rpm/rpmuncompress -x -v %{_sourcedir}/%{branch1} + pigz -dcq "%{_sourcedir}/%{branch1}" | tar -xvvof - exit 255 ...
the build 'fails correctly, at the `exit 255`, after correctly unpacking BOTH sources (https://download.copr.fedorainfracloud.org/results/pgfed/test/fedora-39-x86_...),
... RPM build errors: + /bin/cp -af /builddir/build/BUILD/client9-libinjection-bf234eb/src /builddir/build/BUILD/owasp-modsecurity-ModSecurity-e7ecdd6/others/libinjection/ + exit 255
iiuc
https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/#_multip...
%forgesetup _should_ correctly unpack BOTH sources
is my usage incorrect in the .spec? or, a bug here?
fyi, simplified reproducer, filed @
packaging@lists.fedoraproject.org