#5257: Rubygems rebuild failed due to wrong expansion of %{_libdir} macro

Fedora Release Engineering rel-eng at fedoraproject.org
Fri Jul 27 13:42:07 UTC 2012


#5257: Rubygems rebuild failed due to wrong expansion of %{_libdir} macro
------------------------------+-----------------------
  Reporter:  vondruch         |      Owner:  rel-eng@…
      Type:  defect           |     Status:  new
 Milestone:  Fedora 18 Alpha  |  Component:  koji
Resolution:                   |   Keywords:
Blocked By:                   |   Blocking:
------------------------------+-----------------------

Comment (by spot):

 RPM does not define the "isa" macros on noarch builds, so everything
 reverts to defaults, in this case, libdir reverting to /usr/lib. I'm not
 sure why you see different behaviour on your local system.

 The only safe way to use %{_libdir} is in an architecture specific
 package, because when the package build is noarch, koji could choose any
 available builder, regardless of architecture, giving you a 50% chance
 (i686 vs x86_64) of matching /usr/lib to the actual environment. I would
 argue that if a package is compiling against files in an architecture
 specific directory (aka under %{_libdir}), it is not truly a noarch
 package. (You may be able to get around this by having the main package be
 architecture specific, with all the files that end up under %{_libdir} in
 the main package, and any truly architecture independent packages in a
 noarch subpackage, but that might be more hackish than simply disabling
 noarch.)

 Hope that helps.

-- 
Ticket URL: <https://fedorahosted.org/rel-eng/ticket/5257#comment:1>
Fedora Release Engineering <http://fedorahosted.org/rel-eng>
Release Engineering for the Fedora Project


More information about the rel-eng mailing list