Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 722026 Details for
Bug 797259
[cygwin][prefix][patch] dev-lang/python-3.9.3 build failed
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
03-python-3.9-eprefix.patch
03-python-3.9-eprefix.patch (text/plain), 2.63 KB, created by
Egor Y. Egorov
on 2021-07-05 11:30:36 UTC
(
hide
)
Description:
03-python-3.9-eprefix.patch
Filename:
MIME Type:
Creator:
Egor Y. Egorov
Created:
2021-07-05 11:30:36 UTC
Size:
2.63 KB
patch
obsolete
>diff -ur Python-3.9.3_orig/setup.py Python-3.9.3/setup.py >--- Python-3.9.3_orig/setup.py 2021-04-02 15:51:53.000000000 +0600 >+++ Python-3.9.3/setup.py 2021-07-05 15:37:00.474582700 +0600 >@@ -646,7 +667,7 @@ > add_dir_to_list(self.compiler.library_dirs, >- '/usr/lib/' + multiarch_path_component) >+ '@@EPREFIX@@/usr/lib/' + multiarch_path_component) > add_dir_to_list(self.compiler.include_dirs, >- '/usr/include/' + multiarch_path_component) >+ '@@EPREFIX@@/usr/include/' + multiarch_path_component) > return > > if not find_executable('dpkg-architecture'): >@@ -666,7 +691,7 @@ > multiarch_path_component = fp.readline().strip() > add_dir_to_list(self.compiler.library_dirs, >- '/usr/lib/' + multiarch_path_component) >+ '@@EPREFIX@@/usr/lib/' + multiarch_path_component) > add_dir_to_list(self.compiler.include_dirs, >- '/usr/include/' + multiarch_path_component) >+ '@@EPREFIX@@/usr/include/' + multiarch_path_component) > finally: > os.unlink(tmpfile) >@@ -750,8 +769,8 @@ > add_dir_to_list(self.compiler.include_dirs, > sysconfig.get_config_var("INCLUDEDIR")) > >- system_lib_dirs = ['/@@GENTOO_LIBDIR@@', '/usr/@@GENTOO_LIBDIR@@'] >- system_include_dirs = ['/usr/include'] >+ system_lib_dirs = ['@@EPREFIX@@/@@GENTOO_LIBDIR@@', '@@EPREFIX@@/usr/@@GENTOO_LIBDIR@@'] >+ system_include_dirs = ['@@EPREFIX@@/usr/include'] > # lib_dirs and inc_dirs are used to search for files; > # if a file is found in one of those directories, it can > # be assumed that no additional -I,-L directives are needed. >@@ -1763,7 +1730,7 @@ > > def detect_uuid(self): > # Build the _uuid module if possible >- uuid_incs = find_file("uuid.h", self.inc_dirs, ["/usr/include/uuid"]) >+ uuid_incs = find_file("uuid.h", self.inc_dirs, ["@@EPREFIX@@/usr/include/uuid"]) > if uuid_incs is not None: > if self.compiler.find_library_file(self.lib_dirs, 'uuid'): > uuid_libs = ['uuid'] >@@ -2157,6 +2106,7 @@ > # OS X 10.5 comes with libffi.dylib; the include files are > # in /usr/include/ffi > ffi_inc_dirs.append('/usr/include/ffi') >+ ffi_inc_dirs.append('@@EPREFIX@@/usr/include/ffi') > > if not ffi_inc: > found = find_file('ffi.h', [], ffi_inc_dirs)
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 797259
:
717267
|
717270
|
717273
|
717276
|
717279
|
717282
|
717285
| 722026 |
722029
|
722032