Re: Copr patch syntax compat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 22.05.25 um 11:33 schrieb Miro Hrončok:
On 21. 05. 25 20:08, Leon Fauster via devel wrote:
Hey all, while trying to build some centos-stream packages via git in COPR, recently I get

error: %patchN is obsolete, use %patch N (or %patch -P N)

aborted builds. I can patch the specs files for all builds but (question) is there a compat switch to be able to build unmodified packages/specs coming from centos-stream git?

The target buildroots are centos/rhel, so the compat issue is a layer before starting the build …
Unfortunately no. Copr always processes the spec files on a stable Fedora version, which causes trouble for stuff that is too new (e.g. uses new RPM rawhide-only features) or too old (e.g. uses old RPM EL- only features).

I created https://github.com/fedora-copr/copr/issues/1315 5 years ago



I am not so involved is this kind of things but I have the impression
that this interruption should not be made in the “build-infra” layer,
but rather in the “application” layer. Why is mock dealing with the
semantics of the spec file, crossing borders without need?
At least it should support 1:1 build components (EL-spec:EL-buildroot,
F42-spec:F42-buildroot). Right now, it is enforcing F42spec-syntax for
EL-buildroots ...  Anyway, thanks for the feedback!

--
Leon
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux