From owner-svn-ports-head@freebsd.org Sat Feb 25 11:29:27 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FCEDCEC74A; Sat, 25 Feb 2017 11:29:27 +0000 (UTC) (envelope-from woodsb02@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2855CC68; Sat, 25 Feb 2017 11:29:27 +0000 (UTC) (envelope-from woodsb02@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1PBTQRK009647; Sat, 25 Feb 2017 11:29:26 GMT (envelope-from woodsb02@FreeBSD.org) Received: (from woodsb02@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1PBTQmv009646; Sat, 25 Feb 2017 11:29:26 GMT (envelope-from woodsb02@FreeBSD.org) Message-Id: <201702251129.v1PBTQmv009646@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: woodsb02 set sender to woodsb02@FreeBSD.org using -f From: Ben Woods Date: Sat, 25 Feb 2017 11:29:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434795 - head/print/hplip X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2017 11:29:27 -0000 Author: woodsb02 Date: Sat Feb 25 11:29:26 2017 New Revision: 434795 URL: https://svnweb.freebsd.org/changeset/ports/434795 Log: print/hplip: Apply shebangfix to hpps and pstotiff filters This was causing some print jobs to fail with this error in /var/log/cups/error_log: [Job XX] env: python: No such file or directory [Job XX] PID XXXXX (/usr/local/libexec/cups/filter/hpps) stopped with status 127 (File too large) Tidy up a few other items in the port Makefile whilst here. MFH: 2017Q1 Modified: head/print/hplip/Makefile Modified: head/print/hplip/Makefile ============================================================================== --- head/print/hplip/Makefile Sat Feb 25 10:56:32 2017 (r434794) +++ head/print/hplip/Makefile Sat Feb 25 11:29:26 2017 (r434795) @@ -3,6 +3,7 @@ PORTNAME= hplip PORTVERSION= 3.16.11 +PORTREVISION= 1 CATEGORIES= print MASTER_SITES= SF @@ -21,9 +22,10 @@ RUN_DEPENDS= cups-filters>=0:print/cups- CONFLICTS_INSTALL= hpijs-[0-9]* INSTALL_TARGET= install-strip -USES= jpeg libtool pkgconfig python +USES= jpeg libtool pkgconfig python shebangfix USE_GNOME= pygobject USE_LDCONFIG= yes +SHEBANG_GLOB= *.py hpps pstotiff GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-cupsbackenddir=${PREFIX}/libexec/cups/backend \ @@ -37,32 +39,6 @@ CONFIGURE_ARGS= --with-cupsbackenddir=${ CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib -FILES4FIX= Makefile.in \ - base/codes.py \ - base/g.py \ - base/password.py \ - base/pkit.py \ - base/queues.py \ - base/services.py \ - base/utils.py \ - check.py \ - fax/backend/hpfax.py \ - fax/coverpages.py \ - fax/filters/pstotiff \ - hplip.list.in \ - installer/core_install.py \ - installer/dcheck.py \ - installer/pluginhandler.py \ - logcapture.py \ - prnt/cups.py \ - prnt/filters/hpps \ - prnt/hpcups/HPCupsFilter.cpp \ - prnt/hpijs/globals.cpp \ - prnt/hpijs/hpcupsfax.cpp \ - prnt/hpijs/hpijs.cpp \ - ui/devmgr4.py \ - ui4/devmgr5.py - OPTIONS_DEFINE= DOCS FAX SNMP SCAN X11 XSANE OPTIONS_DEFAULT=SNMP SCAN X11 OPTIONS_SUB= yes # FAX SCAN X11 @@ -93,21 +69,46 @@ XSANE_RUN_DEPENDS= xsane:graphics/xsane DOCS_CONFIGURE_ENABLE= doc-build post-patch: - ${REINPLACE_CMD} -e 's|-ldld||g; s|-ldl||g' \ + @${REINPLACE_CMD} -e 's|-ldld||g;' \ + -e 's|-ldl||g' \ -e 's,-lusb-1.0,-lusb,g' \ -e 's,libusb-1.0/libusb.h,libusb.h,g' \ ${WRKSRC}/configure \ ${WRKSRC}/Makefile.in - ${REINPLACE_CMD} -e '/[[:space:]]install-dist_rulesDATA/ s,install-dist_rulesDATA,,' \ + @${REINPLACE_CMD} -e '/[[:space:]]install-dist_rulesDATA/ s,install-dist_rulesDATA,,' \ -e '/[[:space:]]install-dist_rulessystemDATA/ s,install-dist_rulessystemDATA,,' \ ${WRKSRC}/Makefile.in - ${REINPLACE_CMD} -e 's,/etc/hp,${PREFIX}&,g' \ + @${REINPLACE_CMD} -e 's,/etc/hp,${PREFIX}&,g' \ -e 's,/etc/cups,${LOCALBASE}&,g' \ -e 's,/etc/init.d,${LOCALBASE}/etc/rc.d,g' \ -e 's,/etc/sane.d,${LOCALBASE}&,g' \ -e 's,/usr/share,${LOCALBASE}/share,g' \ -e 's,/usr/include,${LOCALBASE}/include,g' \ - ${FILES4FIX:S,^,${WRKSRC}/,} + ${WRKSRC}/Makefile.in \ + ${WRKSRC}/base/codes.py \ + ${WRKSRC}/base/g.py \ + ${WRKSRC}/base/password.py \ + ${WRKSRC}/base/pkit.py \ + ${WRKSRC}/base/queues.py \ + ${WRKSRC}/base/services.py \ + ${WRKSRC}/base/utils.py \ + ${WRKSRC}/check.py \ + ${WRKSRC}/fax/backend/hpfax.py \ + ${WRKSRC}/fax/coverpages.py \ + ${WRKSRC}/fax/filters/pstotiff \ + ${WRKSRC}/hplip.list.in \ + ${WRKSRC}/installer/core_install.py \ + ${WRKSRC}/installer/dcheck.py \ + ${WRKSRC}/installer/pluginhandler.py \ + ${WRKSRC}/logcapture.py \ + ${WRKSRC}/prnt/cups.py \ + ${WRKSRC}/prnt/filters/hpps \ + ${WRKSRC}/prnt/hpcups/HPCupsFilter.cpp \ + ${WRKSRC}/prnt/hpijs/globals.cpp \ + ${WRKSRC}/prnt/hpijs/hpcupsfax.cpp \ + ${WRKSRC}/prnt/hpijs/hpijs.cpp \ + ${WRKSRC}/ui/devmgr4.py \ + ${WRKSRC}/ui4/devmgr5.py @${REINPLACE_CMD} -e 's/umask(0)/umask(0o022)/' \ -e 's/umask(0o111)/umask(0o133)/' \ ${WRKSRC}/base/os_utils.py \ @@ -115,12 +116,6 @@ post-patch: ${WRKSRC}/fax/backend/hpfax.py \ ${WRKSRC}/hpdio.py \ ${WRKSRC}/installer/pluginhandler.py - ${REINPLACE_CMD} -e 's,%USB_INCLUDE%,/usr/include,' \ - ${WRKSRC}/installer/core_install.py - ${FIND} ${WRKSRC} -name '*.py' | ${XARGS} ${SED} -i '' \ - -e 's,^#!/usr/bin/python,#!${PYTHON_CMD},' \ - -e 's,^#!/usr/bin/env python,#!${PYTHON_CMD},' \ - -e 's,^#!/bin/env python,#!${PYTHON_CMD},' post-install: ${MV} ${STAGEDIR}${PREFIX}/etc/hp/hplip.conf \