On Thu, 10 Oct 2002, Charles R. Anderson wrote:
Date: Thu, 10 Oct 2002 17:48:03 -0400 From: Charles R. Anderson <cra@WPI.EDU> Reply-To: wlug@mail.wlug.org To: Worcester Linux Users Group <wlug@mail.wlug.org> Subject: Re: [Wlug] rpm build error
On Thu, Oct 10, 2002 at 05:11:42PM -0400, Bill Mills-Curran wrote: subssn594> I just rebuilt apache from the RH 8.0 source rpm. The compilation subssn594> succeeded, but the rpm failed with the following error message: subssn594> subssn594> Checking for unpackaged file(s): /usr/lib/rpm/check-files subssn594> /home/bcurran/tmp/rpmBuild/httpd-root subssn594> error: Installed (but unpackaged) file(s) found:
This is a new feature of rpm-4.1. It is nice because it will tell you if you forgot to package some of the files that got installed in the %install section.
You have three options. You can:
1. Add the unpackaged files to the %files section(s) so they become part of the final binary package.
2. Remove the files from the build root (or don't install them at all to the $RPM_BUILD_ROOT) in the %install section.
3. Tell RPM to consider this error as non-fatal by adding this to your .rpmmacros file:
%_unpackaged_files_terminate_build 0 %_missing_doc_files_terminate_build 0
-- Charles R. Anderson <cra@wpi.edu> / http://angus.ind.wpi.edu/~cra/ PGP Key ID: 49BB5886 Fingerprint: EBA3 A106 7C93 FA07 8E15 3AC2 C367 A0F9 49BB 5886
Charles, I chose option 3, because that was most consistent with the way the package was originally built. It worked just fine. Where are you finding good documentation for making rpms? All the documentation I've found is either too shallow or out of date. Thanks, Bill