Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2014 15:31:09 -0800 (PST)
From:      Craig Leres <leres@ee.lbl.gov>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        leres@ee.lbl.gov
Subject:   ports/186501: [PATCH] math/gnuplot: fix "make package" without DOCS
Message-ID:  <201402052331.s15NV9Og036383@fun.ee.lbl.gov>
Resent-Message-ID: <201402052340.s15Ne0Z5042629@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402052331.s15NV9Og036383>