Bug 156425 - lang/python26: Needs to include -L/usr/local/lib/pth in python2.6-config.
Summary: lang/python26: Needs to include -L/usr/local/lib/pth in python2.6-config.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-15 17:10 UTC by Iwao Koichiro
Modified: 2012-07-23 18:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iwao Koichiro 2011-04-15 17:10:08 UTC
Installing py-libxml2 from ports fails and the problem is solved at FreeBSD forum.
http://forums.freebsd.org/showthread.php?t=10165

Making symbolic links works fine but I believe changing CLAGS is the better way, isn't it?

Fix: 

Add "CFLAGS+=-L/usr/local/lib/pth" to the Makefile.
How-To-Repeat: cd /usr/ports/textproc/py-libxml2 && make install
ld says "cannot find -lpth".
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-04-15 17:10:20 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Jeremy Messenger freebsd_committer freebsd_triage 2011-04-30 23:17:43 UTC
State Changed
From-To: open->feedback

Don't think it's py-libxml2 bug, but in one of Python ports. But I need to 
make sure first by have you to show me the output of: 

# python2.6-config --ldflags
Comment 3 Jeremy Messenger freebsd_committer freebsd_triage 2011-05-01 20:03:18 UTC
State Changed
From-To: feedback->open

Change the Synopsis/Subject. Change from gnome to python. It's not a 
py-libxml2 bug, which it's lang/python26 and possible all python2*? 

When I installed lang/python26 with pth option. The python2.6-config output 
will have -lpth included. 

# python2.6-config --ldflags 
-L/usr/local/lib/python2.6/config -lpth -lutil -lm -lpython2.6 
-----------------------------------^^^^^ 

The pth library lives in /usr/local/lib/pth, so python2.6-config needs to 
include the -L/usr/local/lib/pth to fix other ports build. I didn't check if 
other versions of python also need the fix. 


Comment 4 Jeremy Messenger freebsd_committer freebsd_triage 2011-05-01 20:03:18 UTC
Responsible Changed
From-To: gnome->python

Change the Synopsis/Subject. Change from gnome to python. It's not a 
py-libxml2 bug, which it's lang/python26 and possible all python2*? 

When I installed lang/python26 with pth option. The python2.6-config output 
will have -lpth included. 

# python2.6-config --ldflags 
-L/usr/local/lib/python2.6/config -lpth -lutil -lm -lpython2.6 
-----------------------------------^^^^^ 

The pth library lives in /usr/local/lib/pth, so python2.6-config needs to 
include the -L/usr/local/lib/pth to fix other ports build. I didn't check if 
other versions of python also need the fix.
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2011-05-02 22:54:14 UTC
Responsible Changed
From-To: python->freebsd-python

Canonicalize assignment.
Comment 6 dfilter service freebsd_committer freebsd_triage 2012-07-23 18:00:57 UTC
Author: mva
Date: Mon Jul 23 17:00:46 2012
New Revision: 301403
URL: http://svn.freebsd.org/changeset/ports/301403

Log:
  - Fix includes and linker settings for lang/python2*'s PTH options
  
  PR:		ports/156425
  Reported by:	Iwao, Koichiro <meta@club.kyutech.ac.jp>

Modified:
  head/textproc/py-libxml2/Makefile   (contents, props changed)

Modified: head/textproc/py-libxml2/Makefile
==============================================================================
--- head/textproc/py-libxml2/Makefile	Mon Jul 23 16:11:06 2012	(r301402)
+++ head/textproc/py-libxml2/Makefile	Mon Jul 23 17:00:46 2012	(r301403)
@@ -5,7 +5,7 @@
 # $FreeBSD$
 #
 
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	textproc gnome python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -20,6 +20,8 @@ PLIST=		${.CURDIR}/pkg-plist
 
 USE_GNOME=	gnomehack libxml2
 USE_PYTHON=	yes
+CPPFLAGS+=	`${PYTHON_VERSION}-config --cflags`
+LDFLAGS+=	`${PYTHON_VERSION}-config --libs`
 CONFIGURE_ARGS=	--with-iconv=${LOCALBASE} \
 		--with-html-dir=${PREFIX}/share/doc \
 		--with-html-subdir=${PORTNAME} \
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 7 Marcus von Appen freebsd_committer freebsd_triage 2012-07-23 18:01:22 UTC
State Changed
From-To: open->closed

This has been fixed. Thanks for reporting!