[oe-commits] : python-pycurl 7.16.4 update to 7.18.2; use dynamic linking

OE GIT Trial gittrial at amethyst.openembedded.net
Tue Aug 12 14:26:29 UTC 2008


Module: OE.dev
Branch: org.openembedded.dev
Commit: b558e709976eeb87d4c926509916548eea670bea
URL:    http://gitweb.openembedded.net//OE.dev.git/?a=commit;h=b558e709976eeb87d4c926509916548eea670bea

Author:  <mickeyl at openembedded.org>
Date:   Sat Aug  9 19:56:57 2008 +0000

python-pycurl 7.16.4 update to 7.18.2; use dynamic linking

---

 packages/python/python-pycurl/no-static-link.patch |   14 ++++++++++++++
 ...on-pycurl_7.16.4.bb => python-pycurl_7.18.2.bb} |   13 +++++++++++--
 2 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/packages/python/python-pycurl/.mtn2git_empty b/packages/python/python-pycurl/.mtn2git_empty
new file mode 100644
index 0000000..e69de29
diff --git a/packages/python/python-pycurl/no-static-link.patch b/packages/python/python-pycurl/no-static-link.patch
new file mode 100644
index 0000000..b7c5ab9
--- /dev/null
+++ b/packages/python/python-pycurl/no-static-link.patch
@@ -0,0 +1,14 @@
+Index: pycurl-7.18.2/setup.py
+===================================================================
+--- pycurl-7.18.2.orig/setup.py
++++ pycurl-7.18.2/setup.py
+@@ -97,8 +97,7 @@ else:
+         else:
+             extra_compile_args.append(e)
+     libs = split_quoted(
+-        os.popen("'%s' --libs" % CURL_CONFIG).read()+\
+-        os.popen("'%s' --static-libs" % CURL_CONFIG).read())
++        os.popen("'%s' --libs" % CURL_CONFIG).read())
+     for e in libs:
+         if e[:2] == "-l":
+             libraries.append(e[2:])
diff --git a/packages/python/python-pycurl_7.16.4.bb b/packages/python/python-pycurl_7.18.2.bb
similarity index 53%
rename from packages/python/python-pycurl_7.16.4.bb
rename to packages/python/python-pycurl_7.18.2.bb
index a9480ad..406add1 100644
--- a/packages/python/python-pycurl_7.16.4.bb
+++ b/packages/python/python-pycurl_7.18.2.bb
@@ -2,11 +2,20 @@ DESCRIPTION = "libcurl Python Bindings"
 SECTION = "devel/python"
 PRIORITY = "optional"
 LICENSE = "LGPL"
-RDEPENDS = "python-core curl (>=${PV})"
 DEPENDS = "curl-${PV}"
 SRCNAME = "pycurl"
+PR = "ml0"
 
-SRC_URI = "http://${SRCNAME}.sourceforge.net/download/${SRCNAME}-${PV}.tar.gz"
+SRC_URI = "\
+  http://${SRCNAME}.sourceforge.net/download/${SRCNAME}-${PV}.tar.gz \
+  file://no-static-link.patch;patch=1 \
+"
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit distutils
+
+do_install_append() {
+	mv -f ${D}${datadir}/share/* ${D}${datadir}/
+}
+
+RDEPENDS = "python-core curl (>=${PV})"





More information about the Openembedded-commits mailing list