Bug 6667 - <Synopsis of the problem (one line)>
Summary: <Synopsis of the problem (one line)>
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-05-17 18:50 UTC by sada
Modified: 1998-05-24 04:14 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (325 bytes, patch)
1998-05-17 18:50 UTC, sada
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sada 1998-05-17 18:50:00 UTC
	port japanese/kon sometimes need the directory '${PREFIX}/man/ja_JP.EUC/man1'
	before `make install', or fail to install the man page.

How-To-Repeat: 
	Setup a clean 2.2.6-RELEASE system (without any ports/packages), and do
	command-line:

		cd /usr/ports/japanese/kon; make install
Comment 1 Hideyuki Suzuki 1998-05-18 06:54:20 UTC
> 	port japanese/kon sometimes need the directory '${PREFIX}/man/ja_JP.EUC/man1'
> 	before `make install', or fail to install the man page.

Thanks for your problem report. :-)

This problem seems also due to the change of directory name from
ja_JP.EUC to ja (at the revision 1.17.2.12 and 1.37 of
src/etc/mtree/BSD.local.dist), which was requested in ports/5251.
And yes, the directory should be created for the case of PREFIX
other than /usr/local.

Can you check if the following patch fixes the problem?

Index: Makefile
===================================================================
RCS file: /pub/FreeBSD-CVS/ports/japanese/kon/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile	1997/09/19 19:27:45	1.13
+++ Makefile	1998/05/18 05:43:40
@@ -17,7 +17,7 @@
 MAINTAINER=	hideyuki@sat.t.u-tokyo.ac.jp
 
 MAN1=		kon.1
-MANLANG=	ja_JP.EUC
+MANLANG=	ja
 EXTRACT_ONLY=	kon2-0.3.tar.gz
 
 DOCDIR=		${PREFIX}/share/doc/kon2
@@ -29,7 +29,8 @@
 	@(cd ${WRKSRC}; ${MAKE} -f Makefile.FreeBSD config)
 
 post-install:
-	@${INSTALL_MAN} ${WRKSRC}/doc/kon.1 ${PREFIX}/man/ja_JP.EUC/man1
+	@${MKDIR} ${PREFIX}/man/ja/man1
+	@${INSTALL_MAN} ${WRKSRC}/doc/kon.1 ${PREFIX}/man/ja/man1
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCDIR}
 	@${INSTALL_DATA} ${WRKSRC}/doc/README ${WRKSRC}/doc/README.FreeBSD \


hideyuki
Comment 2 Hideyuki Suzuki 1998-05-18 10:45:48 UTC
> Can you check if the following patch fixes the problem?

Sorry, this will not work.  I hope that the following one is OK...

hideyuki


Index: Makefile
===================================================================
RCS file: /pub/FreeBSD-CVS/ports/japanese/kon/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile	1997/09/19 19:27:45	1.13
+++ Makefile	1998/05/18 05:43:40
@@ -17,7 +17,7 @@
 MAINTAINER=	hideyuki@sat.t.u-tokyo.ac.jp
 
 MAN1=		kon.1
-MANLANG=	ja_JP.EUC
+MANLANG=	ja
 EXTRACT_ONLY=	kon2-0.3.tar.gz
 
 DOCDIR=		${PREFIX}/share/doc/kon2
@@ -29,7 +29,8 @@
 	@(cd ${WRKSRC}; ${MAKE} -f Makefile.FreeBSD config)
 
 post-install:
-	@${INSTALL_MAN} ${WRKSRC}/doc/kon.1 ${PREFIX}/man/ja_JP.EUC/man1
+	@${MKDIR} ${PREFIX}/man/ja/man1
+	@${INSTALL_MAN} ${WRKSRC}/doc/kon.1 ${PREFIX}/man/ja/man1
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCDIR}
 	@${INSTALL_DATA} ${WRKSRC}/doc/README ${WRKSRC}/doc/README.FreeBSD \
Index: files/dotconfig
===================================================================
RCS file: /pub/FreeBSD-CVS/ports/japanese/kon/files/dotconfig,v
retrieving revision 1.4
diff -u -r1.4 dotconfig
--- dotconfig	1997/07/10 13:14:51	1.4
+++ dotconfig	1998/05/18 09:41:28
@@ -3,7 +3,7 @@
 TOPDIR	= %%PREFIX%%
 BINDIR	= $(TOPDIR)/bin
 LIBDIR	= $(TOPDIR)/etc
-MANDIR	= $(TOPDIR)/man/ja_JP.EUC/man1
+MANDIR	= $(TOPDIR)/man/ja/man1
 FONTDIR	= $(TOPDIR)/lib/fonts
 CONFIG_NAME = kon.cfg
 CFLAGS  += -DCONFIG_NAME=\"$(LIBDIR)/$(CONFIG_NAME)\"
Index: pkg/PLIST
===================================================================
RCS file: /pub/FreeBSD-CVS/ports/japanese/kon/pkg/PLIST,v
retrieving revision 1.4
diff -u -r1.4 PLIST
--- PLIST	1997/07/10 13:15:00	1.4
+++ PLIST	1998/05/18 09:40:57
@@ -3,6 +3,6 @@
 etc/kon.cfg
 lib/fonts/7x14rk.bdf.gz
 lib/fonts/k14.bdf.gz
-man/ja_JP.EUC/man1/kon.1.gz
+man/ja/man1/kon.1.gz
 share/doc/kon2/README
 share/doc/kon2/README.FreeBSD
Comment 3 Hideyuki Suzuki 1998-05-19 05:36:23 UTC
Sorry, I forgot to send this to gnats.

From: Hideyuki Suzuki <hideyuki@sat.t.u-tokyo.ac.jp>
Subject: Re: ports/6667: ports japanese/kon: install problem of man pages
Date: Tue, 19 May 1998 01:22:59 +0900

> >  *  And yes, the directory should be created for the case of PREFIX
> >  *  other than /usr/local.
> > 
> > I don't think that is necessary.  If you set PREFIX to something other 
> > than /usr/local, then mtree will be run on that ${PREFIX} (and the
> > entire hiererchy will be created) underneath.
> 
> OK, I was confused with the problem report.  So, all we need here is
> the following patch, since the directory is changed from ja_JP.EUC to ja.
> 
> hideyuki

Index: Makefile
===================================================================
RCS file: /pub/FreeBSD-CVS/ports/japanese/kon/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile	1997/09/19 19:27:45	1.13
+++ Makefile	1998/05/18 16:05:16
@@ -17,7 +17,7 @@
 MAINTAINER=	hideyuki@sat.t.u-tokyo.ac.jp
 
 MAN1=		kon.1
-MANLANG=	ja_JP.EUC
+MANLANG=	ja
 EXTRACT_ONLY=	kon2-0.3.tar.gz
 
 DOCDIR=		${PREFIX}/share/doc/kon2
@@ -29,7 +29,7 @@
 	@(cd ${WRKSRC}; ${MAKE} -f Makefile.FreeBSD config)
 
 post-install:
-	@${INSTALL_MAN} ${WRKSRC}/doc/kon.1 ${PREFIX}/man/ja_JP.EUC/man1
+	@${INSTALL_MAN} ${WRKSRC}/doc/kon.1 ${PREFIX}/man/ja/man1
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCDIR}
 	@${INSTALL_DATA} ${WRKSRC}/doc/README ${WRKSRC}/doc/README.FreeBSD \
Index: files/dotconfig
===================================================================
RCS file: /pub/FreeBSD-CVS/ports/japanese/kon/files/dotconfig,v
retrieving revision 1.4
diff -u -r1.4 dotconfig
--- dotconfig	1997/07/10 13:14:51	1.4
+++ dotconfig	1998/05/18 09:41:28
@@ -3,7 +3,7 @@
 TOPDIR	= %%PREFIX%%
 BINDIR	= $(TOPDIR)/bin
 LIBDIR	= $(TOPDIR)/etc
-MANDIR	= $(TOPDIR)/man/ja_JP.EUC/man1
+MANDIR	= $(TOPDIR)/man/ja/man1
 FONTDIR	= $(TOPDIR)/lib/fonts
 CONFIG_NAME = kon.cfg
 CFLAGS  += -DCONFIG_NAME=\"$(LIBDIR)/$(CONFIG_NAME)\"
Index: pkg/PLIST
===================================================================
RCS file: /pub/FreeBSD-CVS/ports/japanese/kon/pkg/PLIST,v
retrieving revision 1.4
diff -u -r1.4 PLIST
--- PLIST	1997/07/10 13:15:00	1.4
+++ PLIST	1998/05/18 09:40:57
@@ -3,6 +3,6 @@
 etc/kon.cfg
 lib/fonts/7x14rk.bdf.gz
 lib/fonts/k14.bdf.gz
-man/ja_JP.EUC/man1/kon.1.gz
+man/ja/man1/kon.1.gz
 share/doc/kon2/README
 share/doc/kon2/README.FreeBSD
Comment 4 Steve Price freebsd_committer freebsd_triage 1998-05-24 04:13:19 UTC
State Changed
From-To: open->closed

Suggested patch applied, thanks!