From owner-freebsd-ports@FreeBSD.ORG Wed Sep 14 20:58:22 2005 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 804FB16A439; Wed, 14 Sep 2005 20:58:22 +0000 (GMT) (envelope-from skip.ford@verizon.net) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3173043D46; Wed, 14 Sep 2005 20:58:22 +0000 (GMT) (envelope-from skip.ford@verizon.net) Received: from pool-151-204-5-5.pskn.east.verizon.net ([151.204.5.5]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IMT0013MRL8ZME2@vms046.mailsrvcs.net>; Wed, 14 Sep 2005 15:58:21 -0500 (CDT) Date: Wed, 14 Sep 2005 16:58:19 -0400 From: Skip Ford In-reply-to: <1126730496.77533.34.camel@ikaros.oook.cz> To: Pav Lucistnik Mail-followup-to: Pav Lucistnik , freebsd-ports@FreeBSD.org Message-id: <20050914205818.GB888@lucy.pool-151-204-5-5.pskn.east.verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=unknown-8bit Content-transfer-encoding: 8BIT Content-disposition: inline References: <20050914203618.GA888@lucy.pool-151-204-5-5.pskn.east.verizon.net> <1126730496.77533.34.camel@ikaros.oook.cz> User-Agent: Mutt/1.4.2.1i Cc: freebsd-ports@FreeBSD.org Subject: Re: tar(1) versus unzip X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 20:58:22 -0000 Pav Lucistnik wrote: > Skip Ford píše v st 14. 09. 2005 v 16:36 -0400: > > Why do ports that need to unzip a file still depend on unzip? > > > > I uninstalled unzip way back when bsdtar(1) was able to unzip but > > several ports still try to install it even though the system's > > native tar can unzip their files just fine, at least with the > > zipped ports I use. > > > > Looks like the magic to handle it can just go into a file in > > ports/Mk with USE_ZIP, but my Makefile-writing skills aren't good > > enough to do it. I also don't know the version of FreeBSD that > > first included bsdtar with zip as the native tar. > > > > So, is there some reason unzip is still needed on all systems or > > has no one with the knowledge had the time to fix it? > > 1) Older FreeBSD revisions didn't have tar capable on unzipping, and no > one updated the ports infrastructure since. > > 2) Are you absolutely sure tar handle all obscurities that do happen in > real world zip files? No, I've done no testing at all, other than manually unzipping the few zipped ports I use ever since tar(1) could unzip, and unzipping the odd file here and there from usenet or email. I wouldn't say I've encountered a lot of zipped files, but tar(1) has worked for all of them. > 3) Some ports pass custom flags to unzip command, there would blow up > when replaced with tar, too. It'd be possible to depend on the unzip port for older FreeBSD versions and if there are custom flags, but I guess that's probably a lot of work just to avoid a dependency on a small port. Depending on it when there's no reason to depend on it just bugs me though. -- Skip