RPM Community Forums

Mailing List Message of <rpm-users>

Re: RPM Stub Package

From: Anders F Björklund <afb@rpm5.org>
Date: Fri 22 Jul 2011 - 17:59:54 CEST
Message-Id: <A722EADA-94FA-43C2-82D8-8135798B9FCC@rpm5.org>
Miller, Vincent (Rick) wrote:

> Hi Anders,
> I installed sysutils/file and received an error message indicating that
> file 5.3 supports only version 7 magic files and that the one installed
> was version 8.  Perhaps this is the reason that RPM 5.2.1 did not install
> sysutils/file?

You'll need to make sure that both the path and the linkage are
pointing to the same installation of file/magic. That is, either
you need to change the rpm macro (%_rpmfc_magic_path) to point to
the system version that the built rpm port has somehow linked to,
you install sysutils/file and rebuild your rpm port to link to
/usr/local/lib/libmagic.so.1 instead of /usr/lib/libmagic.so.4.
The important part is that the magic file is from the *same*
installation of file as the magic library (i.e. same "version").

The "easiest" change to packaging might be to include the minor:
That way it will always use the ports version instead of system...
Installing a static version of file would only add to the problem.

But I'm not sure the package really *is* broken ? The one I see
links OK to libmagic.so.1, rather than using e.g. libmagic.so.4 ?
(which isn't really a big problem in itself, other than that the
rpm configuration needs to be updated to match the binaries...)


$ ldd /usr/local/bin/rpm | grep libmagic.so
	libmagic.so.1 => /usr/local/lib/libmagic.so.1 (0x80185e000)
$ /usr/local/bin/rpm --eval %_rpmfc_magic_path

Received on Fri Jul 22 18:00:50 2011
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.