[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Building Leafnode RPM under RHL 9



I've been playing around with Red Hat Linux 9 lately, and thought I would
pass this along so the docs can be updated.

Some of the functions of RPM have changed.  The showstopper for Leafnode
is that there is now a function to make sure all files are included in the
RPM that is build.  So for example:

$ rpmbuild -tb leafnode-1.9.37.rel.tar.bz2
[major snippage]
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/leafnode-1.9.37.rel-buildroot
error: Installed (but unpackaged) file(s) found:
   /usr/include/pcre.h
   /usr/include/pcreposix.h
   /usr/lib/libpcre.a
   /usr/lib/libpcre.la
   /usr/lib/libpcreposix.a
   /usr/lib/libpcreposix.la
   /usr/share/man/man3/pcre.3.gz
   /usr/share/man/man3/pcreposix.3.gz


RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/include/pcre.h
   /usr/include/pcreposix.h
   /usr/lib/libpcre.a
   /usr/lib/libpcre.la
   /usr/lib/libpcreposix.a
   /usr/lib/libpcreposix.la
   /usr/share/man/man3/pcre.3.gz
   /usr/share/man/man3/pcreposix.3.gz
$

Here is a quote from the rpm-list about how to get an RPM written:
"The "fix" is to either
	1) include the file in a package (or equivalently do
		rm -f $RPM_BUILD_ROOT/path/to/file
	in %install).

	2) Reconfigure to warn, not stop, the build."

Number 2 is accomplished by adding
       %_unpackaged_files_terminate_build      0
to /usr/lib/rpm/macros (or ~/.rpmmacros if building as a regular user).

I don't know how viable option 1 would be, but option 2 does work (and
probably needs documented, at least as a temporary workaround).

--
William Hooper

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list