I just rebuilt apache from the RH 8.0 source rpm. The compilation succeeded, but the rpm failed with the following error message: Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/bcurran/tmp/rpmBuild/httpd-root error: Installed (but unpackaged) file(s) found: /etc/httpd/conf/mime.types /usr/bin/apr-config /usr/bin/apu-config /usr/lib/APRVARS <snip-more files> RPM build errors: Installed (but unpackaged) file(s) found: /etc/httpd/conf/mime.types /usr/bin/apr-config /usr/bin/apu-config /usr/lib/APRVARS <snip-more files> Neither the modified source nor the binary rpm were generated. It looks like these files made it into the temporary install area just prior to generating the packages, and they should not have been there. Is there an option I should be using to make the install tree "right"? I know I can modify the spec file to wildcard include everything in the install directories, but that doesn't seem right. My command: "rpmbuild -ba httpd.spec". TIA, Bill
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
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
On Fri, Oct 11, 2002 at 02:24:56PM -0400, Bill Mills-Curran wrote: subssn594> Where are you finding good documentation for making rpms? All the subssn594> documentation I've found is either too shallow or out of date. That particular information I found in the rpm.org "Hints & Kinks" page. http://www.rpm.org/ -- 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
participants (2)
-
Bill Mills-Curran
-
Charles R. Anderson