From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 96F8A1381FB for ; Sat, 29 Dec 2012 01:16:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB9BF21C01F; Sat, 29 Dec 2012 01:16:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2970F21C010 for ; Sat, 29 Dec 2012 01:16:11 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3DB9733D813 for ; Sat, 29 Dec 2012 01:16:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id DC396E544B for ; Sat, 29 Dec 2012 01:16:08 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1356743253.e0c6e2bb8ef37f1c57cb5e83e11bd0c1458854f7.blueness@gentoo> Subject: [gentoo-commits] proj/elfix:elfix-0.7.x commit in: misc/ X-VCS-Repository: proj/elfix X-VCS-Files: misc/link_maps_portage X-VCS-Directories: misc/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: e0c6e2bb8ef37f1c57cb5e83e11bd0c1458854f7 X-VCS-Branch: elfix-0.7.x Date: Sat, 29 Dec 2012 01:16:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 987ea551-c998-47c9-8ec9-b197b3b1ee5c X-Archives-Hash: dac77cbe1f42fe980fc34cc80df402e6 commit: e0c6e2bb8ef37f1c57cb5e83e11bd0c1458854f7 Author: Anthony G. Basile gentoo org> AuthorDate: Mon Dec 24 21:44:35 2012 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Sat Dec 29 01:07:33 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=e0c6e2bb misc/link_maps_portage: fix get_{object_needed,libraries} for multilib --- misc/link_maps_portage | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/misc/link_maps_portage b/misc/link_maps_portage index f55db6a..28bc0ea 100755 --- a/misc/link_maps_portage +++ b/misc/link_maps_portage @@ -41,9 +41,10 @@ def get_object_needed(): lines = re.split('\n', needs) for line in lines: link = re.split(';', line) + abi = link[0] elf = link[1] sonames = re.split(',', link[4]) - object_needed[elf] = sonames + object_needed.setdefault(abi,{}).update({elf:sonames}) return object_needed @@ -71,11 +72,12 @@ def get_libraries(): lines = re.split('\n', needs) for line in lines: link = re.split(';', line) + abi = link[0] elf = link[1] soname = link[2] if soname: #no soname => executable - library2soname[elf] = soname - soname2library[soname] = elf + library2soname[elf] = (soname,abi) + soname2library[(soname,abi)] = elf return ( library2soname, soname2library )