mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 03:55:06 +00:00
Ports: Remove obsolete patches for Python
This enables shared library support for Python and removes a few patches which are not necessary anymore now that we have dlfcn support.
This commit is contained in:
parent
f40ee1b03f
commit
adaf2b347c
7 changed files with 31 additions and 130 deletions
|
@ -20,3 +20,21 @@
|
|||
DATE, TIME);
|
||||
return buildinfo;
|
||||
}
|
||||
diff -Naur Python-3.9.4/Python/dynload_shlib.c Python-3.9.4.serenity/Python/dynload_shlib.c
|
||||
--- Python-3.9.4/Python/dynload_shlib.c 2021-04-04 14:56:53.000000000 +0200
|
||||
+++ Python-3.9.4.serenity/Python/dynload_shlib.c 2021-04-24 15:57:27.419824682 +0200
|
||||
@@ -69,12 +69,12 @@
|
||||
|
||||
if (strchr(pathname, '/') == NULL) {
|
||||
/* Prefix bare filename with "./" */
|
||||
- PyOS_snprintf(pathbuf, sizeof(pathbuf), "./%-.255s", pathname);
|
||||
+ PyOS_snprintf(pathbuf, sizeof(pathbuf), "./%s", pathname);
|
||||
pathname = pathbuf;
|
||||
}
|
||||
|
||||
PyOS_snprintf(funcname, sizeof(funcname),
|
||||
- LEAD_UNDERSCORE "%.20s_%.200s", prefix, shortname);
|
||||
+ LEAD_UNDERSCORE "%s_%s", prefix, shortname);
|
||||
|
||||
if (fp != NULL) {
|
||||
int i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue