-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional packages in buildroot when building SRPM #3627
Comments
i put the reproducer here: https://pastebin.com/raw/G8ZhHT3W , so it'll persist awhile ... |
While the implementation may be easy (Frostyx claims that it can be oneliner), there is an easy workaround (use a custom method). Therefore, I will give it low priority. |
on the COPR site @
it currently explicitly states: "Edit chroot 'fedora-41-x86_64' NOTE, "always". it seems to me that implementing the fix is simpler, but -- in order to save others' some time/effort figuring out that there IS a problem, that a workaround exists, and then determining how to do a 'Custom' build, swithcing to it and testing it? |
When I try reproduce locally
IOW, it builds the source RPM just fine. Yes, I see the shell's complaint that This pretty much resonates with this topic: release-engineering/dist-git#72 . From the infra perspective, we don't actually need to produce source RPM (and parse spec files) to successfully import the spec into our dist-git instance, and then start RPM builds (!= SRPM build). Practically, though, this is a spec file bug. Spec files should stay as self-standing as possible, generating SRPM shouldn't be a big (or even insecure, like touching the interned by macro) deal.
Hm, I'm not convinced, because #534 - I don't think we run rpkg-util in mock?
Would you mind helping us with the documentation? I can think of two topics:
|
"silently forced to download stuff" ? COPR is used here to fill local needs unmet by Fedora project's official packaging, &/or to provide basis for test/devel. what 'should' be in a COPR spec is an opinion -- until it becomes a 'must'.
the page says listed packages are added, and always available to the chroot. if that's NOT the case, don't say it; rather, say what IS the case. e.g., "packages listed here are ONLY added to chroot if a Custom build is specified; otherwise they are ignored & remain uninstalled. it's completely unclear to me what the intent actually is. |
I didn't want to make the discussion heated, sorry. As many times before (mostly on Matrix) I just wanted to help you, and give some well-intentioned suggestions. The most of the maintainers out there consider Then, I wanted to bring #534 into the consideration, this is definitely not a one-liner eventually.
Not sure which page you mean. If you could submit a pull request against the docs where you see the problem, 🚀 please do. |
Sorry, this was a bad judgment on my side. I didn't realize this:
|
no worries, no heat & no help req'd. this has become far too complicated. i'm simply filing what's seen here as a bug. here's a picture: despite the 'stmt' there, 'jq' is not added to the chroot; and is unavailable for use in the spec. it's irrelevant whether it's jq, or another pkg, one or many. i'm not trying to change any functionality; i'm clear my usage/interests don't typically align with COPR/Fedora projects. i'm simply suggesting that the page "says what it does, and does what it says". as mentioned, it's unclear to me what 'COPR project' intends here. |
But these specified packages are installed into the RPM build root, or? But note the difference, RPM buildroots are different from the "source build" buildroot (sources are built just once for all RPM buildroots). Then, not every source build method is executed in buildroot - some are executed directly on host. That includes the rhpkg. |
From Matrix
The specfile is here: https://pagure.io/pgnd/vulkan-wsi-layer-pgnd/blob/main/f/vulkan-wsi-layer.spec
The package does something like this at the very top:
which looks insane to me but it is obviously meant as a reproducer. I am not sure what the real use-case is.
However, this seems like an easyfix? We can just do this for SRPM builds as well
copr/frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py
Line 190 in 8695206
The text was updated successfully, but these errors were encountered: