https://bugzilla.redhat.com/show_bug.cgi?id=1297132
Bug ID: 1297132
Summary: RFE: Use the %__erlang_provides macro in the spec file
Product: Fedora
Version: rawhide
Component: erlang
Severity: low
Assignee: lemenkov(a)gmail.com
Reporter: rbarlow(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: erlang(a)lists.fedoraproject.org, jeckersb(a)redhat.com,
lemenkov(a)gmail.com, rhbugs(a)n-dimensional.de, s(a)shk.io
I noticed that there is a handy %__erlang_provides_requires macro in
/usr/lib/rpm/macros.d/macros.erlang and attempted to use it on one of my
packages. Unfortunately, this causes my package to depend on lots of Erlang
built-ins and the erlang package doesn't mark itself as providing these
built-ins. For example, when I use that macro in my erlang-oauth2 package, it
fails to install like this:
$ sudo dnf install erlang-oauth2/results/erlang-oauth2-0.6.0-3.fc24.x86_64.rpm
Last metadata expiration check performed 1:57:49 ago on Sat Jan 9 10:17:18
2016.
Error: nothing provides erlang(application:get_env/2) needed by
erlang-oauth2-0.6.0-3.fc24.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages)
In the meantime, I can work around this issue by using the correct Requires on
my package but it would be a nice improvement if we could get that
automatically working, especially since somebody took the time to write that
fancy macro.
--
You are receiving this mail because:
You are on the CC list for the bug.