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 - 13:47:00 CEST
Message-Id: <08B1901C-50B2-4A78-BD9C-42B68C9B616E@rpm5.org>
Miller, Vincent (Rick) wrote:

> I get an error when I attempt to run rpmdeps.  It complains of a missing magic file (see error below).  I can't say this surprises me, but I am hoping there is a simple fix, instead of recompiling/installing from ports with different options…
> [root@bsdsandbox2 /home/vmiller]# find /lib | /usr/local/lib/rpm/bin/rpmdeps --provides
> error: magic_load(ms, /usr/local/share/file/magic) failed: could not find any magic files!
> Assertion failed: (mg != NULL), function rpmfcClassify, file rpmfc.c, line 1132.
> Abort trap: 6 (core dumped)
> I think the magic file it needs is /usr/share/misc/magic
> Thoughts?

The archivers/rpm5 port was intended to link against sysutils/file,
rather than the system version of libmagic that you ended up with...

$ /usr/bin/file --version
magic file from /usr/share/misc/magic
$ /usr/local/bin/file --version
magic file from /usr/local/share/file/magic

You should file a Problem Report (PR) against the port, or perhaps
just install sysutils/file and rebuild. It should match the library:

		magic:${PORTSDIR}/sysutils/file \

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