From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 4 10:40:02 2007 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 7A7AE16A419 for ; Tue, 4 Sep 2007 10:40:02 +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 4FD4313C45A for ; Tue, 4 Sep 2007 10:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l84Ae2kq069584 for ; Tue, 4 Sep 2007 10:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l84Ae2Un069581; Tue, 4 Sep 2007 10:40:02 GMT (envelope-from gnats) Resent-Date: Tue, 4 Sep 2007 10:40:02 GMT Resent-Message-Id: <200709041040.l84Ae2Un069581@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, Nikos Ntarmos Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C95A316A417 for ; Tue, 4 Sep 2007 10:38:22 +0000 (UTC) (envelope-from ntarmos@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id 3BFDC13C458 for ; Tue, 4 Sep 2007 10:38:22 +0000 (UTC) (envelope-from ntarmos@ceid.upatras.gr) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 6405AEB4695 for ; Tue, 4 Sep 2007 13:38:00 +0300 (EEST) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 58CE015855B for ; Tue, 4 Sep 2007 13:37:59 +0300 (EEST) Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vNYvi944MsMt for ; Tue, 4 Sep 2007 13:37:59 +0300 (EEST) Received: from ace.b020.ceid.upatras.gr (ppp235-080.dsl.hol.gr [89.210.235.80]) by mail.ceid.upatras.gr (Postfix) with ESMTP id A40481585D4 for ; Tue, 4 Sep 2007 13:37:58 +0300 (EEST) Received: by ace.b020.ceid.upatras.gr (Postfix, from userid 1001) id 19D093F40B; Tue, 4 Sep 2007 13:38:02 +0300 (EEST) Message-Id: <20070904103802.19D093F40B@ace.b020.ceid.upatras.gr> Date: Tue, 4 Sep 2007 13:38:02 +0300 (EEST) From: Nikos Ntarmos To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/116076: [patch] Have devel/libhid also install its python site-package X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nikos Ntarmos List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2007 10:40:02 -0000 >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 --- 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: