From owner-freebsd-questions@FreeBSD.ORG Wed Jul 2 06:41:42 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 03A8B96E for ; Wed, 2 Jul 2014 06:41:42 +0000 (UTC) Received: from archeo.suszko.eu (archeo.unixguru.pl [IPv6:2001:41d0:1:f47a::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B152B2E22 for ; Wed, 2 Jul 2014 06:41:41 +0000 (UTC) Received: from archeo (localhost [127.0.0.1]) by archeo.suszko.eu (Postfix) with ESMTP id A072F2063809; Wed, 2 Jul 2014 08:41:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at archeo.local Received: from archeo.suszko.eu ([127.0.0.1]) by archeo (archeo.local [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id iN6KT76wrxup; Wed, 2 Jul 2014 08:41:36 +0200 (CEST) Received: from helium (gate.grtech.pl [195.8.99.234]) by archeo.suszko.eu (Postfix) with ESMTPSA id EFBA52063807; Wed, 2 Jul 2014 08:41:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=suszko.eu; s=dkim; t=1404283296; bh=U5ouNbucQ8lxAJ4uRaJZ/kDBDYiUc6zujvUzfwfzzhA=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=EHj4KRWyvhXE9FDnJfpFvnOsZx38N6HjwM63fo1uri6z8UAfo7huYwx2uykRXBn99 qIuRNPDjS/4fuTtGbv/au2vD9m0BCjxE1qgENmG2IM8hrg5qOdcKqtUDo+J6c0xo+x 5fvsU9aIiCK7h/p+Q4qCqLJSvxc0PS+hz4Q9zyUw= Date: Wed, 2 Jul 2014 08:41:25 +0200 From: Maciej Suszko To: Victor Sudakov Subject: Re: /usr/local/lib/compat/pkg/ cleanup ? Message-ID: <20140702084125.50882034@helium> In-Reply-To: <20140628135325.GA55592@admin.sibptus.tomsk.ru> References: <20140627161801.GA38362@admin.sibptus.tomsk.ru> <20140627165322.GA40497@admin.sibptus.tomsk.ru> <20140628135325.GA55592@admin.sibptus.tomsk.ru> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/MUj_EJc=8ih7sLFTYtP1OyD"; protocol="application/pgp-signature" Cc: Anton Sayetsky , FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2014 06:41:42 -0000 --Sig_/MUj_EJc=8ih7sLFTYtP1OyD Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 28 Jun 2014 20:53:25 +0700 Victor Sudakov wrote: =20 > With "rm -rf /usr/local/lib/compat/pkg" you don't need all those > sophisticated tools you mentioned above. A missing library will > quickly make itself known :) and then you can forcible reinstall the > affected packages. Unless you do it remotely, using openssh from ports which might be affected... then you have a problem :) I usually do it like that: 1) find /usr/local -type f -print0 | xargs -0 ldd > /tmp/ldds 2 ) search the ldds file for "not found" or "compat"=20 3) find what packages affected files belongs to 4) recompile affected packages Alright, I know that in 1) the ldd command is checking much more than it has to, but running this on a system with ~1000 packages should take less than 10 minutes. --=20 regards, Maciej Suszko. --Sig_/MUj_EJc=8ih7sLFTYtP1OyD Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlOzqZUACgkQCikUk0l7iGr3xgCfX637MRWQ9jEpXBOGDfgrpQQN ZMIAnjF9b+bghxYNMbcX6EAK493sjHkS =6OYI -----END PGP SIGNATURE----- --Sig_/MUj_EJc=8ih7sLFTYtP1OyD--