-
Ticket
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
-
8
-
None
-
Testable
I'm encountering an issue with centpkg and rhpkg when performing packaging tasks for stratisd, which is a Rust package that uses Rust RPM macros. It's this error message:
error: The -V flag for cargo_prep is not supported in Fedora
...and I've seen this error on a number of occasions:
- Six months ago, when trying to run "centpkg srpm", to generate a source RPM so I could run a scratch build of stratisd. (The stratisd package takes about 30 to 40 minutes to build in Koji / Brew; if I have a fast system with lots of CPU cores, it can locally mock build in 15 minutes. Nowadays, I just use "mock --buildsrpm" with the files, because I don't trust whatever centpkg / rhpkg is doing in the background.)
- Yesterday, when trying to run "git push origin rhel-9-main:rhel-9.4.0" in the RHEL dist-git repo for stratisd, while on the commit for the package NVR that is the latest tagged into "rhel-9.4.0". I had to move the ".git/hooks/pre-push" file out of the way, in order to push the branch. (This wasn't even for a build; it was to create the RHEL-repo branch, so I could build a package for rhel-9.5.)
- Today, when trying to run "centpkg build" for a new stratisd package build. I had to run "centpkg build --skip-nvr-check" after manually ensuring a proper NVR update (it was from stratisd-3.6.2-1 to stratisd-3.6.7-1)
I have to build packages for Fedora, CentOS Stream, and RHEL. The Rust macros are changing very quickly, to resolve compatibility issues between the distros. But I'm wondering if there's issues with having to update packages on my system that performs packaging. (Before anyone says "use developer toolbox", I need a test-drive of it before I can have more confidence in it, compared to a virtual machine.)