From taoka@infonets.hiroshima-u.ac.jp  Mon Jun 30 01:25:06 1997
Received: from diana.infonets.hiroshima-u.ac.jp (diana.infonets.hiroshima-u.ac.jp [133.41.33.53])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA12219
          for <freebsd-gnats-submit@freebsd.org>; Mon, 30 Jun 1997 01:24:08 -0700 (PDT)
Received: from cal.infonets.hiroshima-u.ac.jp (cal.infonets.hiroshima-u.ac.jp [133.41.33.61]) by diana.infonets.hiroshima-u.ac.jp (8.8.5/3.5Wpl5) with ESMTP id RAA17461 for <freebsd-gnats-submit@freebsd.org>; Mon, 30 Jun 1997 17:23:55 +0900 (JST)
Received: (from taoka@localhost) by cal.infonets.hiroshima-u.ac.jp (8.8.5/3.5Wpl5) id RAA11876; Mon, 30 Jun 1997 17:23:55 +0900 (JST)
Message-Id: <199706300823.RAA11876@cal.infonets.hiroshima-u.ac.jp>
Date: Mon, 30 Jun 1997 17:23:55 +0900 (JST)
From: taoka@infonets.hiroshima-u.ac.jp
Reply-To: taoka@infonets.hiroshima-u.ac.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: port japanese/prn: bug fix
X-Send-Pr-Version: 3.2

>Number:         3990
>Category:       ports
>Synopsis:       port japanese/prn: bug fix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 30 01:30:01 PDT 1997
>Closed-Date:    Tue Jul 1 17:36:11 PDT 1997
>Last-Modified:  Tue Jul  1 17:37:00 PDT 1997
>Originator:     Satoshi Taoka
>Release:        FreeBSD 2.2.1-RELEASE i386
>Organization:
Hiroshima Univ. in Japane
>Environment:

	

>Description:

japanese/prn/pkg/PLIST has a problem.

>How-To-Repeat:

	

>Fix:
	

diff -ur /usr/ports/japanese/prn/pkg/PLIST ./prn/pkg/PLIST
--- /usr/ports/japanese/prn/pkg/PLIST	Mon Jun 23 23:31:11 1997
+++ ./prn/pkg/PLIST	Thu Jun 26 12:47:38 1997
@@ -1,5 +1,6 @@
 bin/prn
-bin/cprn
+@exec ln -sf %D/%F %B/cprn
+@unexec rm %B/cprn
 bin/cmt
 bin/psconv
 lib/prn/cmtdefs
>Release-Note:
>Audit-Trail:

From: max@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org, taoka@infonets.hiroshima-u.ac.jp
Cc: max@wide.ad.jp
Subject: Re: ports/3990: port japanese/prn: bugfix
Date: Mon, 30 Jun 1997 20:44:39 +0900 (JST)

 >japanese/prn/pkg/PLIST has a problem.
 >
 >   Fix
 >          
 >
 >diff -ur /usr/ports/japanese/prn/pkg/PLIST ./prn/pkg/PLIST
 >--- /usr/ports/japanese/prn/pkg/PLIST   Mon Jun 23 23:31:11 1997
 >+++ ./prn/pkg/PLIST     Thu Jun 26 12:47:38 1997
 >@@ -1,5 +1,6 @@
 > bin/prn
 >-bin/cprn
 >+@exec ln -sf %D/%F %B/cprn
 >+@unexec rm %B/cprn
 > bin/cmt
 > bin/psconv
 > lib/prn/cmtdefs
 
 What exactly is the problem?  This port in ports-current seems to
 installs the symbolic link correctly and the package
 installs/deinstall the link appropriately, though.
 
 Max

From: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
To: max@freebsd.org
Cc: freebsd-gnats-submit@freebsd.org, max@wide.ad.jp
Subject: Re: ports/3990: port japanese/prn: bugfix
Date: Tue, 01 Jul 1997 09:17:43 +0900

 If you make this package in setting PREFIX to '/usr/local', then
 the tarboll is the following.
 
 # tar tvfz jp-prn-1.0.tgz 
 -rw-r--r-- root/bin        804 Jul  1 08:54 1997 +CONTENTS
 -rw-r--r-- root/bin         77 Jul  1 08:54 1997 +COMMENT
 -rw-r--r-- root/bin        357 Jul  1 08:54 1997 +DESC
 -r--r--r-- root/wheel     3288 Jun 19 13:03 1997 +MTREE_DIRS
 -rwxr-xr-x root/bin      16384 Jul  1 08:54 1997 bin/prn
 lrwxr-xr-x bin/bin           0 Jul  1 08:54 1997 bin/cprn -> /usr/local/bin/prn
 -rwxr-xr-x root/bin      24576 Jul  1 08:54 1997 bin/cmt
 -rwxr-xr-x root/bin      20480 Jul  1 08:54 1997 bin/psconv
 -rw-r--r-- root/bin      14937 Jul  1 08:54 1997 lib/prn/cmtdefs
 -rw-r--r-- root/bin       3663 Jul  1 08:54 1997 man/ja_JP.EUC/man1/prn.1.gz
 -rw-r--r-- root/bin         81 Jul  1 08:54 1997 man/ja_JP.EUC/man1/cprn.1.gz
 -rw-r--r-- root/bin       2269 Jul  1 08:54 1997 man/ja_JP.EUC/man1/cmt.1.gz
 -rw-r--r-- root/bin       2097 Jul  1 08:54 1997 man/ja_JP.EUC/man1/psconv.1.gz
 -rw-r--r-- root/bin       3773 Jul  1 08:54 1997 man/ja_JP.EUC/man5/cmtdefs.5.gz
 
 'bin/cprn' is a symbolic link to '/usr/local/bin/prn'. If you install
 by executing 'pkg_add -p /share jp-prn-1.0.tar.gz' for such the
 package, /share/bin/cprn is a link to '/usr/local/bin/prn'.  Note that
 PREFIX is '/share'.
 
 By the following patch, the problem can be solved.
 
 > >diff -ur /usr/ports/japanese/prn/pkg/PLIST ./prn/pkg/PLIST
 > >--- /usr/ports/japanese/prn/pkg/PLIST   Mon Jun 23 23:31:11 1997
 > >+++ ./prn/pkg/PLIST     Thu Jun 26 12:47:38 1997
 > >@@ -1,5 +1,6 @@
 > > bin/prn
 > >-bin/cprn
 > >+@exec ln -sf %D/%F %B/cprn
 > >+@unexec rm %B/cprn
 > > bin/cmt
 > > bin/psconv
 > > lib/prn/cmtdefs
 
 
 Thanks.
 
 S. Taoka

