From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Apr 26 07:20:04 2008 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 887C01065679 for ; Sat, 26 Apr 2008 07:20:04 +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 7D0C38FC16 for ; Sat, 26 Apr 2008 07:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3Q7K4Mw043516 for ; Sat, 26 Apr 2008 07:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3Q7K42F043515; Sat, 26 Apr 2008 07:20:04 GMT (envelope-from gnats) Date: Sat, 26 Apr 2008 07:20:04 GMT Message-Id: <200804260720.m3Q7K42F043515@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: "Scot W. Hetzel" Cc: Subject: Re: ports/122855: print/ghostscript-gpl does not save options X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Scot W. Hetzel" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2008 07:20:04 -0000 The following reply was made to PR ports/122855; it has been noted by GNATS. From: "Scot W. Hetzel" To: bug-followup@freebsd.org, marquis@roble.com Cc: Subject: Re: ports/122855: print/ghostscript-gpl does not save options Date: Sat, 26 Apr 2008 01:42:54 -0500 --Boundary-00=_v7sEI5NTYhh7ne0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline The attached patches allow both the ghostscript-gnu and ghostscript-gpl configure script to save the driver configuration to /var/db/ports/${UNIQUENAME}/options.local. --Boundary-00=_v7sEI5NTYhh7ne0 Content-Type: text/x-diff; charset="us-ascii"; name="ghostscript-gnu.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ghostscript-gnu.patch" Index: Makefile =================================================================== RCS file: /home/ncvs/ports/print/ghostscript-gnu/Makefile,v retrieving revision 1.128 diff -u -r1.128 Makefile --- Makefile 17 Apr 2008 23:19:48 -0000 1.128 +++ Makefile 26 Apr 2008 05:41:22 -0000 @@ -71,6 +71,7 @@ PLIST_SUB= GS_VERSION="${GS_VERSION}" SCRIPTS_ENV= GS_DRIVERS_LIST="${GS_DRIVERS_LIST}" \ + OPTIONSFILE_LOCAL="${OPTIONSFILE}.local" \ WITHOUT_X11="${WITHOUT_X11}" \ WITH_SVGALIB="${WITH_SVGALIB}" Index: scripts/configure =================================================================== RCS file: /home/ncvs/ports/print/ghostscript-gnu/scripts/configure,v retrieving revision 1.26 diff -u -r1.26 configure --- scripts/configure 8 Jun 2005 10:54:11 -0000 1.26 +++ scripts/configure 26 Apr 2008 05:37:43 -0000 @@ -239,7 +239,7 @@ "cljet5pr" "HP LaserJet 5/5M Color (old drv. with rotation hacks/flaws)" "$status_cljet5pr" \ "lj5mono" "HP LaserJet 5 and 6 family (PCL5 / PCL XL), bitmap" "$status_lj5mono" \ "lj5gray" "HP LaserJet 5 and 6 family, gray-scale bitmap" "$status_lj5gray" \ - "pj" "HP PaintJet XL driver " "$status_pj" \ + "pj" "HP PaintJet XL driver" "$status_pj" \ "pjetxl" "HP PaintJet XL driver (alternate)" "$status_pjetxl" \ "pjxl" "HP PaintJet XL color printer" "$status_pjxl" \ "paintjet" "HP PaintJet color printer (alternate)" "$status_paintjet" \ @@ -375,10 +375,18 @@ exec > ${WRKSRC}/Makefile echo "DEVICE_DEVS= \\" +DRIVERS_LIST="" +SEP="" for i; do echo " \$(DD)$i.dev \\" + DRIVERS_LIST="${DRIVERS_LIST}${SEP}${i}" + SEP=" " done echo "" cat "${WRKSRC}/src/unix-gcc.mak" + +if [ -d `dirname ${OPTIONSFILE_LOCAL}` ] ; then + echo "GS_DRIVERS_LIST=\"${DRIVERS_LIST}\"" > ${OPTIONSFILE_LOCAL} +fi --Boundary-00=_v7sEI5NTYhh7ne0 Content-Type: text/x-diff; charset="us-ascii"; name="ghostscript-gpl.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ghostscript-gpl.patch" Index: Makefile =================================================================== RCS file: /home/ncvs/ports/print/ghostscript-gpl/Makefile,v retrieving revision 1.162 diff -u -r1.162 Makefile --- Makefile 17 Apr 2008 23:19:48 -0000 1.162 +++ Makefile 26 Apr 2008 05:47:00 -0000 @@ -71,6 +71,7 @@ .include SCRIPTS_ENV= GS_DRIVERS_LIST="${GS_DRIVERS_LIST}" \ + OPTIONSFILE_LOCAL="${OPTIONSFILE}.local" \ WITHOUT_X11="${WITHOUT_X11}" \ WITH_SVGALIB="${WITH_SVGALIB}" \ WITH_ICONV="${WITH_ICONV}" Index: scripts/configure =================================================================== RCS file: /home/ncvs/ports/print/ghostscript-gpl/scripts/configure,v retrieving revision 1.44 diff -u -r1.44 configure --- scripts/configure 24 Mar 2008 03:50:08 -0000 1.44 +++ scripts/configure 26 Apr 2008 04:50:41 -0000 @@ -29,7 +29,7 @@ $iconvdevs \ md2k md5k \ md50Mono md50Eco md1xMono \ - appledmp iwhi iwlo iwlq hl7x0 bj10e \ + appledmp iwhi iwlo iwlq hl7x0 hl1240 hl1250 bj10e \ bj10v bj10vh bj200 bjc600 bjc800 \ bjccmyk bjccolor bjcgray bjcmono \ lbp8 \ @@ -137,7 +137,7 @@ "iwlo" "Apple Imagewriter, low-resolution mode" "$status_iwlo" \ "iwlq" "Apple Imagewriter LQ in 320 x 216 dpi mode" "$status_iwlq" \ "hl7x0" "Brother HL720 and HL730 (HL760=PCL), MFC6550MC Fax Machine" "$status_hl7x0" \ - "hl1240" "Brother HL-1030/240 (600x600 dpi) [contrib]" "$status_hl1250" \ + "hl1240" "Brother HL-1030/240 (600x600 dpi) [contrib]" "$status_hl1240" \ "hl1250" "Brother HL-1050/1070/1250/1270N (1200x600 dpi) [contrib]" "$status_hl1250" \ "bj10e" "Canon BubbleJet BJ-10e" "$status_bj10e" \ "bj10v" "Canon BubbleJet BJ-10v [contrib]" "$status_bj10v" \ @@ -259,7 +259,7 @@ "ljet4" "HP LaserJet 4 and 5L/5P (not real LJ5), defaults to 600 dpi" "$status_ljet4" \ "ljet4d" "HP LaserJet 4 (defaults to 600 dpi) with duplex" "$status_ljet4d" \ "lj4dith" "HP LaserJet 4 with Floyd-Steinberg dithering" "$status_lj4dith" \ - "ljet4pjl" "HP LaserJet 4V/4LJ Pro" "$status_let4pjl" \ + "ljet4pjl" "HP LaserJet 4V/4LJ Pro" "$status_ljet4pjl" \ "lj4dithp" "HP LaserJet 4V/4LJ Pro with dithering" "$status_lj4dithp" \ "cljet5" "HP LaserJet 5/5M Color (new driver, old=cljet5pr)" "$status_cljet5" \ "cljet5c" "HP LaserJet 5/5M Color Simple" "$status_cljet5c" \ @@ -430,10 +430,18 @@ exec > ${WRKSRC}/Makefile echo "DEVICE_DEVS= \\" +DRIVERS_LIST="" +SEP="" for i; do echo " \$(DD)$i.dev \\" + DRIVERS_LIST="${DRIVERS_LIST}${SEP}${i}" + SEP=" " done echo "" cat "${WRKSRC}/src/unix-gcc.mak" + +if [ -d `dirname ${OPTIONSFILE_LOCAL}` ] ; then + echo "GS_DRIVERS_LIST=\"${DRIVERS_LIST}\"" > ${OPTIONSFILE_LOCAL} +fi --Boundary-00=_v7sEI5NTYhh7ne0--