Project

General

Profile

Actions

Bug #3546

closed

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

Added by Jonathan CLARKE almost 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 #1

Updated by Jonathan CLARKE almost 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

Actions #2

Updated by Jonathan CLARKE almost 11 years ago

  • Status changed from In progress to Pending release
  • % Done changed from 0 to 100

Applied in changeset packages:commit:7b37d0a83ed4a67d1d1004aa589f0f3df26318e6.

Actions #3

Updated by Matthieu CERDA almost 11 years ago

Applied in changeset packages:commit:effd81254c297be335d6f94bc90fdb4928a87923.

Actions #4

Updated by Matthieu CERDA almost 11 years ago

  • Target version changed from 2.5.3 to 2.6.0~rc1
Actions #5

Updated by Jonathan CLARKE almost 11 years ago

  • Project changed from Rudder to 34
Actions #6

Updated by Jonathan CLARKE almost 11 years ago

  • Status changed from Pending release to Released
Actions #7

Updated by Benoît PECCATTE about 9 years ago

  • Project changed from 34 to Rudder
  • Category set to Packaging
Actions

Also available in: Atom PDF