Bug #4685
closedUser story #4595: Support for AIX (agent only)
User story #4671: Avoid listing files twice in .spec %files section
Error on rpm build, unpackaged files
Description
Since #4671, Rudder is not building anymore on some RPM systems (RHEL5, and sles10) because some files are installed but unpackaged:
see output for RHEL5:
RPM build errors: Installed (but unpackaged) file(s) found: /opt/rudder/bin/vzps.pyc /opt/rudder/bin/vzps.pyo /opt/rudder/lib/libtokyocabinet.so /opt/rudder/lib/libtokyocabinet.so.9
Output for SLES10:
02:55:48 RPM build errors: 02:55:48 Installed (but unpackaged) file(s) found: 02:55:48 /opt/rudder/lib/libtokyocabinet.so 02:55:48 /opt/rudder/lib/libtokyocabinet.so.9
Updated by Vincent MEMBRÉ over 10 years ago
- Project changed from Rudder to 34
- Assignee set to Jonathan CLARKE
- Parent task set to #4671
Updated by Vincent MEMBRÉ over 10 years ago
- Status changed from New to Pending technical review
- Pull Request set to https://github.com/Normation/rudder-packages/pull/283
PR here: https://github.com/Normation/rudder-packages/pull/283
there is two cases here:
/opt/rudder/lib/libtokyocabinet.so /opt/rudder/lib/libtokyocabinet.so.9
Are symlink files, to be included we just want to get them by adding option "-o -type s" to find ( catching also symlinks)
/opt/rudder/bin/vzps.pyc /opt/rudder/bin/vzps.pyo
Here this is much more complicated, these files may be created after the find is called:
https://fedoraproject.org/wiki/Packaging:Python?rd=Packaging/Python#Byte_Compiled_Files
Normally, byte compilation is done for you by the brp-python-bytecompile script. This script runs after the %install section of the spec file has been processed and byte compiles any .py files that it finds
we decided to update the find command to match python files globally by replacing any files that ends with ".py" by ".py*" so it can match those file if present and also doesn't break if they are missing.
We have done that by piping the result of find in a sed:
sed "s,\.py$,\.py*,"
Updated by Vincent MEMBRÉ over 10 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset commit:ea5b1de52eb4a1106ab8cb2fa49cd2f4d0ab32c5.
Updated by Jonathan CLARKE over 10 years ago
Applied in changeset commit:2c2aab5b0435c379ba17cda88becaa89042dc2a5.
Updated by Vincent MEMBRÉ over 10 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.10.0, which was released today.
Check out:
- The release announcement: http://www.rudder-project.org/pipermail/rudder-announce/2014-March/000085.html
- The full ChangeLog: http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog210
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/