From owner-freebsd-ports@FreeBSD.ORG Mon Jan 23 00:22:34 2006 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 9506716A420 for ; Mon, 23 Jan 2006 00:22:34 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D5F443D45 for ; Mon, 23 Jan 2006 00:22:34 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 242201A3C1C; Sun, 22 Jan 2006 16:22:34 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 646585138C; Sun, 22 Jan 2006 19:22:33 -0500 (EST) Date: Sun, 22 Jan 2006 19:22:33 -0500 From: Kris Kennaway To: Ed Schouten Message-ID: <20060123002233.GA66371@xor.obsecurity.org> References: <20060122231840.GU79989@hoeg.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline In-Reply-To: <20060122231840.GU79989@hoeg.nl> User-Agent: Mutt/1.4.2.1i Cc: FreeBSD Ports Subject: Re: Removing the dependency on unzip - use bsdtar 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: Mon, 23 Jan 2006 00:22:34 -0000 --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 23, 2006 at 12:18:40AM +0100, Ed Schouten wrote: > Hello folks, >=20 > Some days ago, I read that libarchive supports zip files as well. > Because bsdtar(1) also uses libarchive, you can extract a regular zip > file with it. >=20 > Because most current FreeBSD releases have bsdtar (and older versions > can use bsdtar from ports), I was experimenting with replacing the > ports' dep on unzip with bsdtar. >=20 > The result: >=20 > http://g-rave.nl/junk/ports-and-bsdtar.diff >=20 > I already tested some random ports and it should already work with all > ports that only define USE_ZIP=3Dyes and do not tamper around with > UNZIP_CMD or EXTRACT_{BEFORE,AFTER}_ARGS. >=20 > I looked through the bsdtar manual page, but it has no option to unpack > text-files with UNIX-to-DOS newlines conversion, so I added > USE_DOS2UNIX=3Dyes to the quake3 port as a test. >=20 > Quite an amount of ports need patching to work properly with bsdtar > instead of unzip (different command arguments). I wouldn't mind spending > some time on it, if I could get some confirmation on beforehand that the > patch won't get trashed eventually. I wonder whether it's really worthwhile given the effort. Kris --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD1CHJWry0BWjoQKURAoe8AJ9Q47qaCYRqhJqMqUoWM9HhUCKgQwCgiUXi /ABmc1rUbgMNGs6n2ONSBK0= =mg9G -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx--