Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 273901 Details for
Bug 253121
portage-2.2_rc20 doesn't preserve indirect *.so dependencies
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
script to find libraries that are required indirectly
indirect_providers.py (text/x-python), 1.26 KB, created by
Zac Medico
on 2011-05-19 03:41:10 UTC
(
hide
)
Description:
script to find libraries that are required indirectly
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2011-05-19 03:41:10 UTC
Size:
1.26 KB
patch
obsolete
>#!/usr/bin/env python ># Copyright 2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >import sys >import portage > >root = portage.settings["ROOT"] >vardb = portage.db[root]["vartree"].dbapi >linkmap = vardb._linkmap >linkmap.rebuild() >root_len = len(root) - 1 >for cpv in vardb.cpv_all(): > pkg_dblink = vardb._dblink(cpv) > private_libs = {} > private_consumers = {} > public_libs = {} > for p_abs, data in pkg_dblink.getcontents().items(): > if data[0] != "obj": > continue > p = p_abs[root_len:] > try: > consumers = linkmap.findConsumers(p) > except KeyError: > continue > if not consumers: > continue > only_internal_consumers = True > for c in consumers: > if not pkg_dblink.isowner(c): > only_internal_consumers = False > break > if only_internal_consumers: > private_libs[p] = consumers > for c in consumers: > private_consumers.setdefault(c, set()).add(p) > else: > public_libs[p] = consumers > if private_libs and public_libs: > indirect_providers = set() > for p in public_libs: > if p in private_consumers: > indirect_providers.update(private_consumers[p]) > if indirect_providers: > indirect_providers = sorted(indirect_providers) > sys.stdout.write("%s %s\n" % \ > (cpv, " ".join(indirect_providers))) > sys.stdout.flush()
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 Raw
Actions:
View
Attachments on
bug 253121
: 273901