portupgrades fail because of missing /usr/local/lib/liblzma.la

Ewald Jenisch a at jenisch.at
Wed Aug 3 10:29:59 UTC 2011


Hi,

On my 8.2-System (amd64, kernel & system updated two days ago) I run
into a nasty problem updating my ports:

Ports that depend on "liblzma" fail to build with the following error:

"/usr/local/lib/liblzma.la: No such file or directory"

AFAIK, the xz-libraries are not part of the base system; there is
indeed a /usr/lib/liblzma*, but why doesn't the build process for the
ports recognize it and insists on having the libraries in
/usr/local/lib?

When installing the xz-libraries from the ports, i.e. 

pkg_add -r -f xz
and
portupgrade -o archivers/xz lzmautils\*

upgrading my ports works, but this truly can't be the correct
solution, esp. since building xz out of the ports tree ins't
supported:

# pwd
/usr/ports/archivers/xz
# make
===>  xz-5.0.3 is already in the base system.
*** Error code 1

Stop in /usr/ports/archivers/xz.
#

So here are my questions?

o) Why doesn't the build process of ports recognize the xz-libraries
in /usr/lib? (BTW, not even "make deinstall && make clean && make
install" helps)

o) What can I do to get ports recognize the correct location of the
xz-libraries?

Thanks much in advance for any clue,
-ewald


More information about the freebsd-questions mailing list