RPM packaging (was: Last set of changes for 1.1.3)
Sandworm
sandworm at mepd.hush.com
Mon Aug 28 05:41:42 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday, 25 August 2006 8:17 PM Nicolas Baradakis wrote:
> Is it impossible to force rpmbuild to package the files installed
by
> the Makefile in /usr/share/doc/... with a line the %files section
?
>
> %files
> ...
> %{_datadir}/doc/%{name}-%{version}/*/*
I don't know what this is supposed to do, but having it generates
an error:
RPM build errors:
create archive failed on file /var/tmp/freeradius-
root/usr/share/doc/freeradius-1.1.3/examples/iplanet.ldif: cpio:
open failed - Bad file descriptor
> I've seen something similar in suse/freeradius.spec, but I think
this
> is a violation of the packaging rules: files in the *source*
directory
> should not be deleted while building a package.
I don't know if this deletion is so much of a problem. While
building via rpmbuild, the source tarball is (normally) in
/usr/src/redhat/SOURCES, the tarball is expanded into
/usr/src/redhat/BUILD, and the (temporary) build root (which is
what the spec variable $RPM_BUILD_ROOT points to) is in
/var/tmp/freeradius-root. The deletion happens in this directory,
which is supposed to be deleted anyway after the build. The
*source* directory then does not get affected by the packaging.
SW
-----BEGIN PGP SIGNATURE-----
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 2.5
wkYEARECAAYFAkTyZfAACgkQmw4BJyaatJ2eFACfWBunR4gch9vAt8cYONvRYpnOn0MA
n0xIo7akUBqU01aSKS8Na50ZR250
=HMgG
-----END PGP SIGNATURE-----
More information about the Freeradius-Devel
mailing list