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 1RFuSA-0004qz-FG for garchives@archives.gentoo.org; Mon, 17 Oct 2011 21:10:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7C6C321C14C; Mon, 17 Oct 2011 21:09:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 505FB21C14C for ; Mon, 17 Oct 2011 21:09:42 +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 B214E1B4059 for ; Mon, 17 Oct 2011 21:09:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 2004B80042 for ; Mon, 17 Oct 2011 21:09:41 +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: <0f3d0e4f2c73eac2be69adf7c7e07edfcb673c72.blueness@gentoo> Subject: [gentoo-commits] proj/elfix:elfix-0.2.x 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: 0f3d0e4f2c73eac2be69adf7c7e07edfcb673c72 Date: Mon, 17 Oct 2011 21:09:41 +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: 56fe9322e3157855b71f2e956d05de41 commit: 0f3d0e4f2c73eac2be69adf7c7e07edfcb673c72 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 21:04:23 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/elfix.git;a=3D= commit;h=3D0f3d0e4f 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():