Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Feb 2014 10:21:40 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-ports@freebsd.org
Subject:   Re: Issues with postmaster after freebsd-update
Message-ID:  <5309CBB4.3060104@infracaninophile.co.uk>
In-Reply-To: <CAN6yY1uZUTd9_dzgDucV2g7r5mLYhivndMyNRNNw=3YC5SEZQg@mail.gmail.com>
References:  <49D3D50F-9FBF-4247-81D6-5425B8FEBA2D@kreme.com> <52FD5D54.1090000@unfs.us> <DF5C26EB-C4F9-48AA-BCCE-A056C911A015@kreme.com> <CAN6yY1vS4mwfDyGCUF%2BOsMPqGL12wOPQNP4rZA_AgYA89gbLYg@mail.gmail.com> <263F7C1F-7A99-4D8D-9F4E-FB2D48E8A46A@kreme.com> <CAN6yY1uZUTd9_dzgDucV2g7r5mLYhivndMyNRNNw=3YC5SEZQg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--hn0XSIIxuLRVpiaDbPBRrWl3nxP6wmEEe
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 23/02/2014 02:40, Kevin Oberman wrote:
> On Sat, Feb 22, 2014 at 5:38 PM, LuKreme <kremels@kreme.com> wrote:
>=20
>> > On 13 Feb 2014, at 22:46 , Kevin Oberman <rkoberman@gmail.com> wrote=
:
>>> > > An easier way is to install sysutils/bsddfminscripts and use pkg_=
libchk
>> > to
>>> > > find what needs to be reinstalled. I use the command:
>>> > > pkg_libchk -o | grep icu | cut -d: -f1 | sort | uniq > ~/reinstal=
l-ports
>>> > > portmaster -D `cat ~/reinstall-ports`
>> >
>> > I finally got pkg installed, so, moving on to this and I have a ques=
tion,
>> > what is the purpose of the `grep icu` pipe?
>> >
> pkg_libchk (part of sysutils/bsdafminscripts) tests all libraries and
> executables installed by all ports  for non-existant linked sharables. =
In
> this case, the purpose is to get a list of ports that still link to the=
 old
> version of libicu. So pkg_libchk lists ALL files from ports that have l=
inks
> to the old libicu and then trims it to just the port name, sorts it, an=
d
> removes dupes.

With pkg(8) installed, this might be better spelled as eg,

   # pkg shlib libicuuc.so.52

which will tell you those packages that have binaries that load that
specific shlib.  To find all the consumers of any shlib provided by the
icu-52.1 package:

   # pkg info -qb icu-52.1 | sed -e 's/.1//' | xargs -L 1 pkg shlib -R

The sed stuff is due to the lingering legacy effects of the shlib ABI
version being required to be a single integer value, whereas nowadays
more complicated version numbering schemes seem to be all the rage.

pkg-shlib could do with growing some different matching algorithms and a
less chatty mode for use in scripting.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew@infracaninophile.co.uk


--hn0XSIIxuLRVpiaDbPBRrWl3nxP6wmEEe
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.20 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJ7BAEBCgBmBQJTCcu/XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATdLIP9jBq8LJ0c6Xr8X9CaeIO3bPD
j2taYfGlxLZ5yhDqpKBid7xjg9xlx2NUnztQQoIqxd8cNXr3eEEGA2tK+C0QoyrT
+WtwjiDRRNTSAj7Gt9Nom8onNSEFoiejrB+Xpj5uxCUJT9HjfIpcJxorGFyMzHJa
D1r8OfTcB+VsZefi4uBCsZC2PmZI50RpkZNBPyLCcg5X+no06Erdx2vcX3MrV+iy
Xj5r6bFCTR9c6V9QL2Fs1QoSutmjBIE7VCYuoRnXHXeDKTcsEeUlGh/iO+7qG+rv
sjg0TWEf/w6q1aauZ2TmiNySZmAdE7tzkSNkEzyob/gfQtpSVvKCF8kRQ9VVFW5n
ZgwBS98ys8+Dk/B5S3LjQjdsToSX8kt9t78bk132qas7W+bVlYhznROYjBzMaJWC
EwjcF1KLfXwi9/ukcJblBJpxSJ4wEhnVnZR/KK/8ZQOt4aUG2fbIx1lZb+X7Jm6Q
Rq10RCMVkBmnNOntXH2Axfoa3d58O0hA7UxlS3yQG5WHLy6weBck6k1Kwgrycmga
oaPgTkzbYN2h9Hz47LMYdBiCl4rIm5RMj2LNBVi8G9+ENW71nqJ0y/k1wiF5LCoc
WNxflgrmgcYrvp8O0mfkQFIMBnuHWS8c4/8fLR08XDXPRiks62OlxSYBjD0mMhyU
08wmTnZ/Izr0poGjmLg=
=us1X
-----END PGP SIGNATURE-----

--hn0XSIIxuLRVpiaDbPBRrWl3nxP6wmEEe--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5309CBB4.3060104>