Bug 180850

Summary: package creation fails for net/ssvnc
Product: Ports & Packages Reporter: bartsch
Component: Individual Port(s)Assignee: Jason Helfman <jgh>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description bartsch 2013-07-25 18:00:00 UTC
package creation of net/ssvnc fails

output of poudriere log:
=======================<phase: package        >============================
===>  Building package for ssvnc-1.0.29
tar: man/man1/ssvnc-gui.1.gz: Cannot stat: No such file or directory
tar: man/man1/ssvncviewer.1.gz: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
*** Error code 1

Stop in /usr/ports/net/ssvnc.
===>  Cleaning for ssvnc-1.0.29
build of /usr/ports/net/ssvnc ended at Tue Jul 23 23:16:47 CEST 2013
build time: 00:01:05

Fix: 

adding "NO_MANCOMPRESS= yes" to Makefile seems to solve this issue for me, as
the uncompressed man files are in place.
Comment 1 dfilter service freebsd_committer freebsd_triage 2013-07-25 23:57:52 UTC
Author: jgh
Date: Thu Jul 25 22:57:40 2013
New Revision: 323676
URL: http://svnweb.freebsd.org/changeset/ports/323676

Log:
  - unbreak package creation
  - while here standardize on empty PORT_OPTIONS and convert USE_GMAKE to USES
  
  PR:		180850
  Reported by:	Alfred Bartsch <bartsch@dssgmbh.de>

Modified:
  head/net/ssvnc/Makefile

Modified: head/net/ssvnc/Makefile
==============================================================================
--- head/net/ssvnc/Makefile	Thu Jul 25 22:56:06 2013	(r323675)
+++ head/net/ssvnc/Makefile	Thu Jul 25 22:57:40 2013	(r323676)
@@ -20,13 +20,13 @@ RUN_DEPENDS=	stunnel:${PORTSDIR}/securit
 OPTIONS_DEFINE=	ULTRAFTP DOCS
 ULTRAFTP_DESC=	UltraVNC File Transfer support (Java required)
 
-USES=		imake:env
+USES=		imake:env gmake
 USE_XORG=	xi xmu xt xaw ice xpm xext sm
 USE_TK_WRAPPER=	yes
 USE_PERL5_RUN=	yes
-USE_GMAKE=	yes
 
-MAN1=		ssvnc-gui.1 ssvncviewer.1
+MAN1=		ssvnc.1 ssvncviewer.1
+NO_INSTALL_MANPAGES=	yes
 
 .include <bsd.port.options.mk>
 
@@ -37,7 +37,7 @@ PLIST_SUB+=	ULTRAFTP=""
 PLIST_SUB+=	ULTRAFTP="@comment "
 .endif
 
-.if empty(PORT_OPTIONS:MDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
 MAKE_ARGS+=	DOCS=""
 .endif
 
@@ -46,7 +46,7 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|[[:<:]]ssvnc[[:>:]]|ssvnc-gui|' ${WRKSRC}/man/man1/ssvnc.1
 	@${REINPLACE_CMD} -e 's|/usr/local/bin|${LOCALBASE}/bin|' \
 		-e 's|^CC =|CC ?=|' ${WRKSRC}/vncstorepw/Makefile
-.if empty(PORT_OPTIONS:MULTRAFTP)
+.if ! ${PORT_OPTIONS:MULTRAFTP}
 	@${REINPLACE_CMD} -e "s|sh -c 'type javac'|:|" \
 		-e "s|sh -c 'type jar'|:|" \
 		-e 's|cd $$(JSRC);|: |' \
@@ -59,5 +59,11 @@ do-configure:
 
 post-install:
 	@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${MAN1PREFIX}/man/man1
+.for man in ${MAN1}
+	${INSTALL_MAN} ${WRKSRC}/man/man1/${man} ${MAN1PREFIX}/man/man1
+.endfor
+.endif
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 2 Jason Helfman freebsd_committer freebsd_triage 2013-07-25 23:58:36 UTC
State Changed
From-To: open->closed

Fixed in r323676. Thanks for the report! 


Comment 3 Jason Helfman freebsd_committer freebsd_triage 2013-07-25 23:58:36 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jgh

Fixed in r323676. Thanks for the report!