Skip to content

Fix libsolv nightly builds by downloading all current patches#1835

Merged
kontura merged 1 commit intorpm-software-management:mainfrom
kontura:fix-nightly-libsolv
Feb 24, 2026
Merged

Fix libsolv nightly builds by downloading all current patches#1835
kontura merged 1 commit intorpm-software-management:mainfrom
kontura:fix-nightly-libsolv

Conversation

@kontura
Copy link
Copy Markdown
Contributor

@kontura kontura commented Feb 24, 2026

Since we take libsolv specfile from fedora we have to somehow deal with its patches otherwise the build fails.
(It currently fails due to a patch that is not found: https://github.com/rpm-software-management/ci-dnf-stack/actions/runs/22333046695/job/64619445104)

We could either drop them or use them.

Since the specfile could be changed in a way that requires the patches to successfully create an rpm I think it will be more robust to download and use them.

# Download spec
- "wget https://src.fedoraproject.org/rpms/libsolv/raw/main/f/libsolv.spec -O libsolv.spec"
# Download patches used in the spec
- bash -c "spectool -P libsolv.spec | awk '{print $2}' | xargs -I {} curl -O https://src.fedoraproject.org/rpms/libsolv/raw/rawhide/f/{}"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would probably add:

Suggested change
- bash -c "spectool -P libsolv.spec | awk '{print $2}' | xargs -I {} curl -O https://src.fedoraproject.org/rpms/libsolv/raw/rawhide/f/{}"
- bash -c "spectool -P libsolv.spec | awk '{print $2}' | xargs -I {} curl --retry 3 -O https://src.fedoraproject.org/rpms/libsolv/raw/rawhide/f/{}"

I'm actually surprised that the downloading of specfile has not been an issue so far. However downloading patches in a succession will probably trip up Pagure…


I hope I get to live to see the day Pagure dies…

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Added.

Since we take libsolv specfile from fedora we have to somehow deal with
its patches otherwise the build fails.

We could either drop them or use them.

Since the specfile could be changed in a way that requires the patches
to successfully create an rpm I think it will be more robust to download
and use them.
@kontura kontura force-pushed the fix-nightly-libsolv branch from 1751f17 to 82d3cba Compare February 24, 2026 13:31
@kontura kontura merged commit 009403c into rpm-software-management:main Feb 24, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants