From sanewo@ba2.so-net.ne.jp  Fri Jul  6 07:20:29 2001
Return-Path: <sanewo@ba2.so-net.ne.jp>
Received: from mgate05.so-net.ne.jp (mgate05.so-net.ne.jp [210.139.254.152])
	by hub.freebsd.org (Postfix) with ESMTP
	id AC77C37B401; Fri,  6 Jul 2001 07:20:27 -0700 (PDT)
	(envelope-from sanewo@ba2.so-net.ne.jp)
Received: from mail.ba2.so-net.ne.jp (mail.ba2.so-net.ne.jp [210.139.254.21])
	by mgate05.so-net.ne.jp (8.8.8+3.0Wbeta9/3.6W01060506) with ESMTP id XAA05462;
	Fri, 6 Jul 2001 23:20:26 +0900 (JST)
Received: from ba2.so-net.ne.jp (pd300b1.tkyoea00.ap.so-net.ne.jp [61.211.0.177])
	by mail.ba2.so-net.ne.jp  with ESMTP id f66EKP426897;
	Fri, 6 Jul 2001 23:20:25 +0900 (JST)
Received: (from sanewo@localhost)
	by ba2.so-net.ne.jp (8.11.4/8.11.4) id f66EKOS77688;
	Fri, 6 Jul 2001 23:20:24 +0900 (JST)
	(envelope-from sanewo)
Message-Id: <200107061420.f66EKOS77688@ba2.so-net.ne.jp>
Date: Fri, 6 Jul 2001 23:20:24 +0900 (JST)
From: Takanori Saneto <sanewo@ba2.so-net.ne.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc: shige@freebsd.org
Subject: ports japanese/xv, graphics/xv-m17n build failure with manpages
X-Send-Pr-Version: 3.113

>Number:         28769
>Category:       ports
>Synopsis:       ports japanese/xv, graphics/xv-m17n build failure with manpages
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    sf
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 06 07:30:01 PDT 2001
>Closed-Date:    Tue Sep 11 08:47:41 PDT 2001
>Last-Modified:  Tue Sep 11 08:48:57 PDT 2001
>Originator:     Takanori Saneto
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
an individual
>Environment:
System: FreeBSD muse.sanewo 4.3-STABLE FreeBSD 4.3-STABLE #3: Fri Jul 6 01:38:21 JST 2001 sanewo@muse.sanewo:/export/usr.obj/usr/src/sys/MUSE i386

/usr/ports CVSup'ed as of today.
XFREE86_VERSION=4 in /etc/make.conf and XFree86-4.1.0 installed.

>Description:

Both japanese/xv and graphics/xv-m17n fail to build with following message:

make: don't know how to make xv.man. Stop

>How-To-Repeat:

# cd /usr/ports/{japanese/xv,graphics/xv-m17n}
# make

>Fix:

xv.man etc. should be copied from work/xv-3.10a/docs to work/xv-3.10a even when NOMAN is
defined because ``all'' target tries to build HTML manpages from man sources.

I've got two ideas to fix this problem.

Idea 1:

In post-patch target of graphics/xv/Makefile, when NOMAN is defined,
apply patch so that InstallManPage() targets are removed from
work/xv-3.10a/Imakefile.

--- Makefile.orig	Sat Jun 16 01:29:29 2001
+++ Makefile	Fri Jul  6 23:07:37 2001
@@ -62,6 +62,9 @@
 .for i in ${MAN1}
 	@${CP} ${WRKSRC}/docs/${i:R}.man ${WRKSRC}
 .endfor
+.if defined(NOMAN)
+	${PATCH} ${PATCH_ARGS} -p0 <${FILESDIR}/noman-patch
+.endif
 
 
 post-install:
--- /dev/null	Fri Jul  6 23:16:20 2001
+++ files/noman-patch	Fri Jul  6 23:08:40 2001
@@ -0,0 +1,15 @@
+--- Imakefile.orig	Fri Jul  6 23:08:11 2001
++++ Imakefile	Fri Jul  6 23:08:24 2001
+@@ -301,12 +301,6 @@
+ #endif
+ 
+  
+-InstallManPage(xv,$(MANDIR))
+-InstallManPage(bggen,$(MANDIR))
+-InstallManPage(xcmap,$(MANDIR))
+-InstallManPage(xvp2p,$(MANDIR))
+-InstallManPage(vdcomp,$(MANDIR))
+-
+ InstallNonExecFile(xv_mgcsfx.sample,$(MGCSFXDIR))
+ 
+ tar:


Idea 2:

Fix graphics/xv/Makefile so that it copies .man files even when NOMAN is defined.

--- Makefile.orig	Sat Jun 16 01:29:29 2001
+++ Makefile	Fri Jul  6 22:46:04 2001
@@ -40,8 +40,9 @@
 		png.4:${PORTSDIR}/graphics/png
 
 USE_IMAKE=	yes
-.if !defined(NOMAN)
-MAN1=		bggen.1 vdcomp.1 xcmap.1 xv.1 xvp2p.1
+MANlist=	bggen.1 vdcomp.1 xcmap.1 xv.1 xvp2p.1
+.if !defined(NOMAN)
+MAN1=		${MANlist}
 .endif
 
 XVDIST=		${DISTDIR}/${DIST_SUBDIR}
@@ -59,7 +60,7 @@
 	@${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.in
 	@${CAT} ${WRKSRC}/config.h.in | \
 		${SED} -e "s@%%LOCALBASE%%@${LOCALBASE}@" > ${WRKSRC}/config.h
-.for i in ${MAN1}
+.for i in ${MANlist}
 	@${CP} ${WRKSRC}/docs/${i:R}.man ${WRKSRC}
 .endfor
 
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->shige 
Responsible-Changed-By: ijliao 
Responsible-Changed-When: Fri Jul 6 09:45:21 PDT 2001 
Responsible-Changed-Why:  
over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28769 
State-Changed-From-To: open->closed 
State-Changed-By: sf 
State-Changed-When: Tue Sep 11 08:47:41 PDT 2001 
State-Changed-Why:  
I fixed it in other style. Thanks for submission. 


Responsible-Changed-From-To: shige->sf 
Responsible-Changed-By: sf 
Responsible-Changed-When: Tue Sep 11 08:47:41 PDT 2001 
Responsible-Changed-Why:  
Blame me if you find something wrong. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28769 
>Unformatted:
