Subject: pkg/18721: pax not used quite right in lang/tcl post-install step
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 10/19/2002 15:53:50
>Number:         18721
>Category:       pkg
>Synopsis:       pax not used quite right in lang/tcl post-install step
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 19 12:54:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Greg A. Woods
>Release:        pkgsrc-current 2002/10/18
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD

>Description:

	The use of pax in the post-install step isn't quite right.  I
	don't remember if it causes actual problems, but it's just not
	quite right.

	Note though that pax should probably not be used here -- cp -R
	should probably be used instead (unless maybe cp -R is too
	broken on non-NetBSD platforms supported by pgksrc)

>How-To-Repeat:

>Fix:

Index: lang/tcl/Makefile
===================================================================
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/lang/tcl/Makefile,v
retrieving revision 1.16
diff -c -r1.16 Makefile
*** lang/tcl/Makefile	25 Aug 2002 18:39:28 -0000	1.16
--- lang/tcl/Makefile	13 Sep 2002 19:13:49 -0000
***************
*** 63,69 ****
  
  post-install:
  	${CHMOD} -R ugo-w ${WRKDIR}/man
! 	cd ${WRKDIR}; ${PAX} -rw man ${PREFIX}
  	${CHMOD} -R ug+rw ${WRKDIR}/man
  	cd ${PREFIX}/bin && ${LN} -s tclsh8.3 tclsh
  	${INSTALL_DATA_DIR} ${PREFIX}/include/tcl
--- 63,69 ----
  
  post-install:
  	${CHMOD} -R ugo-w ${WRKDIR}/man
! 	cd ${WRKDIR}/man; ${PAX} -rw . ${PREFIX}/man/
  	${CHMOD} -R ug+rw ${WRKDIR}/man
  	cd ${PREFIX}/bin && ${LN} -s tclsh8.3 tclsh
  	${INSTALL_DATA_DIR} ${PREFIX}/include/tcl
>Release-Note:
>Audit-Trail:
>Unformatted: