[Rpm-maint] [rpm-software-management/rpm] Wrong src RPM deps parsing by rpmbuild (Issue #2690)

Коренберг Марк notifications at github.com
Wed Oct 4 10:22:36 UTC 2023


@pmatilai sorry for bash script, but I want just show what happens in our build script:

```bash
    unpriv rpmbuild "${defines[@]}" -bs "$spec_file" --rmspec
    srpm=("$RPMBUILD"/SRPMS/*.src.rpm)
    while :; do
        unpriv rpmbuild "${defines[@]}" -rr "$srpm" && exit_code=0 || exit_code=$?
        case "$exit_code" in
            0)
                break
                ;;
            11)
                reqsrpm=("$RPMBUILD"/SRPMS/*.buildreqs.nosrc.rpm)
                if [ -f "$reqsrpm" ]; then
                    install_deps "$reqsrpm"
                    rm -f "$reqsrpm"
                else
                    install_deps "$srpm"
                fi
                ;;
            *)
                echo "rpmbuild -rr FAILED code $exit_code" >&2
                exit 42
                ;;
        esac
    done
```

And on this package it falls into endless loop. Note, environment is exactly the same on both rpmbuild runs.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2690#issuecomment-1746578126
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2690/1746578126 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20231004/d66753c5/attachment-0001.html>


More information about the Rpm-maint mailing list