From owner-freebsd-current@freebsd.org Mon Dec 14 08:39:07 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E0A184B36F8 for ; Mon, 14 Dec 2020 08:39:07 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CvZYl0s7fz4ZnK for ; Mon, 14 Dec 2020 08:39:06 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from outgoing.leidinger.net (p5b1651f8.dip0.t-ipconnect.de [91.22.81.248]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256)) (Client did not present a certificate) by mailgate.Leidinger.net (Postfix) with ESMTPSA id 9CC87C5B; Mon, 14 Dec 2020 09:38:56 +0100 (CET) Received: from webmail.leidinger.net (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id 79FB93809; Mon, 14 Dec 2020 09:38:38 +0100 (CET) Date: Mon, 14 Dec 2020 09:38:38 +0100 Message-ID: <20201214093838.Horde.7MCNPdaO93VFac3VZjMk0BW@webmail.leidinger.net> From: Alexander Leidinger To: Graham Perrin Cc: freebsd-current@freebsd.org Subject: Re: Identifying broken applications following careless use of make -DBATCH_DELETE_OLD_FILES delete-old-libs In-Reply-To: Accept-Language: de,en Content-Type: multipart/signed; boundary="=_Jm7w7T_PGo2oAxqYi73VT0Z"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-Rspamd-Queue-Id: 4CvZYl0s7fz4ZnK X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; SPAMHAUS_ZRD(0.00)[89.238.82.207:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[leidinger.net:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[89.238.82.207:from]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current]; RECEIVED_SPAMHAUS_PBL(0.00)[91.22.81.248:received] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2020 08:39:07 -0000 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 (from Mon, 14 Dec 2020=20=20 07:41:45=20+0000): > Re:=20=20 >=20 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--