Subject: Re: gnu tar and cpio have been replaced with pax-based versions
To: Eric Gillespie <epg@pretzelnet.org>
From: Greg A. Woods <woods@weird.com>
List: current-users
Date: 10/17/2002 18:42:24
[ On Thursday, October 17, 2002 at 16:45:28 (-0500), Eric Gillespie wrote: ]
> Subject: Re: gnu tar and cpio have been replaced with pax-based versions 
>
> woods@weird.com (Greg A. Woods) writes:
> 
> > I'm guessing that you also didn't remove /usr/bin/tar and
> > /usr/bin/cpio and that for some reason you hae /usr/bin before
> > /bin in your PATH.
> 
> Why would you guess that?  I said i moved /usr/bin/tar out of the
> way.  Furthermore, if it were finding gnu tar, i wouldn't be
> seeing the error.

Sorry, I missed that -- and I thought I'd double checked twice over!  ;-)

> > try "make pakage PKG_VERBOSE=YES" and then you _should_ see
> > exactly what 'tar' command is being run by pkg_create.
> 
> Strangely, PKG_VERBOSE has no effect.

Bummer -- sorry about this too!

I have several features in my local source trees which combine to cause
pkg_create to print the command and parameters it uses.  First I added
this feature to pkg_create which is enabled by '-v':

*** perform.c   12 Jun 2001 21:27:07 -0000      1.1.1.7
--- perform.c   12 Aug 2001 21:04:14 -0000
***************
*** a,b ****
-  	if (Verbose)
-  		printf("Creating gzip'd %s ball in '%s'\n", TAR_CMD, tball);
--- x,y ----
+	if (Verbose) {
+ 		int i;
+ 
+  		printf("Creating gzip'd %s archive in '%s'\n", TAR_CMD, tball);
+ 		printf("    with the following command:\n");
+ 		printf("%s ", TAR_FULLPATHNAME);
+ 		for (i = 1; i < nargs; i++)
+ 			printf(" %s", args[i]);
+ 		printf("\n");
+ 	}


and then I made the following change to my local pkgsrc so that it would
only happen in PKG_VERBOSE was set.

*** mk/bsd.pkg.mk	13 Oct 2002 09:38:58 -0000	1.1067
--- mk/bsd.pkg.mk	16 Oct 2002 23:49:33 -0000
***************
*** 703,712 ****
  SIZE_ALL_FILE=		${WRKDIR}/.SizeAll
  
  .ifndef PKG_ARGS_COMMON
! PKG_ARGS_COMMON=	-v -c -${COMMENT:Q}" " -d ${DESCR} -f ${PLIST}
  PKG_ARGS_COMMON+=	-l -b ${BUILD_VERSION_FILE} -B ${BUILD_INFO_FILE}
  PKG_ARGS_COMMON+=	-s ${SIZE_PKG_FILE} -S ${SIZE_ALL_FILE}
  PKG_ARGS_COMMON+=	-P "`${MAKE} ${MAKEFLAGS} run-depends-list PACKAGE_DEPENDS_QUICK=true | ${SORT} -u`"
  .  ifdef CONFLICTS
  PKG_ARGS_COMMON+=	-C "${CONFLICTS}"
  .  endif
--- 807,819 ----
  SIZE_ALL_FILE=		${WRKDIR}/.SizeAll
  
  .ifndef PKG_ARGS_COMMON
! PKG_ARGS_COMMON=	-c -${COMMENT:Q}" " -d ${DESCR} -f ${PLIST}
  PKG_ARGS_COMMON+=	-l -b ${BUILD_VERSION_FILE} -B ${BUILD_INFO_FILE}
  PKG_ARGS_COMMON+=	-s ${SIZE_PKG_FILE} -S ${SIZE_ALL_FILE}
  PKG_ARGS_COMMON+=	-P "`${MAKE} ${MAKEFLAGS} run-depends-list PACKAGE_DEPENDS_QUICK=true | ${SORT} -u`"
+ .  if defined(PKG_VERBOSE)
+ PKG_ARGS_COMMON+=	-v
+ .  endif
  .  ifdef CONFLICTS
  PKG_ARGS_COMMON+=	-C "${CONFLICTS}"
  .  endif


Then finally of course I forgot about these changes and just expected
them to be standard fare!  :-)

-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>