Hi everyone,

I have to admit — I almost gave up! I can’t figure out how to add
declarative macros to another build system, and it’s nowhere to be
found in the documentation. Let me share my sad story.

I added the necessary macros for use with the Rebar3 build system in
this commit:

* https://github.com/fedora-erlang/erlang-rpm-macros/commit/a3c1cccf

The package was successfully built and pushed to Fedora’s repos. If
you install it manually, the macros work  locally— so they do function
as expected.

According to RPM.org, simply defining them should be enough:

* https://rpm-software-management.github.io/rpm/manual/buildsystem.html

Unfortunately, reality is far from that. The issue is that these
macros must be available during the BuildFromSRPM stage, and I have no
idea how to make that happen. I looked at the pyproject macros and
noticed they use *-macros-srpm package (yet another entirely
undocumented detail — why do we need these instead of just
*-macros-rpm?). So I tried this:

* https://github.com/fedora-erlang/erlang-rpm-macros/commit/c214c8a8bb

Still no luck. Every build attempt fails during the BuildFromSRPM
stage, and there’s no sign that erlang-macros-srpm is being hooked up.

What am I missing? Any help would be very appreciated! :)
-- 
With best regards, Peter Lemenkov.
-- 
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to