pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/49961: Properly handle bash shell in print/cups-filters



>Number:         49961
>Category:       pkg
>Synopsis:       Properly handle bash shell in print/cups-filters
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 10 15:00:00 +0000 2015
>Originator:     Leonardo Taccari
>Release:        NetBSD 7.99.18
>Organization:
Università Politecnica delle Marche
>Environment:
	
	
System: NetBSD boh 7.99.18 NetBSD 7.99.18 (GENERIC) #28: Mon Jun 8 14:11:04 CEST 2015 leot@boh:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	/bin/bash is hardcoded in print/cups-filters. On systems that do not has
	/bin/bash this make not possible to use print/cups with printers that
	uses foomatic-rip.
>How-To-Repeat:
	$ cd pkgsrc/print/cups-filters
	$ make install
	[ Configure CUPS in order to use a printer that needs foomatic-rip ]
>Fix:
	Please apply the attached trivial patch. While here I have also set
	a LICENSE. A possible commit message is also attached.


------------------8<------------------8<------------------8<------------------
Properly handle bash shell in foomatic-rip (previously hard-coded as
"/bin/bash"). While here also set a LICENSE. Bump PKGREVISION.
------------------8<------------------8<------------------8<------------------


------------------8<------------------8<------------------8<------------------
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/cups-filters/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- Makefile	25 Apr 2015 14:24:45 -0000	1.20
+++ Makefile	10 Jun 2015 14:47:54 -0000
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.20 2015/04/25 14:24:45 tnn Exp $
 
 DISTNAME=	cups-filters-1.0.68
-PKGREVISION=	1
+PKGREVISION=	2
 CATEGORIES=	print
 MASTER_SITES=	http://openprinting.org/download/cups-filters/
 EXTRACT_SUFX=	.tar.xz
@@ -9,7 +9,7 @@
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters
 COMMENT=	Backends, filters, and other software for cups
-#LICENSE=	# TODO: (see mk/license.mk)
+LICENSE=	gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND mit
 
 GNU_CONFIGURE=	yes
 USE_LIBTOOL=	yes
@@ -24,6 +24,12 @@
 
 REPLACE_BASH+=	filter/textonly
 
+SUBST_CLASSES+=		bash
+SUBST_STAGE.bash=	pre-build
+SUBST_MESSAGE.bash=	Fixing bash PATH.
+SUBST_FILES.bash=	filter/foomatic-rip/foomaticrip.c
+SUBST_SED.bash=		-e 's,/bin/bash,${TOOLS_PATH.bash},g'
+
 CONFIGURE_ARGS+=	--with-rcdir=${PREFIX}/share/examples/rc.d
 CONFIGURE_ARGS+=	--with-rclevels=""
 

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index