Subject: pkg/7501: bzcat won't uncompress from symlink
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rhialto@polder.ubc.kun.nl>
List: netbsd-bugs
Date: 04/30/1999 04:42:51
>Number:         7501
>Category:       pkg
>Synopsis:       bzcat won't uncompress from symlink
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 30 04:05:00 1999
>Last-Modified:
>Originator:     Rhialto
>Organization:
	
>Release:        1.3.3
>Environment:
	
System: NetBSD vijver 1.3.3 NetBSD 1.3.3 (KLEI) #5: Thu Apr 29 16:17:37 CEST 1999 rhialto@vijver:/usr/src/sys/arch/i386/compile/KLEI i386


>Description:
	
	I was installing packages, with the 'distfiles' directory containing
	symlinks to distfiles on a cd-rom.

	When installing packages with source in .bz2 files (such
	as kde), bzcat refused to decompress the archives.

>How-To-Repeat:
	See Description.
>Fix:
	
	This patches the install system, but maybe bzip2 should be
	changed instead; it explictily does an lstat which is sometimes
	appropriate and sometimes not.

*** bsd.pkg.mk.orig	Fri Apr 30 12:00:24 1999
--- bsd.pkg.mk	Fri Apr 30 12:00:05 1999
***************
*** 282,288 ****
  BZCAT=			${LOCALBASE}/bin/bzcat
  BUILD_DEPENDS+=		${BZCAT}:${PKGSRCDIR}/archivers/bzip2
  .endif # !exists bzcat
! DECOMPRESS_CMD?=	${BZCAT}
  .else
  DECOMPRESS_CMD?=	${GZCAT}
  .endif
--- 282,288 ----
  BZCAT=			${LOCALBASE}/bin/bzcat
  BUILD_DEPENDS+=		${BZCAT}:${PKGSRCDIR}/archivers/bzip2
  .endif # !exists bzcat
! DECOMPRESS_CMD?=	${BZCAT} <
  .else
  DECOMPRESS_CMD?=	${GZCAT}
  .endif
>Audit-Trail:
>Unformatted: