From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 5 23:40:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A8D7B6AC for ; Wed, 5 Feb 2014 23:40:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 82CC917B7 for ; Wed, 5 Feb 2014 23:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s15Ne0xu042630 for ; Wed, 5 Feb 2014 23:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s15Ne0Z5042629; Wed, 5 Feb 2014 23:40:00 GMT (envelope-from gnats) Resent-Date: Wed, 5 Feb 2014 23:40:00 GMT Resent-Message-Id: <201402052340.s15Ne0Z5042629@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, Craig Leres Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ACCAB1DF for ; Wed, 5 Feb 2014 23:31:13 +0000 (UTC) Received: from fun.ee.lbl.gov (fun.ee.lbl.gov [IPv6:2620:83:8000:102::ca]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7B152175E for ; Wed, 5 Feb 2014 23:31:13 +0000 (UTC) Received: from fun.ee.lbl.gov (localhost [127.0.0.1]) by fun.ee.lbl.gov (8.14.8/8.14.8) with ESMTP id s15NV9ZQ036384 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 5 Feb 2014 15:31:09 -0800 (PST) Received: (from leres@localhost) by fun.ee.lbl.gov (8.14.8/8.14.8/Submit) id s15NV9Og036383; Wed, 5 Feb 2014 15:31:09 -0800 (PST) Message-Id: <201402052331.s15NV9Og036383@fun.ee.lbl.gov> Date: Wed, 5 Feb 2014 15:31:09 -0800 (PST) From: Craig Leres To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/186501: [PATCH] math/gnuplot: fix "make package" without DOCS Cc: leres@ee.lbl.gov X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Craig Leres List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Feb 2014 23:40:00 -0000 >Number: 186501 >Category: ports >Synopsis: [PATCH] math/gnuplot: fix "make package" without DOCS >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Feb 05 23:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Craig Leres >Release: FreeBSD 9.1-RELEASE amd64 >Organization: Lawrence Berkeley National Laboratory >Environment: System: FreeBSD fun.ee.lbl.gov 9.1-RELEASE FreeBSD 9.1-RELEASE #12 r27: Wed Oct 30 16:07:54 PDT 2013 leres@fun.ee.lbl.gov:/sys/amd64/compile/LBL amd64 >Description: It's not possible to build a package for gnuplot if DOCS is not selected >How-To-Repeat: % cd /usr/ports/math/gnuplot && (rm -rf work ; make stage) [...] cd /usr/ports/math/gnuplot/work/gnuplot-4.6.3/demo && /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) && /usr/sbin/chown -Rh root:wheel $1 && /usr/bin/find -d $0 $2 -type d -exec chmod 755 $1/{} \; && /usr/bin/find -d $0 $2 -type f -exec chmod 444 $1/{} \;' -- . /usr/ports/math/gnuplot/work/stage/usr/local/share/examples/gnuplot cd /usr/ports/math/gnuplot/work/gnuplot-4.6.3/docs && install -o root -g wheel -m 444 gnuplot.txt gnuplot.dvi gnuplot.ps /usr/ports/math/gnuplot/work/stage/usr/local/share/doc/gnuplot install: gnuplot.txt: No such file or directory *** [post-install] Error code 71 Stop in /usr/ports/math/gnuplot. *** [stage] Error code 1 Stop in /usr/ports/math/gnuplot. >Fix: Please see attached patch. --- patch.txt begins here --- --- Makefile.orig 2014-02-05 15:25:46.000000000 -0800 +++ Makefile 2014-02-05 15:26:05.000000000 -0800 @@ -86,10 +86,12 @@ ${INSTALL_SCRIPT} ${WRKSRC}/src/lasergnu ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/demo && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR}/psdoc cd ${WRKSRC}/docs && ${INSTALL_DATA} gnuplot.txt gnuplot.dvi \ gnuplot.ps ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/docs/psdoc && ${INSTALL_DATA} README ps_* ${STAGEDIR}${DOCSDIR}/psdoc +.endif check test: build @( cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} check ; ) --- patch.txt ends here --- >Release-Note: >Audit-Trail: >Unformatted: