From 734e18033c6eaf2708bf7d6ce84e2bec2c98a609 Mon Sep 17 00:00:00 2001 From: Sven 'sleipnir' Rebhan Date: Mon, 22 Feb 2010 20:05:35 +0000 Subject: Fix gst-python cross-compilation. --- dev-python/gst-python/Manifest | 4 ++ .../gst-python-0.10.16-cross-python-dirs.patch | 33 +++++++++++++ .../gst-python/files/gst-python-0.10.9-lazy.patch | 21 +++++++++ dev-python/gst-python/gst-python-0.10.16.ebuild | 55 ++++++++++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 dev-python/gst-python/Manifest create mode 100644 dev-python/gst-python/files/gst-python-0.10.16-cross-python-dirs.patch create mode 100644 dev-python/gst-python/files/gst-python-0.10.9-lazy.patch create mode 100644 dev-python/gst-python/gst-python-0.10.16.ebuild diff --git a/dev-python/gst-python/Manifest b/dev-python/gst-python/Manifest new file mode 100644 index 0000000..455a828 --- /dev/null +++ b/dev-python/gst-python/Manifest @@ -0,0 +1,4 @@ +AUX gst-python-0.10.16-cross-python-dirs.patch 1489 RMD160 33f4a53c01f5ad995d8a8d17d641dcccbfb4e2c6 SHA1 abf17131fc709c81a56ecd554a3faf8dd3d8f8b7 SHA256 6d78b714262848e442beb4ed18ff4aaa8a558f88a4527147939ad7dd5f79ef99 +AUX gst-python-0.10.9-lazy.patch 534 RMD160 912cd099a3f045305a6a9b33dd3bbc6aa422890c SHA1 a70a68be3e7f03b002f5a49e4685cf7d4daba264 SHA256 5a973c247741dcf2418c3f15427e9408295606ff3b2bf559ae7d82e060b18fee +DIST gst-python-0.10.16.tar.bz2 579649 RMD160 28cb3fa6c63f4aa271caf859e2acbb803a3c30c1 SHA1 d6719417e3228a392ab6a40d3961c0de830bdc79 SHA256 ad145a15a1d7d227321cea8d309a7794edcd8124b4f5c5d00750f72fb6809607 +EBUILD gst-python-0.10.16.ebuild 1573 RMD160 d8f6a9c6a842ed406cba9a30bf04f2570a26ec1c SHA1 b17482fd8975cde8a5b8825f03c9e172f996b29a SHA256 8c9954933cd2d829ee2de9e4e615f516eed8981392356fd87d4fb8a127a898c7 diff --git a/dev-python/gst-python/files/gst-python-0.10.16-cross-python-dirs.patch b/dev-python/gst-python/files/gst-python-0.10.16-cross-python-dirs.patch new file mode 100644 index 0000000..51f8161 --- /dev/null +++ b/dev-python/gst-python/files/gst-python-0.10.16-cross-python-dirs.patch @@ -0,0 +1,33 @@ +--- acinclude.m4 2009-04-15 22:16:30.000000000 +0200 ++++ acinclude.m4.new 2010-02-22 20:51:58.000000000 +0100 +@@ -43,11 +43,13 @@ + [AC_REQUIRE([AM_PATH_PYTHON]) + AC_MSG_CHECKING(for headers required to compile python extensions) + dnl deduce PYTHON_INCLUDES +-py_prefix=`$PYTHON -c "import sys; print sys.prefix"` +-py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` + if $PYTHON-config --help 2>/dev/null; then ++ py_prefix=`$PYTHON-config --prefix 2>/dev/null` ++ py_exec_prefix=`$PYTHON-config --exec-prefix 2>/dev/null` + PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null` + else ++ py_prefix=`$PYTHON -c "import sys; print sys.prefix"` ++ py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` + PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" + if test "$py_prefix" != "$py_exec_prefix"; then + PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}" +@@ -73,8 +75,12 @@ + AC_MSG_CHECKING(for libraries required to embed python) + dnl deduce PYTHON_LIBS + py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` +-PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}" +-PYTHON_LIB_LOC="${py_prefix}/lib" ++if $PYTHON-config --help 2>/dev/null; then ++ PYTHON_LIBS=`$PYTHON-config --libs 2>/dev/null` ++else ++ PYTHON_LIBS="-L${py_exec_prefix}/lib -lpython${PYTHON_VERSION}" ++fi ++PYTHON_LIB_LOC="${py_exec_prefix}/lib" + AC_SUBST(PYTHON_LIBS) + AC_SUBST(PYTHON_LIB_LOC) + dnl check if the headers exist: diff --git a/dev-python/gst-python/files/gst-python-0.10.9-lazy.patch b/dev-python/gst-python/files/gst-python-0.10.9-lazy.patch new file mode 100644 index 0000000..880d550 --- /dev/null +++ b/dev-python/gst-python/files/gst-python-0.10.9-lazy.patch @@ -0,0 +1,21 @@ +diff -ur gst-python-0.10.9.orig/configure.ac gst-python-0.10.9/configure.ac +--- gst-python-0.10.9.orig/configure.ac 2007-11-28 11:33:05.000000000 +0200 ++++ gst-python-0.10.9/configure.ac 2007-11-28 18:09:48.000000000 +0200 +@@ -363,6 +363,17 @@ + + AG_GST_VALGRIND_CHECK + ++AC_MSG_CHECKING([whether $LD accepts -z,lazy]) ++case `$LD -z,lazy -v 2>&1