From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RFtbH-0004iR-Ly for garchives@archives.gentoo.org; Mon, 17 Oct 2011 20:15:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6AC3A21C0EA; Mon, 17 Oct 2011 20:15:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3A63E21C0EA for ; Mon, 17 Oct 2011 20:15:48 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B3E711B4003 for ; Mon, 17 Oct 2011 20:15:47 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id E11BD80042 for ; Mon, 17 Oct 2011 20:15:46 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <5727bf4f28fcb728439c3f9e8567d6045830f480.blueness@gentoo> Subject: [gentoo-commits] proj/elfix:master commit in: scripts/ X-VCS-Repository: proj/elfix X-VCS-Files: scripts/revdep-pax X-VCS-Directories: scripts/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 5727bf4f28fcb728439c3f9e8567d6045830f480 Date: Mon, 17 Oct 2011 20:15:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 1c57086928b2fb40b26a5b72b627d262 commit: 5727bf4f28fcb728439c3f9e8567d6045830f480 Author: Anthony G. Basile gentoo org> AuthorDate: Mon Oct 17 20:15:42 2011 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Mon Oct 17 20:15:42 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/elfix.git;a=3D= commit;h=3D5727bf4f scripts/revdep-pax: extend setting flags to reverse mappings --- scripts/revdep-pax | 34 +++++++++++++++++++++++++++------- 1 files changed, 27 insertions(+), 7 deletions(-) diff --git a/scripts/revdep-pax b/scripts/revdep-pax index 7a8da3e..a5636bd 100755 --- a/scripts/revdep-pax +++ b/scripts/revdep-pax @@ -301,20 +301,20 @@ def run_soname(name, verbose, use_soname, mark): print soname, '\t', library, '(', library_flags, ')' print =20 - count =3D 0 + mismatched_binaries =3D [] for binary in linkings: try: ( binary_flags, binary_pax_flags ) =3D pax.getflags(binary) if verbose: - print '\t', binary, '(', binary_flags, ')' - else: - if library_flags !=3D binary_flags: - print '\t', binary, '(', binary_flags, ')' - count =3D count + 1 + print '\t%s ( %s )' % ( binary, binary_flags ) + if library_flags !=3D binary_flags: + mismatched_binaries.append(binary) + if not verbose: + print '\t%s ( %s )' % ( binary, binary_flags ) except: print 'cannot obtain pax flags for %s' % binary =20 - if count =3D=3D 0: + if len(mismatched_binaries) =3D=3D 0 print print '\tNo mismatches' print @@ -322,6 +322,26 @@ def run_soname(name, verbose, use_soname, mark): print print '\tMismatches' print + if mark: + print '\tWill mark binaries with %s' % library_flags + print + for binary in mismatched_binaries: + do_marking =3D False + while True: + ans =3D raw_input('\tSet flags for %s (y/n): ' % binary) + if ans =3D=3D 'y': + do_marking =3D True + break + elif ans =3D=3D 'n': + do_marking =3D False + break + else: + print '\t\tPlease enter y or n' + if do_marking: + pax.setflags(binary, library_pax_flags) + ( binary_flags, binary_pax_flags ) =3D pax.getflags(binary) + print '\t%s ( %s )' % ( binary, binary_flags ) + print =20 =20 def main():