Project

General

Profile

Actions

Bug #5978

closed

User story #4900: Ease rudder-agent installation by setting default values

RPM complains about missing files for ghost files

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

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

Description

We added in #4900 a new directive to tell RPM that the policy_server.dat file is a "ghost" file, which means it is created by the package during postinst, but not actually installed:

%files
[...]
%ghost %{ruddervardir}/cfengine-community/policy_server.dat

However, RPM builds fail because this file does not exist:

02:11:26 Processing files: rudder-agent-3.0.0.beta2.git201412110149-1.EL.3
02:11:26 error: File not found: /var/tmp/rudder-agent-3.0.0.beta2.git201412110149-1.EL.3-root-root/var/rudder/cfengine-community/policy_server.dat
02:11:26 
02:11:26 
02:11:26 RPM build errors:
02:11:26     File not found: /var/tmp/rudder-agent-3.0.0.beta2.git201412110149-1.EL.3-root-root/var/rudder/cfengine-community/policy_server.dat

This seems braindead to me... But I can see an easy way round it, which is just to install a dummy file in it's place. This is what we already do for uuid.hive.

Actions #1

Updated by Jonathan CLARKE about 10 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Jonathan CLARKE to Matthieu CERDA
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/563
Actions #2

Updated by Benoît PECCATTE about 10 years ago

  • Pull Request changed from https://github.com/Normation/rudder-packages/pull/563 to https://github.com/Normation/rudder-packages/pull/565
Actions #3

Updated by Benoît PECCATTE about 10 years ago

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

Applied in changeset packages:rudder-packages|commit:dc9123623b16e61df34e1ce14571e03d708f8bc4.

Actions #4

Updated by Benoît PECCATTE about 10 years ago

Applied in changeset packages:rudder-packages|commit:44bd86b3e25965b166ca373b491916b41c0c7632.

Actions #5

Updated by Vincent MEMBRÉ about 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.0.0~beta2, which were these days.

Actions

Also available in: Atom PDF