From owner-freebsd-ports@FreeBSD.ORG Mon Jan 9 21:45:08 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCD73106564A for ; Mon, 9 Jan 2012 21:45:08 +0000 (UTC) (envelope-from alexkozlov0@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5FB108FC13 for ; Mon, 9 Jan 2012 21:45:07 +0000 (UTC) Received: by eekc50 with SMTP id c50so2959865eek.13 for ; Mon, 09 Jan 2012 13:45:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition; bh=/rYHqOx/V4d86eV4BS2OGnGeeZzNCrfumVKIzl6/cvc=; b=vSxWgnqEAttcX3dltXZizp9br6lMqUOJZ+jTk0UsI9l0a4URd53+v1OQgsQx8R7dAg LUUdff81yjLDqkox/LqszT4Vt8N0Js/FiJY2vX5ysuuxzPKMyRdYptILX2JxNeY5pXV6 LJIWCOouhcbN46n2+Sb9qjspc9hT075uHREcA= Received: by 10.213.114.84 with SMTP id d20mr1944971ebq.100.1326144123103; Mon, 09 Jan 2012 13:22:03 -0800 (PST) Received: from ravenloft.kiev.ua (ravenloft.kiev.ua. [94.244.131.95]) by mx.google.com with ESMTPS id 15sm44613044eeu.1.2012.01.09.13.21.59 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 09 Jan 2012 13:22:01 -0800 (PST) Sender: Alex Kozlov Date: Mon, 9 Jan 2012 23:21:28 +0200 From: Alex Kozlov To: ports@freebsd.org, spam@rm-rf.kiev.ua Message-ID: <20120109212128.GA53155@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Cc: Subject: Re: archivers/zip in 9.x: 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, 09 Jan 2012 21:45:08 -0000 On Tue, Jan 10, 2012 at 01:06:04AM +0400, Ruslan Mahmatkhanov wrote: > Michael Scheidell wrote on 10.01.2012 00:30: >> I think I saw something in the list that FreeBSD 9.x has zip already >> built in? so, ports that need 'zip' won't need zip? >> >> for maintainers, they should use something like: >> >> USE_ZIP= yes >> >> to: >> >> if ${OSVERSION} <= 900000 >> USE_ZIP= yes >> .endif >> >> and/or BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip >> >> (at what OSVERSION was zip included in the base?) > unzip, not zip. I believe it should be handled in bsd.port.mk like it > done for USE_XZ. Something like: > > .if defined(USE_ZIP) && ${OSVERSION} < 900000 > EXTRACT_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip > .endif > > Correct OSVERSION should be used instead of 900000. There is also should > be some logic for UNZIP_CMD. A few things need to be done before it will be possible to use the native unzip in CURRENT: 1) pr153429 2) mfv libarchive's seekable zip reader 3) patch to bsd.port.mk which implements USE_ZIP = yes|native|infozip 4) few tinderbox runs -- Adios