Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Aug 2011 17:47:02 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Ewald Jenisch <a@jenisch.at>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: portupgrades fail because of missing /usr/local/lib/liblzma.la
Message-ID:  <4E3ACD06.6090209@infracaninophile.co.uk>
In-Reply-To: <20110804121439.GA2370@aurora.oekb.co.at>
References:  <20110803100015.GA11662@aurora.oekb.co.at> <4E3936EA.8050407@infracaninophile.co.uk> <20110804121439.GA2370@aurora.oekb.co.at>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig30AA8A776B258AF16E078A17
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 04/08/2011 13:14, Ewald Jenisch wrote:
> So I tried "portupgrade -arR" again - sure enough it failed with the
> same errors:
>=20
> /usr/local/lib/liblzma.la: No such file or directory
>=20
> So how can I rebuild all ports that depend on "xz" without even
> knowing which ones depend on xz (because pkg_info -Rx says nothing
> depends on xz)??

Do you know which port is causing that error message to be emitted?

If you can identify it, then a little sleuthing in the ports it depends
on may well turn up some clues.  It's a matter of looking at the
Makefiles for the ports further up the dependency tree to see if they
would have a dependency on xz(1) or liblzma in older versions of
FreeBSD; try grepping Makefiles for  'DEPENDS.*/archivers/xz'

Then try rebuilding those ports, and so on up the dependency tree until
you get to the problem port.

Or you can sledgehammer it, by forcibly rebuilding everything that the
complaining port depends on --

   portupgrade -fR portname

(IIRC.  I may have mixed up the 'r' and 'R' flags there) or

   portmaster -f portname

That could take a lot of time and CPU cycles but it will probably sort
things out in the end.

Also, what do you get from this command:

% ldconfig -r | grep lzma
	38:-llzma.5 =3D> /usr/lib/liblzma.so.5

Unless the output is similar to as shown, you've got a stray copy of
liblzma.so floating about that may be confusing things.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW


--------------enig30AA8A776B258AF16E078A17
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk46zRQACgkQ8Mjk52CukIwgLgCeKcBvgB9iFLw1ElyX6T61E3nJ
FdsAn1bTa6lR7JuWiuj0omCXk0tnoGs9
=/8qT
-----END PGP SIGNATURE-----

--------------enig30AA8A776B258AF16E078A17--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4E3ACD06.6090209>