[oe-commits] org.oe.dev python-lxml: add patch to make it use pkgconfig instead of binconfig to detect its dependencies

mickeyl commit openembedded-commits at lists.openembedded.org
Mon Aug 20 22:02:56 UTC 2007


python-lxml: add patch to make it use pkgconfig instead of binconfig to detect its dependencies

Author: mickeyl at openembedded.org
Branch: org.openembedded.dev
Revision: 37817863a6f6d91ee5ec984469af16b787e344c6
ViewMTN: http://monotone.openembedded.org/revision.psp?id=37817863a6f6d91ee5ec984469af16b787e344c6
Files:
1
packages/python/python-lxml
packages/python/python-lxml/use-pkgconfig-to-detect.patch
packages/python/python-lxml_1.3.3.bb
Diffs:

#
# mt diff -r5ad6f42b55c9b2e3db7384a70948aee3be638cd6 -r37817863a6f6d91ee5ec984469af16b787e344c6
#
# 
# 
# add_dir "packages/python/python-lxml"
# 
# add_file "packages/python/python-lxml/use-pkgconfig-to-detect.patch"
#  content [84ef4d4ce6568b5eee88fd43500c7a54e391d664]
# 
# patch "packages/python/python-lxml_1.3.3.bb"
#  from [becc61196d1b53dbf733df0c2c20675a4529eee2]
#    to [18e84fd449c0c4357c9ab2e1e5eb586da78e7acc]
# 
============================================================
--- packages/python/python-lxml/use-pkgconfig-to-detect.patch	84ef4d4ce6568b5eee88fd43500c7a54e391d664
+++ packages/python/python-lxml/use-pkgconfig-to-detect.patch	84ef4d4ce6568b5eee88fd43500c7a54e391d664
@@ -0,0 +1,31 @@
+Index: lxml-1.3.3/setupinfo.py
+===================================================================
+--- lxml-1.3.3.orig/setupinfo.py	2007-08-20 22:39:09.000000000 +0000
++++ lxml-1.3.3/setupinfo.py	2007-08-20 22:39:46.000000000 +0000
+@@ -86,7 +86,7 @@
+         return static_library_dirs
+     # filter them from xslt-config --libs
+     result = []
+-    possible_library_dirs = flags('xslt-config --libs')
++    possible_library_dirs = flags('pkg-config libxslt --libs')
+     for possible_library_dir in possible_library_dirs:
+         if possible_library_dir.startswith('-L'):
+             result.append(possible_library_dir[2:])
+@@ -100,7 +100,7 @@
+         return static_include_dirs
+     # filter them from xslt-config --cflags
+     result = []
+-    possible_include_dirs = flags('xslt-config --cflags')
++    possible_include_dirs = flags('pkg-config libxslt --cflags')
+     for possible_include_dir in possible_include_dirs:
+         if possible_include_dir.startswith('-I'):
+             result.append(possible_include_dir[2:])
+@@ -119,7 +119,7 @@
+         return result
+ 
+     # anything from xslt-config --cflags that doesn't start with -I
+-    possible_cflags = flags('xslt-config --cflags')
++    possible_cflags = flags('pkg-config libxslt --cflags')
+     for possible_cflag in possible_cflags:
+         if not possible_cflag.startswith('-I'):
+             result.append(possible_cflag)
============================================================
--- packages/python/python-lxml_1.3.3.bb	becc61196d1b53dbf733df0c2c20675a4529eee2
+++ packages/python/python-lxml_1.3.3.bb	18e84fd449c0c4357c9ab2e1e5eb586da78e7acc
@@ -1,11 +1,12 @@ DEPENDS = "libxml2 libxslt"
 DESCRIPTION = "Python Bindings to the XML libraries libxml2 and libxslt"
 HOMEPAGE = "http://codespeak.net/lxml/"
 AUTHOR = "http://codespeak.net/mailman/listinfo/lxml-dev"
 LICENSE = "BSD"
 DEPENDS = "libxml2 libxslt"
-PR = "ml0"
+PR = "ml1"
 
-SRC_URI = "http://codespeak.net/lxml/lxml-${PV}.tgz"
+SRC_URI = "http://codespeak.net/lxml/lxml-${PV}.tgz \
+           file://use-pkgconfig-to-detect.patch;patch=1"
 S = "${WORKDIR}/lxml-${PV}"
 
 inherit distutils






More information about the Openembedded-commits mailing list