ports/185161: [PATCH] audio/musicpd: fix install without DOCS option

Anton Yuzhaninov ayuzhaninov at openstat.ru
Tue Dec 24 15:20:00 UTC 2013


>Number:         185161
>Category:       ports
>Synopsis:       [PATCH] audio/musicpd: fix install without DOCS option
>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:   Tue Dec 24 15:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Anton Yuzhaninov
>Release:        FreeBSD 10.0-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD hius.citrin.ru 10.0-PRERELEASE FreeBSD 10.0-PRERELEASE #10 r259719: Sun Dec 22 15:28:52 UTC
>Description:
I can't install audio/musicpd with the DOCS option turned off.
Error is:

===>  Checking if audio/musicpd already installed
===>   Registering installation for musicpd-0.18.5
pkg-static: lstat(/tmp/citrin/p/usr/ports/audio/musicpd/work/stage/usr/local/etc/musicpd.conf.sample): No such file or directory
*** Error code 74

Stop.
make[1]: stopped in /usr/ports/audio/musicpd
*** Error code 1

Port maintainer (crees at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_11 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

Config example should not be affected by DOCS option.

--- musicpd-0.18.5.patch begins here ---
diff -ruN /usr/ports//audio/musicpd/Makefile ./Makefile
--- /usr/ports//audio/musicpd/Makefile	2013-12-21 17:02:30.000000000 +0000
+++ ./Makefile	2013-12-24 15:00:25.000000000 +0000
@@ -268,13 +268,13 @@
 		${STAGEDIR}/${PREFIX}/man/man1/${PORTNAME}.1
 	@${INSTALL_MAN} ${WRKSRC}/doc/mpd.conf.5 \
 		${STAGEDIR}/${PREFIX}/man/man5/${PORTNAME}.conf.5
+	@${INSTALL_DATA} ${WRKSRC}/doc/mpdconf.example \
+		${STAGEDIR}/${PREFIX}/etc/${PORTNAME}.conf.sample
 .if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${STAGEDIR}/${DOCSDIR}
 .   for doc in ${PORTDOCS}
 	@${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}/${DOCSDIR}/
 .   endfor
-	@${INSTALL_DATA} ${WRKSRC}/doc/mpdconf.example \
-		${STAGEDIR}/${PREFIX}/etc/${PORTNAME}.conf.sample
 .endif
 
 .include <bsd.port.post.mk>
--- musicpd-0.18.5.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list