Date: Fri, 28 Feb 2003 20:57:47 +0100 From: Tilman Linneweh <tilman@arved.de> To: Joe Kelsey <joek@mail.flyingcroc.net> Cc: ports@FreeBSD.org Subject: Re: WARNING: portupgrade considered harmful Message-ID: <20030228195747.GA27650@huckfinn.arved.de> In-Reply-To: <3E5FB1F8.4050405@mail.flyingcroc.net>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] > Some time ago, the maintainers of the pkgtools slipped a new ability > into portupgrade: the ability to silently move "obsolete" shared > libraries into /usr/local/lib/compat/pkg. This so-called "feature" has > caused me no end of trouble in the last few days. > > The problem is that the "feature" interacts very badly with the > fundamental purpose of portupgrade, which is to detect out-of-date > packages and aid in automatically upgrading them. Unfortunately, the > presence of all of the obsolete libraries accumulating in the compat/pkg > directory only serves to prevent protupgrade from fulfilling its mission > because ld will silently use old, obsolete libraries instead of the new > libraries! > [..] > > The portupgrade maintainers have perpetrated a disaster in the making on > a lot of unsuspecting people. I recommend that everyone edit their > /usr/local/etc/pkgtools.conf files and add -u to the default portupgrade > switches to prevent this from happening. You may also need to audit all > of your binaries for stale library references. This is IMHO not a fault of portupgrade but how bsd.port.mk detects LIB_DEPENDS. It checks if the library is in ld's path. This works as long as this path does not contain directories with libraries not installed by ports. [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+X785fCLDn4B6xToRAmA3AJkB9qxNo2j9F3aqez/JwBETi8cESACghcaC 3mn/NNEnF29/NKtG8XvPElo= =s1Sv -----END PGP SIGNATURE-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030228195747.GA27650>
