Project

General

Profile

Actions

Bug #4565

closed

User story #4459: Support Rudder agent on AIX 5.3+

With older versions of rpm, boolean tests on macros fail if not quoted

Added by Jonathan CLARKE over 10 years ago. Updated over 10 years ago.

Status:
Released
Priority:
N/A
Assignee:
Matthieu CERDA
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

For example, given this line in a .spec file:

%if %{is_tokyocabinet_here} == "false" 

We can get this error:

21:43:01 undefined identifier
21:43:01 /usr/src/packages/SPECS/rudder-agent.spec:190: parseExpressionBoolean returns -1

Quoting the macro solves the problem. It will not be expanded, and we will end up with a string containing literally "%{is_tokyocabinet_here}", but that's fine because the test will fail.

Fixing.

Actions

Also available in: Atom PDF