From: Masafumi NAKANE/=?ISO-2022-JP?B?GyRCQ2Y6LDJtSjgbKEI=?= <max@wide.ad.jp>
To: taoka@infonets.hiroshima-u.ac.jp
Cc: freebsd-gnats-submit@FreeBSD.ORG, max@wide.ad.jp
Subject: Re: ports/3990: port japanese/prn: bugfix
Date: Tue, 01 Jul 1997 18:04:23 +0900

      > If you make this package in setting PREFIX to '/usr/local',
      > then the tarboll is the following.  lrwxr-xr-x bin/bin 0 Jul 1
      > 08:54 1997 bin/cprn -> /usr/local/bin/prn
 
      > 'bin/cprn' is a symbolic link to '/usr/local/bin/prn'. If you
      > install by executing 'pkg_add -p /share jp-prn-1.0.tar.gz' for
      > such the package, /share/bin/cprn is a link to '
      > /usr/local/bin/prn'.  Note that PREFIX is '/share'.
 
 Ok, I see your point.  However, I would rather solve this by making
 bin/cprn point to prn, i.e., following modification to patch-aa.
 
 The advantage of this method is that we can keep the PLIST simple and
 we don't have to execute ln when doing pkg_{add,install}.
 
 Index: patches/patch-aa
 ===================================================================
 RCS file: /home/ncvs/ports/japanese/prn/patches/patch-aa,v
 retrieving revision 1.1.1.1
 diff -u -r1.1.1.1 patch-aa
 --- patch-aa	1997/06/23 14:31:12	1.1.1.1
 +++ patch-aa	1997/07/01 08:55:01
 @@ -1,5 +1,5 @@
  *** Makefile.orig	Wed May 11 17:00:58 1994
 ---- Makefile	Mon Jun 23 23:15:39 1997
 +--- Makefile	Tue Jul  1 17:44:49 1997
  ***************
  *** 25,35 ****
    #	@(#)Makefile 2.3 (Y.Tonooka) 5/11/94
 @@ -51,8 +51,28 @@
                 TAGS = ctags
                ETAGS = etags
  ***************
 -*** 98,103 ****
 ---- 102,108 ----
 +*** 91,103 ****
 +  
 +  $(BINPATH)/cprn: $(BINPATH)/prn
 +  	if [ $@ ]; then $(RM) $@; fi
 +! 	$(LN) $(BINPATH)/prn $@
 +  
 +  $(BINPATH)/cmt: cmt.c defs.c euc.c reg.y
 +  	$(MAKE) cmt
 +  	$(INSTALL) -s cmt $(BINPATH)
 +  
 +  $(LIBPATH)/cmtdefs: cmtdefs
 +  	$(CP) cmtdefs $@; chmod 644 $@
 +  
 +  $(BINPATH)/psconv: psconv.c
 +--- 95,108 ----
 +  
 +  $(BINPATH)/cprn: $(BINPATH)/prn
 +  	if [ $@ ]; then $(RM) $@; fi
 +! 	$(LN) prn $@
 +  
 +  $(BINPATH)/cmt: cmt.c defs.c euc.c reg.y
 +  	$(MAKE) cmt
    	$(INSTALL) -s cmt $(BINPATH)
    
    $(LIBPATH)/cmtdefs: cmtdefs
 
 
 Thoughts?
 
      Cheers,
 Max

From: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
To: max@wide.ad.jp
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: ports/3990: port japanese/prn: bugfix
Date: Wed, 02 Jul 1997 09:19:17 +0900

 > 
 > The advantage of this method is that we can keep the PLIST simple and
 > we don't have to execute ln when doing pkg_{add,install}.
 
 I see. Please apply the following (your) patch to patch-aa.
 
 Thanks.
 
 S. Taoka
 
 > 
 > Index: patches/patch-aa
 > ===================================================================
 > RCS file: /home/ncvs/ports/japanese/prn/patches/patch-aa,v
 > retrieving revision 1.1.1.1
 > diff -u -r1.1.1.1 patch-aa
 > --- patch-aa	1997/06/23 14:31:12	1.1.1.1
 > +++ patch-aa	1997/07/01 08:55:01
 > @@ -1,5 +1,5 @@
 >  *** Makefile.orig	Wed May 11 17:00:58 1994
 > ---- Makefile	Mon Jun 23 23:15:39 1997
 
 cut cut cut cut
 
 > +  
 > +  $(BINPATH)/cprn: $(BINPATH)/prn
 > +  	if [ $@ ]; then $(RM) $@; fi
 > +! 	$(LN) prn $@
 > +  
 > +  $(BINPATH)/cmt: cmt.c defs.c euc.c reg.y
 > +  	$(MAKE) cmt
 >    	$(INSTALL) -s cmt $(BINPATH)
 >    
 >    $(LIBPATH)/cmtdefs: cmtdefs
State-Changed-From-To: open->closed 
State-Changed-By: max 
State-Changed-When: Tue Jul 1 17:36:11 PDT 1997 
State-Changed-Why:  
The problem fixed by new patch-aa (rev.1.2.) 
>Unformatted:
