public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/elfix:master commit in: misc/
Date: Sun, 23 Dec 2012 04:53:52 +0000 (UTC)	[thread overview]
Message-ID: <1356238417.d8bd573cdd3b2a1e6b4f7a2332ef6f8e9d24854f.blueness@gentoo> (raw)

commit:     d8bd573cdd3b2a1e6b4f7a2332ef6f8e9d24854f
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 23 04:53:37 2012 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Dec 23 04:53:37 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=d8bd573c

misc/alt-revdep-pax: correct expand_linkings() to include first ELF object in linkage chain

---
 misc/alt-revdep-pax |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/misc/alt-revdep-pax b/misc/alt-revdep-pax
index 4ea90d4..d5770e4 100755
--- a/misc/alt-revdep-pax
+++ b/misc/alt-revdep-pax
@@ -134,19 +134,19 @@ def get_soname_needed( object_needed, library2soname ):
 	return soname_needed
 
 """
-Run through the entire chain of sonameX -> sonameY ... -> sonameZ chain.
-We do this by continuously expanding the list pointed to by the dictionary
+Run through the entire chain of obj -> sonameX -> sonameY ... -> sonameZ chain.
+We do this by continuously expanding the list value of the dictionary key elf
 entry until there are no new soname's found.
 """
-def get_soname_linkings( soname_needed, soname2library ):
+def expand_linkings( object_needed, soname2library ):
 
-	for soname in soname_needed:
+	for elf in object_needed:
 		while True:
 			found_new_soname = False
-			for s in soname_needed[soname]:					# For all the next links ...
+			for s in object_needed[elf]:					# For all the next links ...
 				try:
-					for sf in soname_needed[s]:			# ... go one step ahead in the chain
-						if sf in soname_needed[soname]:		# ... skip it if we already included it
+					for sf in object_needed[soname2library[s]]:	# ... go one step ahead in the chain
+						if sf in object_needed[elf]:		# ... skip it if we already included it
 							continue
 						if not sf in soname2library:		# ... skip if its a vdso
 							continue
@@ -155,7 +155,7 @@ def get_soname_linkings( soname_needed, soname2library ):
 						# was done so its the same lists in
 						# memory for both, and its modified
 						# for both.
-						soname_needed[soname].append(sf)	# ... otherwise collapse it back into
+						object_needed[elf].append(sf)		# ... otherwise collapse it back into
 						found_new_soname = True			# first node of the chain.
 
 				except KeyError:					# Not all nodes in the chain have a next node
@@ -172,7 +172,7 @@ def get_object_linkings():
 	object_needed = get_object_needed()
 	( library2soname, soname2library ) = get_libraries()
 	soname_needed = get_soname_needed( object_needed, library2soname )
-	get_soname_linkings( soname_needed, soname2library )
+	expand_linkings( object_needed, soname2library )
 	return ( object_needed, soname2library )
 
 


             reply	other threads:[~2012-12-23  4:54 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-23  4:53 Anthony G. Basile [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-02-13 21:38 [gentoo-commits] proj/elfix:master commit in: misc/ Anthony G. Basile
2014-02-13 19:07 Anthony G. Basile
2013-05-21 15:21 Anthony G. Basile
2013-02-09 21:50 Anthony G. Basile
2012-12-27  3:11 Anthony G. Basile
2012-12-26 21:43 Anthony G. Basile
2012-12-26 21:23 Anthony G. Basile
2012-12-26  3:42 Anthony G. Basile
2012-12-25 14:22 Anthony G. Basile
2012-12-24 23:26 Anthony G. Basile
2012-12-24 21:44 Anthony G. Basile
2012-12-24 21:08 Anthony G. Basile
2012-12-24  2:18 Anthony G. Basile
2012-12-24  1:54 Anthony G. Basile
2012-12-23 11:51 Anthony G. Basile
2012-12-23  3:49 Anthony G. Basile
2012-12-23  3:49 Anthony G. Basile
2012-12-23  3:49 Anthony G. Basile
2012-12-23  3:47 Anthony G. Basile
2012-12-23  2:36 Anthony G. Basile
2012-12-23  2:36 Anthony G. Basile
2012-12-23  2:34 Anthony G. Basile
2012-12-23  1:02 Anthony G. Basile
2012-12-22 14:44 Anthony G. Basile
2012-12-22  4:21 Anthony G. Basile
2012-12-22  3:58 Anthony G. Basile
2012-12-22  1:06 Anthony G. Basile
2012-12-19  3:52 Anthony G. Basile
2011-07-08  1:32 Anthony G. Basile

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1356238417.d8bd573cdd3b2a1e6b4f7a2332ef6f8e9d24854f.blueness@gentoo \
    --to=blueness@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox