From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Aug 17 11:40:05 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A12D01065672 for ; Mon, 17 Aug 2009 11:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7D4C78FC69 for ; Mon, 17 Aug 2009 11:40:05 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7HBe1S4006260 for ; Mon, 17 Aug 2009 11:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7HBe1gn006259; Mon, 17 Aug 2009 11:40:01 GMT (envelope-from gnats) Resent-Date: Mon, 17 Aug 2009 11:40:01 GMT Resent-Message-Id: <200908171140.n7HBe1gn006259@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alberto Villa Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88B99106568B for ; Mon, 17 Aug 2009 11:36:40 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 76F348FC51 for ; Mon, 17 Aug 2009 11:36:40 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7HBaedC075001 for ; Mon, 17 Aug 2009 11:36:40 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n7HBaepN075000; Mon, 17 Aug 2009 11:36:40 GMT (envelope-from nobody) Message-Id: <200908171136.n7HBaepN075000@www.freebsd.org> Date: Mon, 17 Aug 2009 11:36:40 GMT From: Alberto Villa To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/137871: [patch] graphics/opencv - fix build with latest libtool and take maintainership X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2009 11:40:05 -0000 >Number: 137871 >Category: ports >Synopsis: [patch] graphics/opencv - fix build with latest libtool and take maintainership >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Aug 17 11:40:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Alberto Villa >Release: FreeBSD 8-STABLE >Organization: >Environment: FreeBSD echo.hoth 8.0-BETA2 FreeBSD 8.0-BETA2 #11: Sat Aug 15 17:55:03 CEST 2009 root@echo.hoth:/usr/obj/usr/src/sys/TPR60 i386 >Description: opencv fails to build with libtool 2.2 and python enabled >How-To-Repeat: cd /usr/ports/graphics/opencv && make WITH_PYTHON=yes >Fix: patch below, tested and coauthored by dima panov (fluffy@) it's independent from ports/137805, but that patch is needed too it also makes some polishing of the makefile, cares about PTHREAD_LIBS and sets me as the new maintainer added files: files/patch-interfaces-swig-python-Makefile.in Patch attached with submission follows: diff -ruN /usr/ports/graphics/opencv/Makefile /tmp/opencv/Makefile --- /usr/ports/graphics/opencv/Makefile 2009-08-03 15:59:21.470128457 +0200 +++ /tmp/opencv/Makefile 2009-08-17 13:04:05.241330839 +0200 @@ -12,8 +12,8 @@ CATEGORIES= graphics MASTER_SITES= SF/opencvlibrary -MAINTAINER= ports@FreeBSD.org -COMMENT= Open Source Computer Vision Library from Intel +MAINTAINER= villa.alberto@gmail.com +COMMENT= Open Source Computer Vision library from Intel BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev.h:${PORTSDIR}/multimedia/v4l_compat @@ -26,21 +26,24 @@ GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS= --with-v4l --without-quicktime --without-carbon \ - --without-1394libs \ - --without-swig # I don't know anything about swig ... + --without-1394libs \ + --without-swig # I don't know anything about swig ... LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg \ - png:${PORTSDIR}/graphics/png \ - tiff:${PORTSDIR}/graphics/tiff \ - jasper:${PORTSDIR}/graphics/jasper \ - IlmImf:${PORTSDIR}/graphics/OpenEXR + png:${PORTSDIR}/graphics/png \ + tiff:${PORTSDIR}/graphics/tiff \ + jasper:${PORTSDIR}/graphics/jasper \ + IlmImf:${PORTSDIR}/graphics/OpenEXR USE_GNOME= -OPTIONS= GTK "Enable GTK+-2.0 support" Off \ - XINE "Enable XINE support" Off \ - FFMPEG "Enable FFMPEG support" Off \ - PYTHON "Enable PYTHON support" Off \ - DEBUG "Build debugging symbols" Off \ - DEMO "Build demo apps" Off +NOT_FOR_ARCHS= sparc64 +NOT_FOR_ARCHS_REASON_sparc64= does not compile on sparc64 + +OPTIONS= DEBUG "Build debugging symbols" off \ + DEMO "Build demo apps" off \ + FFMPEG "Enable FFMPEG support" off \ + GTK "Enable GTK+-2.0 support" off \ + PYTHON "Enable PYTHON support" off \ + XINE "Enable XINE support" off # XXX: # I cannot disable the following features if they have been installed, # thus they should be enable now ... @@ -122,8 +125,11 @@ PLIST_SUB+= DEMO="@comment " .endif -.if ${ARCH} == "sparc64" -BROKEN= Does not compile -.endif +pre-configure: + @${REINPLACE_CMD} -e 's/-pthread/-pthread|${PTHREAD_LIBS}/' \ + ${WRKSRC}/autotools/ltmain.sh + @${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' \ + ${WRKSRC}/configure \ + ${WRKSRC}/Makefile.* .include diff -ruN /usr/ports/graphics/opencv/files/patch-interfaces-swig-python-Makefile.in /tmp/opencv/files/patch-interfaces-swig-python-Makefile.in --- /usr/ports/graphics/opencv/files/patch-interfaces-swig-python-Makefile.in 1970-01-01 01:00:00.000000000 +0100 +++ /tmp/opencv/files/patch-interfaces-swig-python-Makefile.in 2009-08-17 13:14:28.287172536 +0200 @@ -0,0 +1,21 @@ +--- interfaces/swig/python/Makefile.in.orig 2009-08-17 13:05:42.767591162 +0200 ++++ interfaces/swig/python/Makefile.in 2009-08-17 13:12:40.803413956 +0200 +@@ -338,16 +338,14 @@ + + @BUILD_PYTHON_WRAPPERS_TRUE@_cv_la_CXXFLAGS = $(PYTHON_CSPEC) + @BUILD_PYTHON_WRAPPERS_TRUE@_cv_la_LIBADD = $(top_builddir)/cv/src/libcv.la +-@BUILD_PYTHON_WRAPPERS_TRUE@_cv_la_LDFLAGS = -module -avoid-version -no-undefined $(PYTHON_LSPEC) \ +-@BUILD_PYTHON_WRAPPERS_TRUE@ -L$(SWIG_PYTHON_LIBS) ++@BUILD_PYTHON_WRAPPERS_TRUE@_cv_la_LDFLAGS = -module -avoid-version -no-undefined $(PYTHON_LSPEC) + + @BUILD_PYTHON_WRAPPERS_TRUE@_highgui_la_SOURCES = _highgui.cpp pyhelpers.cpp pyhelpers.h \ + @BUILD_PYTHON_WRAPPERS_TRUE@ highgui.i + + @BUILD_PYTHON_WRAPPERS_TRUE@_highgui_la_CXXFLAGS = $(PYTHON_CSPEC) + @BUILD_PYTHON_WRAPPERS_TRUE@_highgui_la_LIBADD = $(top_builddir)/otherlibs/highgui/libhighgui.la +-@BUILD_PYTHON_WRAPPERS_TRUE@_highgui_la_LDFLAGS = -module -avoid-version -no-undefined $(PYTHON_LSPEC) \ +-@BUILD_PYTHON_WRAPPERS_TRUE@ -L$(SWIG_PYTHON_LIBS) ++@BUILD_PYTHON_WRAPPERS_TRUE@_highgui_la_LDFLAGS = -module -avoid-version -no-undefined $(PYTHON_LSPEC) + + all: all-am + >Release-Note: >Audit-Trail: >Unformatted: