Hide Forgot
Description of problem: When importing a package, it fails to take the spec and sources and rebuild into SRPM because it bombs out, saying bad %if condition on the line where "%if 0%{?mageia}" exists. How reproducible: Always Steps to Reproduce: 1. Make a package using %mageia conditional somewhere in the spec 2. Build it in copr with Mageia targets enabled 3. Actual results: Fails out with bad %if condition Expected results: Processes and builds properly Additional info: Example can be seen here: https://copr.fedorainfracloud.org/coprs/ngompa/godot/build/474979/ Spec and build log links are present there.
This is a "bug" in fedpkg-copr specific to cauldron. You see, for cauldron, the %mageia macro is defined as 'cauldron' by fedpkg-copr. That is what trips %if conditions out. It should probably be defined as '7' if I understand correctly.
Currently, it should be defined as 6, since we haven't branched from 6 to 7. We branch formally on official release.
Sorry to ask but is it important that it is 6 now? Because if I make it 6 now, I will need to make it 7 later (which I can do, just asking if it is really the best way).
(In reply to clime from comment #3) > Sorry to ask but is it important that it is 6 now? Because if I make it 6 > now, I will need to make it 7 later (which I can do, just asking if it is > really the best way). This isn't defined by the releasever option set in the mock config associated with the target? Because in there it's set to "6".
Fixed by https://pagure.io/copr/copr/c/20663c096f0a922de900aaf7303c310632c6adba?branch=master.