1
Unpackaged files message in RPM-4.1 and following
2
-------------------------------------------------
3
RPM version 4.1 and following demonstrate a new behaviour in the rpmbuild process. Previously,
4
a build process might place any number of files, say in the %install stanza, when running the
5
make install part of a Makefile, in the customary /var/tmp/%{name}-root/ BuildRoot (the
6
RPM_BUILD_ROOT). Once through that part of the Makefile, it can then completely ignore these
7
files in the %files binary packaging stanza.
9
This often happens when an upstream maintainer adds, or deletes items from new directory spurs
10
in the make install , and the change might be missed during an unattended or automated rebuild.
11
This option permits careful packagers to cross check the quality of their packaging.
13
So as a cross check, /usr/lib/rpm/check-files is now enabled during the %files stanza, to help
14
a packager identify possibly omitted files. This obviously will disclose breakage in existing
15
.SPEC files, but this should be a reasonably plainless transition as the specfile packager amends
16
them to properly account for all expected files.
18
Obviously some maintaining packagers will take some time to complete the process for their
19
packages; in the interim, for the causal package builder, Jeff Johnson offered this advice.
21
2) Reconfigure to warn, not stop, the build. The relevant macro(s) are (from /usr/lib/rpm/macros):
24
# Script gets packaged file list on input and buildroot as first parameter.
25
# Returns list of unpackaged files, i.e. files in $RPM_BUILD_ROOT not packaged.
27
# Note: Disable (by commenting out) for legacy compatibility. %__check_files /usr/lib/rpm/check-files %{buildroot}
29
# Should unpackaged files in a build root terminate a build?
31
# Note: The default value should be 0 for legacy compatibility. %_unpackaged_files_terminate_build 1
33
# Should missing %doc files in the build directory terminate a build?
35
# Note: The default value should be 0 for legacy compatibility. %_missing_doc_files_terminate_build 1