From owner-freebsd-current@freebsd.org Tue Dec 15 10:33:51 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 32A214B07CA for ; Tue, 15 Dec 2020 10:33:51 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:313::1:5]) (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 4CwF3f09xGz3hCB for ; Tue, 15 Dec 2020 10:33:49 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from outgoing.leidinger.net (p508d5c87.dip0.t-ipconnect.de [80.141.92.135]) (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 mailgate.Leidinger.net (Postfix) with ESMTPSA id 41EE41282; Tue, 15 Dec 2020 11:33:41 +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 4A7623412; Tue, 15 Dec 2020 11:33:38 +0100 (CET) Date: Tue, 15 Dec 2020 11:33:37 +0100 Message-ID: <20201215113337.Horde.l4wQz3q2aWv3qxrbkMGpQOe@webmail.leidinger.net> From: Alexander Leidinger To: Jens Schweikhardt Cc: Graham Perrin , freebsd-current@freebsd.org Subject: Re: Identifying broken applications following careless use of make -DBATCH_DELETE_OLD_FILES delete-old-libs References: <20201214093838.Horde.7MCNPdaO93VFac3VZjMk0BW@webmail.leidinger.net> <2059585148.3686937.1607951705519.JavaMail.zimbra@schweikhardt.net> In-Reply-To: <2059585148.3686937.1607951705519.JavaMail.zimbra@schweikhardt.net> Accept-Language: de,en Content-Type: multipart/signed; boundary="=_nsOcneOCf3rOd_MHv5r5Gnq"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-Rspamd-Queue-Id: 4CwF3f09xGz3hCB 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]; RECEIVED_SPAMHAUS_PBL(0.00)[80.141.92.135:received]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; SPAMHAUS_ZRD(0.00)[2a00:1828:2000:313::1:5:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[leidinger.net:+]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1828:2000:313::1:5:from]; ASN(0.00)[asn:34240, ipnet:2a00:1828::/32, country:DE]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org] 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: Tue, 15 Dec 2020 10:33:51 -0000 This message is in MIME format and has been PGP signed. --=_nsOcneOCf3rOd_MHv5r5Gnq Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Jens Schweikhardt (from Mon, 14=20=20 Dec=202020 14:15:05 +0100 (CET)): > Alexander, > > it would seem that > > 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 > > is prone to false positives, since ldd is sensitive to LD_LIBRARY_PATH, v= iz.: Yes. Firefox, LibreOffice/OpenOffice come to my mind directly. There=20=20 may=20be others. I expect those to be rare (compared to the size of the=20= =20 ports=20collection), but if you encounter some false positives, it's=20=20 probably=20a big package. Either way, "locate $missing_lib" is a good=20=20 idea=20here. [...] > So make sure you look into what exact library is missing and if > it's actually somewhere "non-standard", > that directory should be in LD_LIBRARY_PATH. Temporary for the run of this check, yes. Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_nsOcneOCf3rOd_MHv5r5Gnq Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJf2JEBAAoJEBINsJsD+NiGn9sQAJZRbaKKzGWkz2daaGpVVrQV 39w5Gd5Loek/rrkRYRE3trCaLND51dJ+rP+aIaaX6rEVQZQvo2URGoTxiTqKae8C mYZmviQ48bwvCxAa8mUk/I0naZc22VaGbGT5UhpRSxf5SladCRMqECEWBw8TD0hf aYgp2+NJpDYsK18CGhZdUvT2vmevMlX/T8xJ8zHE4Ghi9T5sMeOyuI0a+l/R9XwG mkokgsLxT4IwOFkugoAVLE43O3Aw0xlX1YOZ25Tkd2IQK3UtIa69w5vVFC0W8gQA ydjpgUzQ9EFtelHM7IrOXzMSOyy1DEfiL+g9t6TIqT87AJXzlVyo+UoG5YAXbAtw RVwz17qe0aQaanLd4CgHgIMOoBI5P4lte1OPefZywBF00e1v1sbnAPJQtzBXzUz5 jv22Fjsa8Wiwj18xFvy9O+9tpaBxlg3ZnmOfSqDAuAbqy6JNYnfbJ8phz00pR5fD SvpIn7JHNBPiaydTUnh0BE9LqNVqEcZI3r2yIpC9Y6CHav19JJ0rP93UEUGSTqmm iwD6e3g5y7SjRzd4WF7yCZbkbpLHxrGJZ1dPuBtZfXjFtTX5MKEEq2i0B3b+HBrc zW+QOLyHev+hLpqS86p4QUiPSzOeJmpGKpViRP8P9mRukgLSdD5F7zjHR5GfWsot 0HnIUelIQyQyNJc/dcPA =HMBf -----END PGP SIGNATURE----- --=_nsOcneOCf3rOd_MHv5r5Gnq--