From owner-freebsd-questions@FreeBSD.ORG Fri Jun 27 16:53:26 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 52433D82 for ; Fri, 27 Jun 2014 16:53:26 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id B2A222436 for ; Fri, 27 Jun 2014 16:53: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 35842543; Fri, 27 Jun 2014 23:53:23 +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 s5RGrM2Y040515; Fri, 27 Jun 2014 23:53:23 +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 s5RGrMfu040514; Fri, 27 Jun 2014 23:53:22 +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: Fri, 27 Jun 2014 23:53:22 +0700 From: Victor Sudakov To: Anton Sayetsky Subject: Re: /usr/local/lib/compat/pkg/ cleanup ? Message-ID: <20140627165322.GA40497@admin.sibptus.tomsk.ru> References: <20140627161801.GA38362@admin.sibptus.tomsk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: 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: Fri, 27 Jun 2014 16:53:26 -0000 Anton Sayetsky wrote: > > > > I ran 'portmaster -a' and still ended up with some legacy libraries in > > /usr/local/lib/compat/pkg, like > > > > # ldconfig -r | grep clamunrar_ > > 115:-lclamunrar_iface.6 => /usr/local/lib/libclamunrar_iface.so.6 > > 181:-lclamunrar_iface.7 => /usr/local/lib/compat/pkg/libclamunrar_iface.so.7 > > # > > > > or > > > > # ldconfig -r | grep aprutil > > 164:-laprutil-1.0 => /usr/local/lib/libaprutil-1.so.0 > > 174:-laprutil-1.4 => > > /usr/local/lib/compat/pkg/libaprutil-1.so.4 > > # > > > > I don't know why it is so after a 'portmaster -a' run, but what is > > more important, which is the best way to safely cleanup the > > /usr/local/lib/compat/pkg of unused libraries without the risk of > > rendering some software unusable? > > > > Is there software that would analyse the libraries for me and delete > > the unused ones? > ports-mgmt/portupgrade (portsclean) > sysutils/bsdadminscripts (pkg_libchk) > sysutills/libchk I know about the last one but I don't trust it. It shows some system libraries (from the base system) as unreferenced libraries, this looks highly suspicious to me. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru