Date: Mon, 14 Dec 2020 09:38:38 +0100 From: Alexander Leidinger <Alexander@leidinger.net> To: Graham Perrin <grahamperrin@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: Identifying broken applications following careless use of make -DBATCH_DELETE_OLD_FILES delete-old-libs Message-ID: <20201214093838.Horde.7MCNPdaO93VFac3VZjMk0BW@webmail.leidinger.net> In-Reply-To: <d1a20064-300d-e5e1-8582-57b4a5ee645a@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format and has been PGP signed. --=_Jm7w7T_PGo2oAxqYi73VT0Z Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Graham Perrin <grahamperrin@gmail.com> (from Mon, 14 Dec 2020=20=20 07:41:45=20+0000): > Re:=20=20 >=20<https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.h= tml#updating-src-completing-check-old> I made careless use=20=20 >=20of: > > cd /usr/src && make -DBATCH_DELETE_OLD_FILES delete-old-libs [...] > Please: how can I positively identify other applications that I=20=20 >=20might have broken through careless deletion of old libraries? % cat remove_old_libs_with_unresolved_libs.sh #!/bin/sh find /usr/local/*bin* /usr/local/lib* -type f \ | xargs ldd -f '%p|%A\n' 2>/dev/null \ | grep '^not found' | grep compat/pkg | cut -d '|' -f2 \ | sort -u | xargs rm -v % cat list_ports_using_nonexisting_lib.sh #!/bin/sh find /usr/local/*bin* /usr/local/lib* -type f \ | xargs ldd -f '%p|%A\n' 2>/dev/null \ | grep '^not found' | cut -d '|' -f2 \ | xargs pkg which -q | sort -u Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_Jm7w7T_PGo2oAxqYi73VT0Z Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJf1ySOAAoJEBINsJsD+NiGayIP/2LQzx70Wc1S9yT5MECII48q TplvcyK11bh81LDdwD0crSFeqhzUWe3XU9QqWISSMbDY64H02rM4My4j70wfW4Ou oPzXD6rZN++LkuQDKRKZXhf9B7os3TxP4t0WlA/6rAplbfO69APmZDwUKv9n4ims EeszXkSRw5XY2icutGMfByMLZWz210XuQpVZGJDTy1FF2MUXWuB1e8Yk4Wjhc3i6 gVWUGl5H27g/XGPFSHUZWqQnW3wtEPqzEHXY2cJkcv8AAmkDGo9GslV36PBUNgqv hJb2izLGjWHAPsxjfsYkAII/ZdgY/KkBBPXNP70akZPThNN9tj+Z211efjKVVZ43 byLYMMrBdVFfYK8Vhcpo2mxFAfi79OTR1QQhWKl2N10qzDeFPPGZBMNhk0yLzR85 h8koHeR10KQaAYrxsSICPB2WgYRB61UjP7tXiWbtty8ouhRgh1eWKOlbF/27YETH ZbY7hpM1DY+bG7gw2JCVPMdKV28cijWYIBDJEdFyA1lFdLzlm2CyuwI4h85r4RhZ uVAlhDd+5gFvdKDWWAIGPQ35Aq7iUzdgXwYe6IMocR4j5Gn086K9WYUhBI9xxBZo hr+LR4AIhopLSsfPYbPsj5wkjfgNANiQFcq3SnxoJrdfYf5sOjxhw5cuLdHcazK4 dQMUhofEGD6Gv/I9qyOa =zBhi -----END PGP SIGNATURE----- --=_Jm7w7T_PGo2oAxqYi73VT0Z--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201214093838.Horde.7MCNPdaO93VFac3VZjMk0BW>