Project

General

Profile

Actions

Bug #3546

closed

rudder-agent RPM packages don't require the right 32/64 bit dependencies

Added by Jonathan CLARKE about 11 years ago. Updated about 9 years ago.

Status:
Released
Priority:
2
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

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/.


Related issues 2 (0 open2 closed)

Related to Rudder - Bug #3523: No valid UUID was generated for a node, breaking several thingsReleasedMatthieu CERDA2013-04-24Actions
Related to Rudder - Bug #3549: Backport #3546 (fix rudder-agent RPM dependencies to require 64-bit packages when appropriate)ReleasedMatthieu CERDA2013-04-26Actions
Actions

Also available in: Atom PDF