Date: Tue, 4 Sep 2007 13:38:02 +0300 (EEST) From: Nikos Ntarmos <ntarmos@ceid.upatras.gr> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/116076: [patch] Have devel/libhid also install its python site-package Message-ID: <20070904103802.19D093F40B@ace.b020.ceid.upatras.gr> Resent-Message-ID: <200709041040.l84Ae2Un069581@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 116076 >Category: ports >Synopsis: [patch] Have devel/libhid also install its python site-package >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Sep 04 10:40:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Nikos Ntarmos >Release: FreeBSD 7.0-CURRENT i386 >Organization: NetCInS Lab., C.E.I.D., U. of Patras, Greece >Environment: System: FreeBSD ace.b020.ceid.upatras.gr 7.0-CURRENT FreeBSD 7.0-CURRENT #4: Fri Jul 13 06:50:30 EEST 2007 ntarmos@ace.b020.ceid.upatras.gr:/opt/obj/opt/src/sys/ACE i386 >Description: When devel/swig13 is installed, building of devel/libhid fails, due to my overlooking of the swig detection bits in the ports configure script. However, swig is used to build the python site-package of the port, so I've bumped the portrevision and turned these bits on by default (the additional patch-Makefile.in hunk is to suppress a warning). >How-To-Repeat: For the 'bug' part, install devel/swig13 and then try to build devel/libhid. >Fix: --- libhid.diff begins here --- --- Makefile.orig 2007-09-04 13:23:01.000000000 +0300 +++ Makefile 2007-09-04 13:06:49.000000000 +0300 @@ -7,6 +7,7 @@ PORTNAME= libhid PORTVERSION= 0.2.16 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://alioth.debian.org/frs/download.php/1958/ @@ -16,12 +17,15 @@ MAN1= libhid-detach-device.1 MANCOMPRESSED= no USE_LDCONFIG= yes +USE_GMAKE= yes +USE_PYTHON= yes LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb BUILD_DEPENDS+= ${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt \ - ${LOCALBASE}/share/xsl/docbook/html:${PORTSDIR}/textproc/docbook-xsl + ${LOCALBASE}/share/xsl/docbook/html:${PORTSDIR}/textproc/docbook-xsl \ + ${LOCALBASE}/bin/swig1.3:${PORTSDIR}/devel/swig13 HAS_CONFIGURE= yes -CONFIGURE_ARGS+= --mandir=${MANPREFIX}/man +CONFIGURE_ARGS+= --mandir=${MANPREFIX}/man --without-doxygen .include <bsd.port.mk> --- pkg-plist.o 2007-09-04 13:24:24.000000000 +0300 +++ pkg-plist 2007-09-04 13:03:51.000000000 +0300 @@ -7,3 +7,17 @@ lib/libhid.so lib/libhid.so.0 libdata/pkgconfig/libhid.pc +%%PYTHON_SITELIBDIR%%/libhid/_hid.so.0 +%%PYTHON_SITELIBDIR%%/libhid/_hid.so +%%PYTHON_SITELIBDIR%%/libhid/_hid.la +%%PYTHON_SITELIBDIR%%/libhid/_hid.a +%%PYTHON_SITELIBDIR%%/libhid/__init__.py +%%PYTHON_SITELIBDIR%%/libhid/__init__.pyc +%%PYTHON_SITELIBDIR%%/libhid/__init__.pyo +%%PYTHON_SITELIBDIR%%/libhid/hid.py +%%PYTHON_SITELIBDIR%%/libhid/hid.pyc +%%PYTHON_SITELIBDIR%%/libhid/hid.pyo +%%PYTHON_SITELIBDIR%%/libhid/hidwrap.py +%%PYTHON_SITELIBDIR%%/libhid/hidwrap.pyc +%%PYTHON_SITELIBDIR%%/libhid/hidwrap.pyo +@dirrm %%PYTHON_SITELIBDIR%%/libhid/ --- files/patch-Makefile.in.orig 2007-09-04 13:25:02.000000000 +0300 +++ files/patch-Makefile.in 2007-09-04 12:08:24.000000000 +0300 @@ -9,3 +9,12 @@ pkgconfig_DATA = pkgconfig/libhid.pc dist_noinst_DATA = \ debian/changelog \ +@@ -293,7 +293,7 @@ + README.licence + + DEBIAN_VERSION = ${shell head -1 debian/changelog 2>/dev/null | sed -e '1s,.*(\([^)]*\)).*,\1,'} +-DEBIAN_ARCH = $(shell test -x `which dpkg-architecture 2>/dev/null` && dpkg-architecture -qDEB_BUILD_ARCH 2>/dev/null || echo i386) ++DEBIAN_ARCH = i386 + TARBALL = $(distdir).tar.gz + DEBDIR = .debian + STAMP = $(DEBDIR)/stamp --- /dev/null 2007-09-04 13:26:39.000000000 +0300 +++ files/patch-configure 2007-09-04 12:25:27.000000000 +0300 @@ -0,0 +1,13 @@ +--- configure.orig 2007-04-26 03:25:25.000000000 +0300 ++++ configure 2007-09-04 11:10:38.000000000 +0300 +@@ -22784,8 +22784,8 @@ + fi + + PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ +- import os; \ +- print apply(os.path.join, get_config_vars('LIBPL', 'LDLIBRARY'))"` ++ import os; import re; \ ++ print re.sub('\.a$', '.so', apply(os.path.join, get_config_vars('LIBPL', 'LDLIBRARY')))"` + fi + { echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5 + echo "${ECHO_T}$PYTHON_LDFLAGS" >&6; } --- libhid.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070904103802.19D093F40B>