Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in pax-utils: lddtree.py
Date: Tue, 26 Mar 2013 05:03:46
Message-Id: 20130326050342.9EA252171D@flycatcher.gentoo.org
1 vapier 13/03/26 05:03:42
2
3 Modified: lddtree.py
4 Log:
5 lddtree.py: do not try and wrap static ELFs
6
7 Revision Changes Path
8 1.27 pax-utils/lddtree.py
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py?rev=1.27&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py?rev=1.27&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py?r1=1.26&r2=1.27
13
14 Index: lddtree.py
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/pax-utils/lddtree.py,v
17 retrieving revision 1.26
18 retrieving revision 1.27
19 diff -u -r1.26 -r1.27
20 --- lddtree.py 26 Mar 2013 04:50:47 -0000 1.26
21 +++ lddtree.py 26 Mar 2013 05:03:42 -0000 1.27
22 @@ -3,7 +3,7 @@
23 # Copyright 2012 Mike Frysinger <vapier@g.o>
24 # Use of this source code is governed by a BSD-style license (BSD-3)
25 # pylint: disable=C0301
26 -# $Header: /var/cvsroot/gentoo-projects/pax-utils/lddtree.py,v 1.26 2013/03/26 04:50:47 vapier Exp $
27 +# $Header: /var/cvsroot/gentoo-projects/pax-utils/lddtree.py,v 1.27 2013/03/26 05:03:42 vapier Exp $
28
29 """Read the ELF dependency tree and show it
30
31 @@ -367,7 +367,7 @@
32
33
34 def _ShowVersion(_option, _opt, _value, _parser):
35 - d = '$Id: lddtree.py,v 1.26 2013/03/26 04:50:47 vapier Exp $'.split()
36 + d = '$Id: lddtree.py,v 1.27 2013/03/26 05:03:42 vapier Exp $'.split()
37 print('%s-%s %s %s' % (d[1].split('.')[0], d[2], d[3], d[4]))
38 sys.exit(0)
39
40 @@ -420,6 +420,11 @@
41 if src is None:
42 return
43
44 + if wrapit:
45 + # Static ELFs don't need to be wrapped.
46 + if not elf['interp']:
47 + wrapit = False
48 +
49 striproot = _StripRoot if striproot else lambda x: x
50
51 subdst = striproot(src)