Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 182093 Details for
Bug 250186
{dev-lang/python,dev-python/python-docs}-3.1 released
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
15_all_dbm_default_gdbm_compat.patch
15_all_dbm_default_gdbm_compat.patch (text/plain), 2.51 KB, created by
Arfrever Frehtes Taifersar Arahesis (RETIRED)
on 2009-02-15 04:14:14 UTC
(
hide
)
Description:
15_all_dbm_default_gdbm_compat.patch
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis (RETIRED)
Created:
2009-02-15 04:14:14 UTC
Size:
2.51 KB
patch
obsolete
>--- setup.py >+++ setup.py >@@ -790,16 +790,11 @@ > > # The standard Unix dbm module: > if platform not in ['cygwin']: >- if find_file("ndbm.h", inc_dirs, []) is not None: >- # Some systems have -lndbm, others don't >- if self.compiler.find_library_file(lib_dirs, 'ndbm'): >- ndbm_libs = ['ndbm'] >- else: >- ndbm_libs = [] >- exts.append( Extension('_dbm', ['_dbmmodule.c'], >- define_macros=[('HAVE_NDBM_H',None)], >- libraries = ndbm_libs ) ) >- elif self.compiler.find_library_file(lib_dirs, 'gdbm'): >+ # To prevent automagic dependencies check for relevant modules in >+ # disabled_module_list. >+ if (self.compiler.find_library_file(lib_dirs, 'gdbm') >+ and find_file("gdbm/ndbm.h", inc_dirs, []) is not None >+ and 'gdbm' not in disabled_module_list): > gdbm_libs = ['gdbm'] > if self.compiler.find_library_file(lib_dirs, 'gdbm_compat'): > gdbm_libs.append('gdbm_compat') >@@ -813,6 +808,16 @@ > '_dbm', ['_dbmmodule.c'], > define_macros=[('HAVE_GDBM_DASH_NDBM_H',None)], > libraries = gdbm_libs ) ) >+ elif (self.compiler.find_library_file(lib_dirs, 'gdbm') >+ and 'gdbm' not in disabled_module_list): >+ # Some systems have -lndbm, others don't >+ if self.compiler.find_library_file(lib_dirs, 'ndbm'): >+ ndbm_libs = ['ndbm'] >+ else: >+ ndbm_libs = [] >+ exts.append( Extension('_dbm', ['_dbmmodule.c'], >+ define_macros=[('HAVE_NDBM_H',None)], >+ libraries = ndbm_libs ) ) > elif db_incs is not None: > exts.append( Extension('_dbm', ['_dbmmodule.c'], > library_dirs=dblib_dir, >@@ -825,7 +830,8 @@ > missing.append('_dbm') > > # Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm: >- if (self.compiler.find_library_file(lib_dirs, 'gdbm')): >+ if (self.compiler.find_library_file(lib_dirs, 'gdbm') >+ and 'gdbm' not in disabled_module_list): > exts.append( Extension('_gdbm', ['_gdbmmodule.c'], > libraries = ['gdbm'] ) ) > else:
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 250186
:
182091
| 182093 |
182095