Bug #6092
closed
rudder-agent-thin: missing /var/rudder/share/man
Added by Lionel Le Folgoc almost 10 years ago.
Updated almost 10 years ago.
Category:
System integration
Description
Hi,
During installation/upgrade (fc18 package):
/var/tmp/rpm-tmp.bfxbhA: line 75: /var/rudder/share/man/man8/cf-agent.8.gz: No such file or directory
/var/tmp/rpm-tmp.bfxbhA: line 75: /var/rudder/share/man/man8/cf-promises.8.gz: No such file or directory
/var/tmp/rpm-tmp.bfxbhA: line 75: /var/rudder/share/man/man8/cf-key.8.gz: No such file or directory
/var/tmp/rpm-tmp.bfxbhA: line 75: /var/rudder/share/man/man8/cf-execd.8.gz: No such file or directory
/var/tmp/rpm-tmp.bfxbhA: line 75: /var/rudder/share/man/man8/cf-serverd.8.gz: No such file or directory
/var/tmp/rpm-tmp.bfxbhA: line 75: /var/rudder/share/man/man8/cf-monitord.8.gz: No such file or directory
/var/tmp/rpm-tmp.bfxbhA: line 75: /var/rudder/share/man/man8/cf-runagent.8.gz: No such file or directory
This corresponds to the following lines of %post:
for i in cf-agent cf-promises cf-key cf-execd cf-serverd cf-monitord cf-runagent
do
/var/rudder/cfengine-community/bin/${i} -M | gzip > /var/rudder/share/man/man8/${i}.8.gz
done
It's probably related to 334cc247262fd589376380708ca92db25aa6c570, as %{rudderdir}/share/man was removed from %files.
sorry, that was with the fc18 2.11.5 rpm package.
- Category set to System integration
- Status changed from New to 8
- Assignee set to Matthieu CERDA
- Priority changed from N/A to 3
Oops ... thanks for the report Lionel :) Looking at this.
- Status changed from 8 to Pending technical review
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
- Target version set to 2.10.9
- % Done changed from 0 to 100
- Pull Request set to https://github.com/Normation/rudder-packages/pull/591
Actually, there are two problems here:
- The SPECfile tries to copy the manpages in var / rudder instead of opt / rudder
- We do not package them properly (there should be a source for the file so it can be packaged, even if it is a dummy)
This way, we get clean packaging of the files (that will then get properly removed during package uninstallation instead of left off because we manage the directory but "new files" got created inside in the meantime, due to postinst generation), and the generic-manpage is part of the SRPM (which is cleaner)
I corrected both points in this PR: https://github.com/Normation/rudder-packages/pull/591
- Assignee changed from Jonathan CLARKE to Benoît PECCATTE
Well, change of plans:
- CFEngine binaries are usable just after compilation (before make install)
- I'll just use them at this moment to create the manpages as needed
- This will preserve the clean-ness of the packages (no postinstall magic) and the freshness of the manpages (no prebuild manpages never to be updated)
- Status changed from Pending technical review to Pending release
Applied in changeset packages:rudder-packages|commit:c1e7bc635b602d1a0cc486a88da2099950a1e073.
Applied in changeset packages:rudder-packages|commit:fe7a9163d125ae5529944f773ba9a26b79ac8eee.
- Target version changed from 2.10.9 to 2.10.10
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.10.10 and 2.11.7, which were these days.
Also available in: Atom
PDF