From owner-freebsd-arch@FreeBSD.ORG Mon Oct 18 17:49:28 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A580C16A4CE for ; Mon, 18 Oct 2004 17:49:28 +0000 (GMT) Received: from mailserv1.neuroflux.com (mailserv1.neuroflux.com [204.228.228.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1ED5243D41 for ; Mon, 18 Oct 2004 17:49:28 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 35696 invoked by uid 89); 18 Oct 2004 17:57:10 -0000 Received: from unknown (HELO www2.neuroflux.com) (127.0.0.1) by localhost with SMTP; 18 Oct 2004 17:57:10 -0000 Received: from 208.4.77.15 (SquirrelMail authenticated user ryans@gamersimpact.com); by www2.neuroflux.com with HTTP; Mon, 18 Oct 2004 11:57:10 -0600 (MDT) Message-ID: <65010.208.4.77.15.1098122230.squirrel@208.4.77.15> In-Reply-To: <20041018173043.GE5179@dragon.nuxi.com> References: <4171F702.9020405@gamersimpact.com> <4173DD4F.1030501@criticalmagic.com> <20041018173043.GE5179@dragon.nuxi.com> Date: Mon, 18 Oct 2004 11:57:10 -0600 (MDT) From: "Ryan Sommers" To: obrien@freebsd.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20041018115710_45604" X-Priority: 3 (Normal) Importance: Normal X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: Ryan Sommers cc: Richard Coleman cc: arch@freebsd.org Subject: Re: Removal of /stand Directory X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 17:49:28 -0000 ------=_20041018115710_45604 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit David O'Brien said: > On Mon, Oct 18, 2004 at 11:12:15AM -0400, Richard Coleman wrote: >> Of course, I still find it odd that tar and cpio are in /usr/bin, but >> pax is in /bin. But that's a bikeshed for another day when we are >> really bored. > > pax(1) can read (ie, restore from tape) both tar and cpio archives. So > why litter /bin up with 3 programs when 1 will do? I tend to agree. Adding bsdtar to the root filesystem would mean not only bringing in bsdtar but also 2 more shared libraries /usr/lib/libarchive.so and /usr/lib/libbz2.so. We can just bring gzip into /bin and get all the functionality of cpio, bsdtar and pax without adding 2 extra libraries. This also will allow us to not only unarchive gzipped archives but also decompress single files, something I don't think bsdtar -z can do. Attached is a tarball of the modifications. To add it to your source tree: cd /usr/src (or your respective directory) ; tar zxvf /path/to/gzip-to-bin.tgz ; rm -rf gnu/usr.bin/gzip This is strictly a Makefile change to the Makefiles in gnu and subdirs and rescue/rescue/Makefile. Following is the patch for existing Makefiles (note, don't try to build off it because it doesn't take into account the directory move: Index: Makefile =================================================================== RCS file: /home/ncvs/src/gnu/Makefile,v retrieving revision 1.36 diff -u -r1.36 Makefile --- Makefile 5 Jun 2002 17:02:37 -0000 1.36 +++ Makefile 18 Oct 2004 14:23:19 -0000 @@ -1,6 +1,6 @@ # @(#)Makefile 5.33.1.1 (Berkeley) 5/6/91 # $FreeBSD: src/gnu/Makefile,v 1.36 2002/06/05 17:02:37 obrien Exp $ -SUBDIR= lib usr.bin +SUBDIR= lib usr.bin bin .include Index: usr.bin/Makefile =================================================================== RCS file: /home/ncvs/src/gnu/usr.bin/Makefile,v retrieving revision 1.82 diff -u -r1.82 Makefile --- usr.bin/Makefile 7 Jul 2004 17:24:30 -0000 1.82 +++ usr.bin/Makefile 18 Oct 2004 14:23:19 -0000 @@ -13,7 +13,6 @@ ${_gperf} \ grep \ ${_groff} \ - gzip \ man \ patch \ rcs \ Index: Makefile =================================================================== RCS file: /home/ncvs/src/rescue/rescue/Makefile,v retrieving revision 1.28 diff -u -r1.28 Makefile --- Makefile 16 Aug 2004 03:16:48 -0000 1.28 +++ Makefile 18 Oct 2004 14:31:56 -0000 @@ -92,6 +92,11 @@ CRUNCH_SUPPRESS_LINK_-tcsh= 1 .endif +CRUNCH_SRCDIRS+= gnu/bin +CRUNCH_PROGS_gnu/bin+= gzip +CRUNCH_ALIAS_gzip= gunzip gzcat zcat + + ################################################################### # Programs from standard /sbin # @@ -186,9 +191,6 @@ CRUNCH_SRCDIRS+= usr.bin CRUNCH_SRCDIRS+= gnu/usr.bin -CRUNCH_PROGS_gnu/usr.bin+= gzip -CRUNCH_ALIAS_gzip= gunzip gzcat zcat - CRUNCH_PROGS_usr.bin+= bzip2 CRUNCH_ALIAS_bzip2= bunzip2 bzcat CRUNCH_LIBS+= -lbz2 I tested this against a (build|install)world this morning. -- Ryan Sommers ryans@gamersimpact.com ------=_20041018115710_45604--