public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-python/gtkhtml-python/files: gtkhtml-python-2.25.3-python-libs.patch
@ 2012-08-13  9:28 Alexandre Rostovtsev (tetromino)
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Rostovtsev (tetromino) @ 2012-08-13  9:28 UTC (permalink / raw
  To: gentoo-commits

tetromino    12/08/13 09:28:20

  Added:                gtkhtml-python-2.25.3-python-libs.patch
  Log:
  Finally fix horribly slow python libs detection (bug #344231).
  
  (Portage version: 2.2.0_alpha121/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-python/gtkhtml-python/files/gtkhtml-python-2.25.3-python-libs.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/gtkhtml-python/files/gtkhtml-python-2.25.3-python-libs.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/gtkhtml-python/files/gtkhtml-python-2.25.3-python-libs.patch?rev=1.1&content-type=text/plain

Index: gtkhtml-python-2.25.3-python-libs.patch
===================================================================
From 7824fd5291f570de3c2c64185035d1a6a0a3445a Mon Sep 17 00:00:00 2001
From: Alexandre Rostovtsev <tetromino@gentoo.org>
Date: Mon, 13 Aug 2012 04:42:47 -0400
Subject: [PATCH] Replace horrible slow python libs search

---
 acinclude.m4 |   36 ++----------------------------------
 1 files changed, 2 insertions(+), 34 deletions(-)

diff --git a/acinclude.m4 b/acinclude.m4
index 8694a65..f5373eb 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -59,40 +59,8 @@ $1],dnl
 [AC_MSG_RESULT(not found)
 $2])
 CPPFLAGS="$save_CPPFLAGS"
-
-	# This bit is copied from Planner. murrayc.
-	# Check for Python library path
-        AC_MSG_CHECKING([for Python library path])
-
-	# Win32 has libpython25.a instead of libpython2.5.a, so we look
-	# for both. TODO: Only look for libpython25.a on Windows, and for
-	# libpython2.5.a on unix.
-	WIN32_PYTHON_VERSION=`echo $PYTHON_VERSION | sed "s,\.,,"`
-
-        python_path=`dirname $PYTHON | sed "s,/bin.*$,,"`
-        for i in "$python_path/lib/python$PYTHON_VERSION/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/lib/python/" "$python_path/" ; do
-		if test -e "$i"; then
-	                python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"`
-        	        if test -n "$python_path" ; then
-				python_lib="python$PYTHON_VERSION"
-                	        break
-	                fi
-
-			# Additionally test WIN32_PYTHON_VERSION
-	                python_path=`find $i -type f -name libpython$WIN32_PYTHON_VERSION.* -print | sed "1q"`
-        	        if test -n "$python_path" ; then
-				python_lib="python$WIN32_PYTHON_VERSION"
-                	        break
-	                fi
-		fi
-        done
-
-        python_path=`echo $python_path | sed "s,/libpython.*$,,"`
-        AC_MSG_RESULT([$python_path])
-        if test -z "$python_path" ; then
-                AC_MSG_ERROR([cannot find Python library path])
-        fi
-        AC_SUBST([PYTHON_LDFLAGS],["-L$python_path -l$python_lib"])
+PYTHON_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; print('-L%s -lpython${PYTHON_VERSION}' % distutils.sysconfig.get_config_var('LIBDIR'))"`
+AC_SUBST([PYTHON_LDFLAGS],["$PYTHON_LDFLAGS"])
 ])
 
 dnl
-- 
1.7.8.6






^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-python/gtkhtml-python/files: gtkhtml-python-2.25.3-python-libs.patch
@ 2013-07-21  7:25 Pacho Ramos (pacho)
  0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos (pacho) @ 2013-07-21  7:25 UTC (permalink / raw
  To: gentoo-commits

pacho       13/07/21 07:25:53

  Removed:              gtkhtml-python-2.25.3-python-libs.patch
  Log:
  Remove masked for removal package


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-21  7:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13  9:28 [gentoo-commits] gentoo-x86 commit in dev-python/gtkhtml-python/files: gtkhtml-python-2.25.3-python-libs.patch Alexandre Rostovtsev (tetromino)
  -- strict thread matches above, loose matches on Subject: below --
2013-07-21  7:25 Pacho Ramos (pacho)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox