Task #520
closedpulp.spec:547: W: libdir-macro-in-noarch-package agent %{_libdir}/gofer/plugins/pulpplugin.*
0%
Description
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):
2.4.0-1
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.
+ This bug was cloned from Bugzilla Bug #1141218 +
Updated by jortel@redhat.com about 9 years ago
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:
[main]
plugin: pulp.agent.gofer.pulpplugin
Any of the above solutions will resolve this bug.
+ This comment was cloned from Bugzilla #1141218 comment 1 +
Updated by cduryee about 9 years ago
- Status changed from NEW to 7
This appears to be fixed in master:
$ rpmlint pulp.spec
pulp.spec:338: W: unversioned-explicit-obsoletes pulp
pulp.spec:553: W: unversioned-explicit-obsoletes pulp-common
pulp.spec:623: W: unversioned-explicit-obsoletes pulp-client-lib
pulp.spec:670: W: unversioned-explicit-obsoletes pulp-admin
pulp.spec:700: W: unversioned-explicit-obsoletes pulp-consumer
pulp.spec:776: W: unversioned-explicit-obsoletes pulp-selinux-server
pulp.spec: W: invalid-url Source0: https://github.com/pulp/pulp/archive/pulp-2.6.1.tar.gz HTTP Error 404: Not Found
0 packages and 1 specfiles checked; 0 errors, 7 warnings.
rbarlow: is it ok to close this task?
Updated by rbarlow about 9 years ago
On 03/04/2015 01:42 PM, cduryee wrote:
rbarlow: is it ok to close this task?
It sure looks that way!
Updated by bmbouter about 9 years ago
- Status changed from 7 to CLOSED - WORKSFORME