summaryrefslogtreecommitdiff
path: root/dev-lang/python/files/setup.patch
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-13 22:21:26 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-13 22:21:26 -0500
commitf997c3ee588099e4f43e9ec845935868e3e60b8e (patch)
tree07f0967cda575ee2edf2d62ed8c0f67855ae6bd3 /dev-lang/python/files/setup.patch
parentb589bc93e15b300c3e5318fe97241d57e464bea1 (diff)
downloadbaldeagleos-repo-f997c3ee588099e4f43e9ec845935868e3e60b8e.tar.gz
baldeagleos-repo-f997c3ee588099e4f43e9ec845935868e3e60b8e.tar.xz
baldeagleos-repo-f997c3ee588099e4f43e9ec845935868e3e60b8e.zip
Adding metadata
Diffstat (limited to 'dev-lang/python/files/setup.patch')
-rw-r--r--dev-lang/python/files/setup.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-lang/python/files/setup.patch b/dev-lang/python/files/setup.patch
new file mode 100644
index 000000000000..ed117caf9c93
--- /dev/null
+++ b/dev-lang/python/files/setup.patch
@@ -0,0 +1,31 @@
+Index: setup.py
+--- setup.py.orig
++++ setup.py
+@@ -1151,6 +1151,8 @@ class PyBuildExt(build_ext):
+ 'termcap'):
+ readline_libs.append('termcap')
+ self.add(Extension('readline', ['readline.c'],
++ extra_compile_args=['-nostdinc'],
++ include_dirs=['/usr/include'],
+ library_dirs=['/usr/lib/termcap'],
+ extra_link_args=readline_extra_link_args,
+ libraries=readline_libs))
+@@ -1870,7 +1872,7 @@ class PyBuildExt(build_ext):
+ uuid_h = sysconfig.get_config_var("HAVE_UUID_H")
+ uuid_uuid_h = sysconfig.get_config_var("HAVE_UUID_UUID_H")
+ if uuid_h or uuid_uuid_h:
+- if sysconfig.get_config_var("HAVE_LIBUUID"):
++ if sysconfig.get_config_var("HAVE_LIBUUID") and not HOST_PLATFORM.startswith('openbsd'):
+ uuid_libs = ["uuid"]
+ else:
+ uuid_libs = []
+@@ -2116,8 +2118,7 @@ class PyBuildExt(build_ext):
+ # The versions with dots are used on Unix, and the versions without
+ # dots on Windows, for detection by cygwin.
+ tcllib = tklib = tcl_includes = tk_includes = None
+- for version in ['8.6', '86', '8.5', '85', '8.4', '84', '8.3', '83',
+- '8.2', '82', '8.1', '81', '8.0', '80']:
++ for version in ['85']:
+ tklib = self.compiler.find_library_file(self.lib_dirs,
+ 'tk' + version)
+ tcllib = self.compiler.find_library_file(self.lib_dirs,