Subject: install/28565: zgrep install conflict in usr.bin/grep & usr.bin/gzip
To: None <install-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jhein@timing.com>
List: netbsd-bugs
Date: 12/06/2004 18:09:01
>Number:         28565
>Category:       install
>Synopsis:       zgrep install conflict in usr.bin/grep & usr.bin/gzip
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 06 18:09:00 +0000 2004
>Originator:     John Hein
>Release:        HEAD
>Organization:
Timing Solutions Corp.
>Environment:
>Description:
usr.bin/grep and usr.bin/gzip both install zgrep.
grep installs a hard link.
gzip installs a script.

The hard link works fine, so I recommend just removing the zgrep install script.  I see no additional benefit to having it over the link.
>How-To-Repeat:

>Fix:
Apply following patch for usr.bin/gzip/Makefile.  Remove zgrep script from usr.bin/gzip.  Possibly add zgrep.1 to MAN / MLINKS in usr.bin/grep/Makefile.

--- usr.bin/gzip/Makefile.orig	Fri May 21 06:16:10 2004
+++ usr.bin/gzip/Makefile	Mon Dec  6 11:03:58 2004
@@ -1,26 +1,22 @@
 #	$NetBSD: Makefile,v 1.9 2004/05/21 12:16:10 agc Exp $
 
 PROG=		gzip
-MAN=		gzip.1 gzexe.1 zdiff.1 zforce.1 zgrep.1 zmore.1 znew.1
+MAN=		gzip.1 gzexe.1 zdiff.1 zforce.1 zmore.1 znew.1
 
 DPADD=		${LIBZ} ${LIBBZ2}
 LDADD=		-lz -lbz2
 WARNS=		3
 
-SCRIPTS=	gzexe zdiff zforce zgrep zmore znew
+SCRIPTS=	gzexe zforce zgrep zmore znew
 
 MLINKS+=	gzip.1 gunzip.1 \
 		gzip.1 gzcat.1 \
 		gzip.1 zcat.1 \
-		zdiff.1 zcmp.1 \
-		zgrep.1 zegrep.1 \
-		zgrep.1 zfgrep.1
+		zdiff.1 zcmp.1
 
 LINKS+=		${BINDIR}/gzip ${BINDIR}/gunzip \
 		${BINDIR}/gzip ${BINDIR}/gzcat \
 		${BINDIR}/gzip ${BINDIR}/zcat \
-		${BINDIR}/zdiff ${BINDIR}/zcmp \
-		${BINDIR}/zgrep ${BINDIR}/zegrep \
-		${BINDIR}/zgrep ${BINDIR}/zfgrep
+		${BINDIR}/zdiff ${BINDIR}/zcmp
 
 .include <bsd.prog.mk>