Commit d924ab91 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

link wish our own zlib in lxml.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40651 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 34f0f616
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
extends = extends =
../software-profiles/libxml2.cfg ../software-profiles/libxml2.cfg
../software-profiles/libxslt.cfg ../software-profiles/libxslt.cfg
../software-profiles/zlib.cfg
parts = parts =
lxml-python lxml-python
...@@ -15,4 +16,5 @@ egg = lxml ...@@ -15,4 +16,5 @@ egg = lxml
rpath = rpath =
${libxml2:location}/lib/ ${libxml2:location}/lib/
${libxslt:location}/lib/ ${libxslt:location}/lib/
${zlib:location}/lib/
environment = lxml-python-env environment = lxml-python-env
...@@ -106,6 +106,13 @@ def readElfAsDict(f): ...@@ -106,6 +106,13 @@ def readElfAsDict(f):
runpath_list=sorted(runpath_list) runpath_list=sorted(runpath_list)
) )
def getPythonVersion():
return '%s.%s' % util.sys.version_info[0:2]
def getDevelopEggName(name, version):
return '%s-%s-py%s-%s.egg' % (name, version, getPythonVersion(),
util.get_platform())
def readLddInfoList(f): def readLddInfoList(f):
popen = subprocess.Popen(['ldd', f], stdout=subprocess.PIPE, popen = subprocess.Popen(['ldd', f], stdout=subprocess.PIPE,
stderr=subprocess.STDOUT) stderr=subprocess.STDOUT)
...@@ -1448,10 +1455,9 @@ class AssertBzip2(AssertSoftwareMixin): ...@@ -1448,10 +1455,9 @@ class AssertBzip2(AssertSoftwareMixin):
class AssertPysvn(AssertSoftwareMixin): class AssertPysvn(AssertSoftwareMixin):
def test_ld_pysvn(self): def test_ld_pysvn(self):
python_version_major, python_version_minor = util.sys.version_info[0:2] self.assertLibraryList('develop-eggs/%s/pysvn/_pysvn_%s.so' % (
self.assertLibraryList('develop-eggs/pysvn-1.7.4-py%s.%s-%s.egg/pysvn/_pysvn_%s_%s.so' % ( getDevelopEggName('pysvn', '1.7.4'),
python_version_major, python_version_minor, util.get_platform(), getPythonVersion().replace('.', '_')), [
python_version_major, python_version_minor), [
'libc', 'libc',
'libcom_err', 'libcom_err',
'libgcc_s', 'libgcc_s',
...@@ -1465,6 +1471,41 @@ class AssertPysvn(AssertSoftwareMixin): ...@@ -1465,6 +1471,41 @@ class AssertPysvn(AssertSoftwareMixin):
'subversion' 'subversion'
]) ])
class AssertLxml(AssertSoftwareMixin):
def test_ld_etree_so(self):
egg_name = getDevelopEggName('lxml', '2.2.8')
python_version_major, python_version_minor = util.sys.version_info[0:2]
self.assertLibraryList('develop-eggs/%s/lxml/etree.so' % (egg_name), [
'libc',
'libexslt',
'libm',
'libpthread',
'libxml2',
'libxslt',
'libz',
], [
'libxml2',
'libxslt',
'zlib',
])
def test_ld_objectify_so(self):
egg_name = getDevelopEggName('lxml', '2.2.8')
python_version_major, python_version_minor = util.sys.version_info[0:2]
self.assertLibraryList('develop-eggs/%s/lxml/objectify.so' % (egg_name), [
'libc',
'libexslt',
'libm',
'libpthread',
'libxml2',
'libxslt',
'libz',
], [
'libxml2',
'libxslt',
'zlib',
])
class AssertElfLinkedInternally(AssertSoftwareMixin): class AssertElfLinkedInternally(AssertSoftwareMixin):
def test(self): def test(self):
result_dict = {} result_dict = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment