From owner-freebsd-questions@FreeBSD.ORG Wed Jul 2 13:01:25 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 53912D5F for ; Wed, 2 Jul 2014 13:01:25 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id AF8FF22AC for ; Wed, 2 Jul 2014 13:01:24 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru (account sudakov@sibptus.tomsk.ru [212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPSA id 35890700; Wed, 02 Jul 2014 20:01:22 +0700 Received: from admin.sibptus.tomsk.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.7/8.14.7) with ESMTP id s62D1Kbk078887; Wed, 2 Jul 2014 20:01:21 +0700 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.14.7/8.14.7/Submit) id s62D1Krl078886; Wed, 2 Jul 2014 20:01:20 +0700 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.tomsk.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Wed, 2 Jul 2014 20:01:20 +0700 From: Victor Sudakov To: Maciej Suszko Subject: Re: /usr/local/lib/compat/pkg/ cleanup ? Message-ID: <20140702130119.GA78768@admin.sibptus.tomsk.ru> References: <20140627161801.GA38362@admin.sibptus.tomsk.ru> <20140627165322.GA40497@admin.sibptus.tomsk.ru> <20140628135325.GA55592@admin.sibptus.tomsk.ru> <20140702084125.50882034@helium> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140702084125.50882034@helium> Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.21 (2010-09-15) 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 13:01:25 -0000 Maciej Suszko wrote: > > > 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" > 3) find what packages affected files belongs to > 4) recompile affected packages Thank you, Maciej. This method is kinda harsh, but at least it does not require additional software written in ruby etc etc. I just moved /usr/local/lib/compat/pkg/* away, did the ldd check, found nothing suspicious or missing, and removed all those libraries altogether. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru