python-pysqlite1: don't let it use host includes
authorMichael Lauer <mickey@vanille-media.de>
Mon, 22 May 2006 13:33:57 +0000 (13:33 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Mon, 22 May 2006 13:33:57 +0000 (13:33 +0000)
packages/python/python-pysqlite/.mtn2git_empty [new file with mode: 0644]
packages/python/python-pysqlite/no-host-includes.patch [new file with mode: 0644]
packages/python/python-pysqlite2_2.2.2.bb
packages/python/python-pysqlite_1.0.bb

diff --git a/packages/python/python-pysqlite/.mtn2git_empty b/packages/python/python-pysqlite/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/python/python-pysqlite/no-host-includes.patch b/packages/python/python-pysqlite/no-host-includes.patch
new file mode 100644 (file)
index 0000000..20f5c98
--- /dev/null
@@ -0,0 +1,40 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- pysqlite/setup.py~no-host-includes
++++ pysqlite/setup.py
+@@ -11,8 +11,8 @@
+ macros = []
+ if sys.platform in ("linux-i386", "linux2"): # most Linux
+-    include_dirs = ['/usr/include/sqlite']
+-    library_dirs = ['/usr/lib/']
++    include_dirs = []
++    library_dirs = []
+     libraries = [sqlite]
+     runtime_library_dirs = []
+     extra_objects = []
+@@ -21,8 +21,8 @@
+         LOCALBASE = os.environ.get("LOCALBASE", "/opt/local")
+     else:
+         LOCALBASE = os.environ.get("LOCALBASE", "/usr/local")
+-    include_dirs = ['%s/include' % LOCALBASE]
+-    library_dirs = ['%s/lib/' % LOCALBASE]
++    include_dirs = []
++    library_dirs = []
+     libraries = [sqlite]
+     runtime_library_dirs = []
+     extra_objects = []
+@@ -33,8 +33,8 @@
+     runtime_library_dirs = []
+     extra_objects = []
+ elif os.name == "posix": # most Unixish platforms
+-    include_dirs = ['/usr/local/include']
+-    library_dirs = ['/usr/local/lib']
++    include_dirs = []
++    library_dirs = []
+     libraries = [sqlite]
+     # On some platorms, this can be used to find the shared libraries
+     # at runtime, if they are in a non-standard location. Doesn't
index 8f41342..72ffc39 100644 (file)
@@ -11,6 +11,4 @@ PR = "ml0"
 SRC_URI = "http://initd.org/pub/software/pysqlite/releases/2.2/${PV}/${SRCNAME}-${PV}.tar.gz"
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
-EXTRA_OEMAKE = "-e"
-
 inherit distutils
index dcabdb1..46ad023 100644 (file)
@@ -6,8 +6,10 @@ LICENSE = "PSF"
 RDEPENDS = "python-core python-re python-lang"
 DEPENDS = "sqlite"
 SRCNAME = "pysqlite"
+PR = "ml0"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \
+           file://no-host-includes.patch;patch=1"
 S = "${WORKDIR}/${SRCNAME}"
 
 inherit distutils