Date: Sun, 01 Sep 2013 23:39:18 +1000 From: Kubilay Kocak <koobs.freebsd@gmail.com> To: pawel@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-python@FreeBSD.org Subject: Re: ports/181721: lang/pyhton27 has no libintl support Message-ID: <52234386.7010001@FreeBSD.org>
index | next in thread | raw e-mail
Pawel,
Can you try the following diff to lang/python27 for me please:
Index: Makefile
===================================================================
--- Makefile (revision 325844)
+++ Makefile (working copy)
@@ -62,8 +62,9 @@
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
# XXX do not set any LDFLAGS or CFLAGS - this causes pyexpat to fail
building
-#LDFLAGS+= "-L${LOCALBASE}/lib"
-#CFLAGS+= "-I${LOCALBASE}/include"
+LDFLAGS+= -L${LOCALBASE}/lib
+CPPFLAGS+= -I${LOCALBASE}/include
+CONFIGURE_ENV+= LIBS="-lintl"
.else
CONFIGURE_ENV+= ac_cv_lib_intl_textdomain=no
ac_cv_header_libintl_h=no
.endif
My results:
ldd portbld.shared/python portbld.static/python
portbld.shared/python:
libpython2.7.so => /usr/local/lib/libpython2.7.so (0x80081c000)
libintl.so.9 => /usr/local/lib/libintl.so.9 (0x800bc9000)
libutil.so.9 => /lib/libutil.so.9 (0x800dd3000)
libm.so.5 => /lib/libm.so.5 (0x800fe5000)
libthr.so.3 => /lib/libthr.so.3 (0x801204000)
libc.so.7 => /lib/libc.so.7 (0x801427000)
libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x801778000)
portbld.static/python:
libintl.so.9 => /usr/local/lib/libintl.so.9 (0x800950000)
libutil.so.9 => /lib/libutil.so.9 (0x800b5a000)
libm.so.5 => /lib/libm.so.5 (0x800d6c000)
libthr.so.3 => /lib/libthr.so.3 (0x800f8b000)
libc.so.7 => /lib/libc.so.7 (0x8011ae000)
libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x8014ff000)
Also note that it seems pyexpat/elementtree successfully build when
using CPPFLAGS and not CFLAGS, contrary to the existing "# XXX do not
set" warning.
Id appreciate any additional testing/QA you can do.
Some interesting upstream issues too:
http://bugs.python.org/issue6299
http://bugs.python.org/issue18136
Thanks for the report.
koobs
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52234386.7010001>
