From owner-freebsd-current@FreeBSD.ORG Fri Jul 24 05:40:11 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5506B106566B for ; Fri, 24 Jul 2009 05:40:11 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 109888FC08 for ; Fri, 24 Jul 2009 05:40:10 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MUDVn-0005DF-3W for freebsd-current@freebsd.org; Fri, 24 Jul 2009 05:40:07 +0000 Received: from 193.33.173.33 ([193.33.173.33]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Jul 2009 05:40:07 +0000 Received: from c.kworr by 193.33.173.33 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Jul 2009 05:40:07 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Volodymyr Kostyrko Date: Fri, 24 Jul 2009 08:39:54 +0300 Lines: 31 Message-ID: References: <200907231302.34000.subbsd@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.33.173.33 User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.8.1.22) Gecko/20090716 SeaMonkey/1.1.17 In-Reply-To: <200907231302.34000.subbsd@gmail.com> Sender: news Subject: Re: library compat for FreeBSD7x X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 24 Jul 2009 05:40:11 -0000 subbsd wrote: > after the bump version on FreeBSD8-Beta2, some application needs for old > library. But misc/compat7x ports not found for this. It still not ready? > thanks! Actually compat port messes things a bit if a newly compiled binary is looking for new lib and it's next not-so-fresh dependency looks for the older one you'll get one set of symbols imported twice. libmap.conf is a just a more painless solution, yet you should rebuild all binaries. There's a good port sysutils/libchk which you can use to deal with this. It rummages through your bin/lib directories and reports any discrepancies it finds. It outputs something like: Unresolvable link(s) found in: /usr/local/bin/lp libssl.so.5 libcrypto.so.5 libcrypt.so.4 I use this to create the list of packages I need to rebuild: pkg_which `grep Unresolvable libchk.out | sed 's|.* in: ||'` | sort -u | grep -v '^\?$' This list can be later given to something like portupgrade. The same file can be used to automatically generate libmap.conf. However I havn't look at it. -- Sphinx of black quartz judge my vow.