Project

General

Profile

Actions

Bug #9001

closed

[rudder-packages] invalid spec files for SLES12 SP1

Bug #9001: [rudder-packages] invalid spec files for SLES12 SP1

Added by Janos Mattyasovszky over 9 years ago. Updated over 9 years ago.

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

Description

As of SLES12 SP1 (presumably), the SPEC File's %{sles_version} is obsoleted in favor of the all-present %{suse_release}.
Since the macro is only used to determine if it's SLES or not, and not to determine anything version-related, replacing it will not cause any issues.

- %if 0%{?sles_version}
+ %if 0%{?suse_version}

Updated by Benoît PECCATTE over 9 years ago Actions #1

is %{suse_release} available in sles 11 and sles 10 ?

Updated by Matthieu CERDA over 9 years ago Actions #2

Well, according to "rpm --showrc", at least on SLES 11 there is no suse_release

Updated by Janos Mattyasovszky over 9 years ago Actions #3

Try rpm --eval '%{suse_version}':

SLES12 SP1:

# rpm --eval '%{sles_version} %{suse_version}'
0 1315

SLES11 SP1:

# rpm --eval '%{sles_version} %{suse_version}'
11 1110

SLES10 SP2:

# rpm --eval '%{sles_version} %{suse_version}'
10 1010

According to this site, it is defined since SLES 9

SUSE Linux 10.1     %if 0%{?suse_version} == 1010    could also be SLE10*
SUSE Linux 10.0     %if 0%{?suse_version} == 1000    
SUSE Linux 9.3     %if 0%{?suse_version} == 930
SLES 9     %if 0%{?suse_version} == 910
SLE 10     %if 0%{?suse_version} == 1010
SLE 11     %if 0%{?suse_version} == 1110
SLE 12     %if 0%{?suse_version} == 1315    could also be Leap 42.1*

Updated by Janos Mattyasovszky over 9 years ago Actions #4

  • Description updated (diff)

Updated by Janos Mattyasovszky over 9 years ago Actions #5

  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1043

Updated by Janos Mattyasovszky over 9 years ago Actions #6

  • Subject changed from [rudder-packages] Webapp has invalid spec file on SLES12 SP1 to [rudder-packages] invalid spec files for SLES12 SP1

Updated by Jonathan CLARKE over 9 years ago Actions #7

  • Status changed from New to Pending technical review

A pull request has been added to this ticket, so it's status should be "Pending technical review" to ensure both coherance and that it gets the attention needed.

Updated by Jonathan CLARKE over 9 years ago Actions #8

  • Target version set to 4.0.0~rc2

A target version should always be present if a Pull Request is too - this enables the changelog to be built correctly.

Updated by Benoît PECCATTE over 9 years ago Actions #9

  • Status changed from Pending technical review to In progress
  • Assignee set to Benoît PECCATTE

I'm taking over this ticket!

Updated by Benoît PECCATTE over 9 years ago Actions #10

  • Target version changed from 4.0.0~rc2 to 3.1.14

Updated by Benoît PECCATTE over 9 years ago Actions #11

I'm taking over this ticket!

Updated by Benoît PECCATTE over 9 years ago Actions #12

  • Status changed from In progress to Pending technical review
  • Pull Request changed from https://github.com/Normation/rudder-packages/pull/1043 to https://github.com/Normation/rudder-packages/pull/1080

Updated by Janos Mattyasovszky over 9 years ago Actions #13

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

Updated by Vincent MEMBRÉ over 9 years ago Actions #14

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.1.15/14 and 3.2.8/7 which were released today.

Actions

Also available in: PDF Atom