https://bugzilla.redhat.com/show_bug.cgi?id=1476614
Bug ID: 1476614 Summary: RFE: Modify the Erlang VM to search in /usr/share/erlang/lib for noarch libs Product: Fedora Version: rawhide Component: erlang Severity: medium Assignee: lemenkov@gmail.com Reporter: randy@electronsweatshop.com QA Contact: extras-qa@fedoraproject.org CC: erlang@lists.fedoraproject.org, jeckersb@redhat.com, lemenkov@gmail.com, rhbugs@n-dimensional.de, s@shk.io
Created attachment 1306684 --> https://bugzilla.redhat.com/attachment.cgi?id=1306684&action=edit noarch_libs.patch
Description of problem: As part of a change for Fedora 27, I have written a patch for the erlang spec file that will modify the Erlang VM to also search in /usr/share/erlang/lib for noarch libs. I am attaching a patch I wrote that uses sed in the spec file to append this new path just before the archful libs in the search path.
I have tested this patch with ejabberd by moving one of its dependencies (p1_utils) into the new /usr/share/erlang/lib. Without this patch ejabberd fails to start, but with the patch it starts up successfully.
Once we have this patch applied, we just need to modify the RPM macros to use the new path for noarch packages and we'll have the change completed.