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
[-- Attachment #1 --] Quoting Graham Perrin <grahamperrin@gmail.com> (from Mon, 14 Dec 2020 07:41:45 +0000): > Re: > <https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html#updating-src-completing-check-old> I made careless use > of: > > cd /usr/src && make -DBATCH_DELETE_OLD_FILES delete-old-libs [...] > Please: how can I positively identify other applications that I > might 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. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201214093838.Horde.7MCNPdaO93VFac3VZjMk0BW>
