From owner-freebsd-ports Mon Aug 20 10: 5:45 2001 Delivered-To: freebsd-ports@freebsd.org Received: from mail.musha.org (daemon.musha.org [61.122.44.178]) by hub.freebsd.org (Postfix) with ESMTP id 7D8CE37B406; Mon, 20 Aug 2001 10:05:38 -0700 (PDT) (envelope-from knu@iDaemons.org) Received: from archon.local.idaemons.org (archon.local.idaemons.org [192.168.1.32]) by mail.musha.org (Postfix) with ESMTP id 4EF064D835; Tue, 21 Aug 2001 02:05:37 +0900 (JST) Date: Tue, 21 Aug 2001 02:05:37 +0900 Message-ID: <86vgji4q72.wl@archon.local.idaemons.org> From: "Akinori MUSHA" To: Maxim Sobolev Cc: portmgr@FreeBSD.org, ports@FreeBSD.org Subject: Re: bsd.port.mk: renaming cookie files In-Reply-To: <3B81389A.167A5788@FreeBSD.org> References: <86snernc9l.wl@archon.local.idaemons.org> <3B81389A.167A5788@FreeBSD.org> User-Agent: Wanderlust/2.7.2 (Too Funky) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) Organization: Associated I. Daemons X-PGP-Public-Key: finger knu@FreeBSD.org X-PGP-Fingerprint: 081D 099C 1705 861D 4B70 B04A 920B EFC7 9FD9 E1EE MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org At Mon, 20 Aug 2001 19:19:38 +0300, sobomax wrote: > Nice idea, but I think that we can go further down the road and change WRKDIR to be > ${WRKDIRPREFIX}${.CURDIR}/work-${PKGNAME}. This way we will also protect packages > whose distfiles were updated without version bump (hence WRKSRC remains the same) and > those that doesn't have version number in their WRKSRC at all (e.g. XFree86) - you > know unpacking new version on top of older one can give number of weird problems > raging from make (1) not rebuiling all targets to configure script picking pieces of > all setup via config.cache file. For compatibility purposed bsd.ports.mk could be > tweaked to create work --> work-${PKGNAME}symlink in the ports's top directory. I suppose you don't need to go that far since the do-extract target will remove the ${WRKDIR} extirely before extracting a tarball. # Extract .if !target(do-extract) do-extract: @${RM} -rf ${WRKDIR} @${MKDIR} ${WRKDIR} @for file in ${EXTRACT_ONLY}; do \ if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\ Which means ${WRKDIR} will be ${RM} -rf'ed if ${EXTRACT_COOKIE} does not exist. :) -- / /__ __ Akinori.org / MUSHA.org / ) ) ) ) / FreeBSD.org / Ruby-lang.org Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp "Freeze this moment a little bit longer, make each impression a little bit stronger.. Experience slips away -- Time stand still" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message