From owner-freebsd-ports@FreeBSD.ORG Sun Jan 22 23:18:42 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 84E6B16A41F for ; Sun, 22 Jan 2006 23:18:42 +0000 (GMT) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [83.98.131.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 237DB43D69 for ; Sun, 22 Jan 2006 23:18:41 +0000 (GMT) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 2E1E117061; Mon, 23 Jan 2006 00:18:40 +0100 (CET) Date: Mon, 23 Jan 2006 00:18:40 +0100 From: Ed Schouten To: FreeBSD Ports Message-ID: <20060122231840.GU79989@hoeg.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VvnGyWaJ9JuxX38U" Content-Disposition: inline User-Agent: Mutt/1.5.11 Subject: 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: Sun, 22 Jan 2006 23:18:42 -0000 --VvnGyWaJ9JuxX38U Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello folks, 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. 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. The result: http://g-rave.nl/junk/ports-and-bsdtar.diff 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. 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. 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. Yours, --=20 Ed Schouten WWW: http://g-rave.nl/ --VvnGyWaJ9JuxX38U Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD1BLQmVI4SHXwmhERAmfEAJ92c666nYwybKsFo82G8x1lQrGWOgCgrkhH vwx83HUDDO4Z1KN7PKYvZgg= =1qu5 -----END PGP SIGNATURE----- --VvnGyWaJ9JuxX38U--