Project

General

Profile

Actions

Bug #3045

closed

The package rudder-agent is not compatible with SLES 11 SP2 since db43 is no more available

Added by Nicolas PERRON about 12 years ago. Updated almost 10 years ago.

Status:
Released
Priority:
1 (highest)
Assignee:
Jonathan CLARKE
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

rudder-agent package needs db43 package, unfortunately on SLES 11 SP2, db43 is replaced by libdb-4.5.

We need to add new dependencies for SLES 11 SP2 in order to support this new service pack.

Pull Request URL: https://github.com/Normation/rudder-packages/pull/3


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #3188: Installing rudder 2.5.0-beta1 on SLES 11 SP1, does not find rudder-agent 2.5.0-beta1RejectedMatthieu CERDA2013-01-14Actions
Actions #1

Updated by Jonathan CLARKE about 12 years ago

  • Assignee set to Nicolas PERRON

Nicolas, please provide a fix for this ASAP.

Actions #2

Updated by François ARMAND about 12 years ago

  • Status changed from New to In progress

A first workaround is to use db43 from Suse 11 SP1.

The full correction implies to:

  1. add a builder for CFEngine / SLES 11 SP2 so that it use libdb4.5
  2. change packaging to depend upon libdb4.5
Actions #3

Updated by Nicolas PERRON about 12 years ago

François ARMAND wrote:

A first workaround is to use db43 from Suse 11 SP1.

The full correction implies to:

  1. add a builder for CFEngine / SLES 11 SP2 so that it use libdb4.5

This task is in progress actually

  1. change packaging to depend upon libdb4.5

The correct name of the package is libdb-4_5. I will add the correct dependencies

Actions #4

Updated by Nicolas PERRON about 12 years ago

  • Description updated (diff)
Actions #5

Updated by Nicolas PERRON about 12 years ago

I don't know how to deal with this Service Packa problem.

In the SPEC file there are 2 conditions:

%if 0%{?sles_version} == 11
BuildRequires: db43-devel
Requires: db43 pmtools
%endif

%if 0%{?suse_version} >= 1120
BuildRequires: libdb-4_5-devel
Requires: libdb-4_5 pmtools
%endif

But SLES 11 SP2 enter into the two of them. I don't know how to do a elseif with the SPEC file, it seems that it is not possible.

I've tried this without success:

%if 0%{?sles_version} == 11
%if 0%{?suse_version} >= 1120
[...]
%else
[...]
%endif
%endif

or this (cf https://twitter.com/mvidner/status/8592049695)


%if 0%{?suse_version} >= 1120
[...]
%else \n %if 0%{?sles_version} == 11
[...]
%endif

Actions #6

Updated by Nicolas PERRON about 12 years ago

It seems that an error happens with the macro %suse_version on SLES 11 SP2:

sles-builder-11-sp2-64:/usr/src/packages # cat /etc/SuSE-release 
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2

sles-builder-11-sp2-64:/usr/src/packages # rpm --eval '%suse_version'
1110

sles-11-sp1-64:~ # cat /etc/SuSE-release 
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1

sles-11-sp1-64:~ # rpm --eval '%suse_version'
1110

Then, the decision has been made to not support SLES 11 SP2 for the 2.4.0~rc2

Actions #7

Updated by Nicolas PERRON about 12 years ago

  • Target version changed from 2.4.0~rc2 to 61
Actions #8

Updated by François ARMAND about 12 years ago

  • Target version changed from 61 to 2.4.2
Actions #9

Updated by Nicolas PERRON almost 12 years ago

  • Target version changed from 2.4.2 to 2.4.3
Actions #10

Updated by François ARMAND almost 12 years ago

  • Status changed from In progress to Discussion

What is the status of that bug ? Does new work was done on it ? Does we want to not support SLES 11 SP2 at all ?

Actions #11

Updated by François ARMAND almost 12 years ago

  • Assignee changed from Nicolas PERRON to Jonathan CLARKE
Actions #12

Updated by Jonathan CLARKE almost 12 years ago

François ARMAND wrote:

What is the status of that bug ? Does new work was done on it ? Does we want to not support SLES 11 SP2 at all ?

We need to support SLES 11 SP2. However, they have broken the system variables that packaging relies on, by not incrementing their version number (!!!), making it very hard for us to implement the logic required. I'm not sure how to work around it yet...

Actions #13

Updated by Vincent MEMBRÉ almost 12 years ago

That problem occurs on SLES 11 SP1 too (see #3188)

It seems that the package db43 is only available on the SLES 11 SDK, but was never on the official Suse repositories.

So there is no problem on Suse having the SDK, but every other won't work

Actions #14

Updated by Vincent MEMBRÉ almost 12 years ago

I made another pull request containing the dependency change for all SLES 11 here : https://github.com/Normation/rudder-packages/pull/15

Actions #15

Updated by Vincent MEMBRÉ almost 12 years ago

  • Status changed from Discussion to Pending technical review
  • Assignee changed from Jonathan CLARKE to Matthieu CERDA

Trying to install rudder-agent 2.3 fails too,

making another pull request to fix it on that branch : https://github.com/Normation/rudder-packages/pull/16

Actions #16

Updated by Matthieu CERDA almost 12 years ago

  • % Done changed from 0 to 90

I am MCE and I approve this pull request.

Merging it in the 2.3 branch, to be upmerged in 2.4 and 2.5.

Actions #17

Updated by Vincent MEMBRÉ almost 12 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 90 to 100

Applied in changeset commit:4a35fc1de5687d329acaaf1338ad94bc82f9052b.

Actions #18

Updated by Matthieu CERDA almost 12 years ago

Applied in changeset commit:d162b42f9dc847592ab0dc2e17bddffb91439e74.

Actions #19

Updated by Matthieu CERDA almost 12 years ago

  • Target version changed from 2.4.3 to 2.3.10

Changed target version to the correct branch: 2.3 !

Actions #20

Updated by Jonathan CLARKE almost 12 years ago

  • Status changed from Pending release to Discussion

This is a great workaround for this problem! I hadn't realised that libdb-4_5 was also available on SLES 11 SP1 - this makes it a lot easier.

However, this is a major library version change, and I'm pretty sure this has no place in a stable version. Please revert, and apply to 2.5 branch only.

Actions #21

Updated by Matthieu CERDA almost 12 years ago

  • Status changed from Discussion to Pending technical review
  • Assignee changed from Matthieu CERDA to Jonathan CLARKE

Acknowledged, this commit has been reverted on the 2.3 and 2.4 branches.

Actions #22

Updated by Vincent MEMBRÉ almost 12 years ago

  • Status changed from Pending technical review to Pending release

Applied in changeset commit:c5a7e8cdb1855ce06b5bf3f57236351ed58df05f.

Actions #23

Updated by Matthieu CERDA almost 12 years ago

Applied in changeset commit:87d22edccde72728cff21f2e9e38598a2551721c.

Actions #24

Updated by Nicolas PERRON almost 12 years ago

  • Target version changed from 2.3.10 to 2.5.0~rc1
Actions #25

Updated by Nicolas PERRON almost 12 years ago

  • Status changed from Pending release to Released

This has been released with Rudder 2.5.0~rc1

Actions #26

Updated by Nicolas PERRON almost 12 years ago

  • Project changed from Rudder to 34
  • Category deleted (11)
Actions #27

Updated by Benoît PECCATTE almost 10 years ago

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

Also available in: Atom PDF