Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 445696 Details for
Bug 593672
app-portage/gentoolkit-0.3.2-r1: always wants to rebuild dev-util/android-sdk-update-manager
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
version 2 patch
0001-revdep-rebuild:-Fixfilenamematchingfordirectories.patch (text/plain), 3.47 KB, created by
Brian Dolbec (RETIRED)
on 2016-09-14 14:53:06 UTC
(
hide
)
Description:
version 2 patch
Filename:
MIME Type:
Creator:
Brian Dolbec (RETIRED)
Created:
2016-09-14 14:53:06 UTC
Size:
3.47 KB
patch
obsolete
>From efea014cbe6691857dece4ee1ce1b262364d43bf Mon Sep 17 00:00:00 2001 >From: Brian Dolbec <dolsen@gentoo.org> >Date: Wed, 14 Sep 2016 07:49:32 -0700 >Subject: [PATCH] revdep-rebuild: Fix filename matching for directories > >Also fixed all_masks not including lib32 lib64 (were added after all_masks was assigned). >Fixed to ensure it does not match on partial directory names by splitting the paths on the >os.sep boundaries >--- > pym/gentoolkit/revdep_rebuild/analyse.py | 30 +++++++++++++++++++++--------- > 1 file changed, 21 insertions(+), 9 deletions(-) > >diff --git a/pym/gentoolkit/revdep_rebuild/analyse.py b/pym/gentoolkit/revdep_rebuild/analyse.py >index 9f018b5..c84fd95 100644 >--- a/pym/gentoolkit/revdep_rebuild/analyse.py >+++ b/pym/gentoolkit/revdep_rebuild/analyse.py >@@ -120,7 +120,8 @@ def extract_dependencies_from_la(la, libraries, to_check, logger): > > > class LibCheck(object): >- def __init__(self, scanned_files, logger, searchlibs=None, searchbits=None, all_masks=None): >+ def __init__(self, scanned_files, logger, searchlibs=None, searchbits=None, >+ all_masks=None, masked_dirs=None): > '''LibCheck init function. > > @param scanned_files: optional dictionary if the type created by >@@ -135,6 +136,7 @@ class LibCheck(object): > self.searchlibs = searchlibs > self.searchbits = sorted(searchbits) or ['32', '64'] > self.all_masks = all_masks >+ self.masked_dirs = masked_dirs > self.logger.debug("\tLibCheck.__init__(), new searchlibs: %s" %(self.searchbits)) > if searchlibs: > self.smsg = '\tLibCheck.search(), Checking for %s bit dependants' >@@ -221,7 +223,7 @@ class LibCheck(object): > if l in self.all_masks: > self.logger.debug('\tLibrary %s ignored as it is masked' % l) > continue >- if filename in self.all_masks: >+ if filename in self.all_masks or self.is_masked(filename): > self.logger.debug('\tFile %s ignored as it is masked' % filename) > continue > if not bits in found_libs: >@@ -240,6 +242,16 @@ class LibCheck(object): > return found_libs > > >+ def is_masked(self, filename): >+ for m in self.masked_dirs: >+ t = m.split(os.sep) >+ f = filename.split(os.sep) >+ self.logger.debug("\tis_masked(); %t, %f", t, f) >+ if t == f[:min(len(t), len(f))]: >+ return True >+ return False >+ >+ > def process_results(self, found_libs, scanned_files=None): > '''Processes the search results, logs the files found > >@@ -294,18 +306,17 @@ def analyse(settings, logger, libraries=None, la_libraries=None, > ] > ) > >+ if '64' not in searchbits: >+ masked_dirs.update(['/lib64', '/usr/lib64']) >+ elif '32' not in searchbits: >+ masked_dirs.update(['/lib32', '/usr/lib32']) >+ > all_masks = masked_dirs.copy() > all_masks.update(masked_files) > logger.debug("\tall_masks:") > for x in sorted(all_masks): > logger.debug('\t\t%s' % (x)) > >- >- if '64' not in searchbits: >- masked_dirs.update(['/lib64', '/usr/lib64']) >- elif '32' not in searchbits: >- masked_dirs.update(['/lib32', '/usr/lib32']) >- > if libraries and la_libraries and libraries_links and binaries: > logger.info(blue(' * ') + > bold('Found a valid cache, skipping collecting phase')) >@@ -371,7 +382,8 @@ def analyse(settings, logger, libraries=None, la_libraries=None, > % (len(libs_and_bins), len(libraries)+len(libraries_links)) > ) > >- libcheck = LibCheck(scanned_files, logger, _libs_to_check, searchbits, all_masks) >+ libcheck = LibCheck(scanned_files, logger, _libs_to_check, searchbits, >+ all_masks, masked_dirs) > > broken_pathes = libcheck.process_results(libcheck.search()) > >-- >2.9.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 593672
:
445628
|
445696
|
445706
|
445730