Bug #3546
closedrudder-agent RPM packages don't require the right 32/64 bit dependencies
Description
Some installations can break because of this: I have a CentOS 6 64 bits that installed rudder-agent 32 bit, and it's dependency tokyocabinet in 64 bits... Which obviously does not work.
This is due to the presence of the following lines in rudder-agent.spec:
AutoReq: 0 AutoProv: 0
These lines tell rpmbuild not to automatically generate the list of dependencies for a package, but to rely on what is declared in the spec file only. In our case that is "tokyocabinet", with no precision as to 32/64 bit. This mechanism is described in http://laiskiainen.org/blog/?p=35.
The reason we introduced this behaviour (in historic ticket #1828 on Normation's internal bugtracker, way back in 2011) was to avoid rpmbuild analying all the dependencies of the perl libraries we bundle in rudder-agent, and causing yum to install all sorts of other non-necessary dependencies. It looks like we now need to re-enable the automatically generated list of dependencies, but just exclude the Perl dependencies, with something like what is described here: http://corp.sonic.net/internals/2008/08/13/when-perl-and-rpm-don%E2%80%99t-get-along/.
Updated by Jonathan CLARKE over 11 years ago
- Pull Request set to https://github.com/Normation/rudder-packages/pull/53
Based on http://stackoverflow.com/questions/12212712/can-some-specific-autodetected-dependency-be-ignored-upon-rpmbuild, here's a Pull Request that should restablish usage of AutoReq, and filter out just the Perl stuff we add in: https://github.com/Normation/rudder-packages/pull/53
Updated by Jonathan CLARKE over 11 years ago
- Status changed from In progress to Pending release
- % Done changed from 0 to 100
Applied in changeset packages:commit:7b37d0a83ed4a67d1d1004aa589f0f3df26318e6.
Updated by Matthieu CERDA over 11 years ago
Applied in changeset packages:commit:effd81254c297be335d6f94bc90fdb4928a87923.
Updated by Matthieu CERDA over 11 years ago
- Target version changed from 2.5.3 to 2.6.0~rc1
Updated by Jonathan CLARKE over 11 years ago
- Status changed from Pending release to Released
Updated by Benoît PECCATTE over 9 years ago
- Project changed from 34 to Rudder
- Category set to Packaging