Actions
Bug #5978
closedUser story #4900: Ease rudder-agent installation by setting default values
RPM complains about missing files for ghost files
Status:
Released
Priority:
2
Assignee:
Matthieu CERDA
Category:
System integration
Target version:
Pull Request:
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