Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37785817
en ru br
Репозитории ALT
S:2.7.18-alt11
5.1: 2.5.5-alt0.M51.1
4.1: 2.5.4-alt0.M41.1
4.0: 2.4.5-alt0.M40.1
3.0: 2.4.1-alt5
www.altlinux.org/Changes

Группа :: Разработка/Python
Пакет: python

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: python-2.7.14-alt-expat.patch
Скачать


diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 2b4d312..408756e 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -2,7 +2,7 @@
 #include <ctype.h>
 
 #include "frameobject.h"
-#include "expat.h"
+#include <expat.h>
 
 #include "pyexpat.h"
 
diff --git a/setup.py b/setup.py
index 6cfb43f..142aa5d 100644
--- a/setup.py
+++ b/setup.py
@@ -1491,10 +1491,6 @@ class PyBuildExt(build_ext):
         else:
             expat_inc = [os.path.join(os.getcwd(), srcdir, 'Modules', 'expat')]
             define_macros = [
-                ('HAVE_EXPAT_CONFIG_H', '1'),
-                # bpo-30947: Python uses best available entropy sources to
-                # call XML_SetHashSalt(), expat entropy sources are not needed
-                ('XML_POOR_ENTROPY', '1'),
             ]
             expat_lib = []
             expat_sources = ['expat/xmlparse.c',
@@ -1514,10 +1510,8 @@ class PyBuildExt(build_ext):
                              ]
 
         exts.append(Extension('pyexpat',
-                              define_macros = define_macros,
-                              include_dirs = expat_inc,
-                              libraries = expat_lib,
-                              sources = ['pyexpat.c'] + expat_sources,
+                              sources = ['pyexpat.c'],
+                              libraries = ['expat'],
                               depends = expat_depends,
                               ))
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin