Bug 1141218 - pulp.spec:547: W: libdir-macro-in-noarch-package agent %{_libdir}/gofer/plugins/pulpplugin.*
Summary: pulp.spec:547: W: libdir-macro-in-noarch-package agent %{_libdir}/gofer/plugi...
Alias: None
Product: Pulp
Classification: Retired
Component: consumers
Version: Master
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: pulp-bugs
QA Contact: pulp-qe-list
Depends On:
TreeView+ depends on / blocked
Reported: 2014-09-12 13:09 UTC by Randy Barlow
Modified: 2015-02-28 22:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-02-28 22:19:21 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Pulp Redmine 520 0 None None None Never

Description Randy Barlow 2014-09-12 13:09:45 UTC
Description of problem:
rpmlint -i pulp.spec gives the following warning:

pulp.spec:547: W: libdir-macro-in-noarch-package agent %{_libdir}/gofer/plugins/pulpplugin.*
The %{_libdir} or %{_lib} macro was found in a noarch package in a section
that gets included in binary packages.  This is most likely an error because
these macros are expanded on the build host and their values vary between
architectures, probably resulting in a package that does not work properly on
all architectures at runtime. Investigate whether the package is really
architecture independent or if some other dir/macro should be instead.

gofer should use Python's entry point system to locate plugins rather than putting Python code in /usr/lib/.

Version-Release number of selected component (if applicable):

How reproducible:
Every time

Steps to Reproduce:
1. Run rpmlint -i pulp.spec

Actual results:
The above warning is printed.

Expected results:
No warnings should be printed.

Comment 1 Jeff Ortel 2014-09-17 20:33:38 UTC
Gofer supports loading plugins from /usr/share/gofer/plugins as well as /usr/lib/gofer/plugins and /usr/lib64/gofer/plugins.

Gofer 1.0+ supports loading plugins from the python path.  This can be done by simply adding a property to the plugin descriptor:

plugin: pulp.agent.gofer.pulpplugin


Any of the above solutions will resolve this bug.

Comment 2 Brian Bouterse 2015-02-28 22:19:21 UTC
Moved to https://pulp.plan.io/issues/520

Note You need to log in before you can comment on or make changes to this bug.