Skip to content

Use copr:// links for external repositories#11562

Merged
ogajduse merged 1 commit into
theforeman:rpm/developfrom
ekohl:rpm/develop-better-chroots
Feb 17, 2026
Merged

Use copr:// links for external repositories#11562
ogajduse merged 1 commit into
theforeman:rpm/developfrom
ekohl:rpm/develop-better-chroots

Conversation

@ekohl
Copy link
Copy Markdown
Member

@ekohl ekohl commented Dec 6, 2024

This has the benefit that COPR internally knows where to download it from. We don't need to repeat the specific buildroot name.

My long term goal is to have less configuration for the buildroots so it becomes easier to manage multiple. Ideally we support multiple architectures with minimal configuration.

At this moment it's untested, but I'd like to experiment with this. In fact, we should probably use https://fedora-copr.github.io/posts/runtime-dependencies and enhance obal to manage that.

@ehelms
Copy link
Copy Markdown
Member

ehelms commented Dec 6, 2024

That blog post is unclear to me if it translates runtime dependencies into the buildroot dependencies. Or if it translates buildroot dependencies that same way when using copr:// -- have you been able to test this idea out on a repo?

@ekohl
Copy link
Copy Markdown
Member Author

ekohl commented Dec 6, 2024

No, I started to do that but it's the first time I used obal in a long time and immediately ran into theforeman/obsah#37 again. It's https://www.youtube.com/watch?v=AbSehcT19u0 all over again.

@ekohl ekohl force-pushed the rpm/develop-better-chroots branch from 1ee34d4 to 70e16e2 Compare December 20, 2025 19:30
@ekohl ekohl marked this pull request as ready for review December 20, 2025 19:31
@ekohl ekohl requested a review from a team as a code owner December 20, 2025 19:31
@ekohl
Copy link
Copy Markdown
Member Author

ekohl commented Dec 20, 2025

I've validated this concept in https://community.theforeman.org/t/bootstrapping-foreman-rpm-packaging/45290. In #12872 it's a lot easier to use this, but rebuilding on ARM was actually way nicer.

The next level could be to define the external repos this way on the project itself instead of per buildroot.

This allows COPR to figure out the exact download URLs. It also removes
some of the architecture specific naming and may allow defining external
repositories at the COPR project level instead of the chroot level.
@ekohl ekohl force-pushed the rpm/develop-better-chroots branch from 70e16e2 to ec92bd9 Compare January 25, 2026 17:17
Copy link
Copy Markdown
Member

@ogajduse ogajduse left a comment

Choose a reason for hiding this comment

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

I invested some time in investigating the copr:// scheme, and I don't see an issue with using it.

@ekohl Would you like to create an issue in the obal project for the enhancement you mentioned in the PR description?

@ekohl
Copy link
Copy Markdown
Member Author

ekohl commented Feb 2, 2026

@ekohl Would you like to create an issue in the obal project for the enhancement you mentioned in the PR description?

I can file that but, that is a further optimization.

@ogajduse ogajduse merged commit 01c9ef6 into theforeman:rpm/develop Feb 17, 2026
2 checks passed
@ekohl ekohl deleted the rpm/develop-better-chroots branch February 17, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants