[PATCH] python25 broken on current
Giorgos Keramidas
keramida at freebsd.org
Tue Mar 3 18:53:28 PST 2009
The lang/python25 port fails to build on CURRENT from:
FreeBSD 8.0-CURRENT #0: Sun Mar 1 09:36:35 EET 2009 build at kobe:/usr/obj/usr/src/sys/KOBE
Apparently, the `configure.in' script of Python is missing a header file
in one of the custom check programs, which I could work around by
patching its `configure.in' script:
root at kobe:/usr/ports/lang/python25# more files/patch-configure.in
--- configure.in.orig 2009-03-04 04:01:25.000000000 +0200
+++ configure.in 2009-03-04 04:00:45.000000000 +0200
@@ -2533,6 +2533,7 @@
#include <netdb.h>
#include <string.h>
#include <sys/socket.h>
+#include <arpa/inet.h>
#include <netinet/in.h>
main()
root at kobe:/usr/ports/lang/python25#
But I don't know enough about Ports to make ports/lang/python25/Makefile
run autoconf on configure.in before trying to `make configure'. I tried
patching the port Makefile with:
root at kobe:/usr/ports/lang/python25# diff -u Makefile.orig Makefile
--- Makefile.orig 2009-03-04 04:26:51.000000000 +0200
+++ Makefile 2009-03-04 04:25:17.000000000 +0200
@@ -26,6 +26,9 @@
INSTALL_TARGET= altinstall
MAN1= ${PYTHON_VERSION}.1
+USE_AUTOTOOLS= autoconf:262:env
+AUTOCONF_ARGS= ${CONFIGURE_SCRIPT}.in
+GNU_CONFIGURE= yes
USE_PYTHON= yes
PYTHON_VERSION= python2.5
PYTHON_NO_DEPENDS= yes
root at kobe:/usr/ports/lang/python25#
But this doesn't seem to work as I expected.
If I manually invoke `autoconf-2.62' in the WRKSRC directory of the port
and then `make configure' it builds fine.
More information about the freebsd-ports
mailing list