/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to SCM/packaging/rpm/rpm.unpackaged

  • Committer: Suren A. Chilingaryan
  • Date: 2017-04-03 02:45:17 UTC
  • Revision ID: csa@suren.me-20170403024517-dwzj0z0k1cmhxm7u
Restructuring, OpenShift, Ansible, Git

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
8
 
 
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.
 
12
 
 
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.
 
17
 
 
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.
 
20
 
 
21
 2) Reconfigure to warn, not stop, the build. The relevant macro(s) are (from /usr/lib/rpm/macros):
 
22
 
 
23
 
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. 
 
26
 
27
# Note: Disable (by commenting out) for legacy compatibility. %__check_files /usr/lib/rpm/check-files %{buildroot} 
 
28
 
29
# Should unpackaged files in a build root terminate a build? 
 
30
 
31
# Note: The default value should be 0 for legacy compatibility. %_unpackaged_files_terminate_build 1 
 
32
 
33
# Should missing %doc files in the build directory terminate a build? 
 
34
 
35
# Note: The default value should be 0 for legacy compatibility. %_missing_doc_files_terminate_build 1