Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2001 09:11:58 +0300
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        Akinori MUSHA <knu@iDaemons.org>
Cc:        portmgr@FreeBSD.org, ports@FreeBSD.org
Subject:   Re: bsd.port.mk: renaming cookie files
Message-ID:  <3B81FBAE.CCFF9E9B@FreeBSD.org>
References:  <86snernc9l.wl@archon.local.idaemons.org> <3B81389A.167A5788@FreeBSD.org> <86vgji4q72.wl@archon.local.idaemons.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Akinori MUSHA wrote:

> 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.
>
> <quote source="bsd.port.mk">
> # 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});\
> </quote>
>
> Which means ${WRKDIR} will be ${RM} -rf'ed if ${EXTRACT_COOKIE} does
> not exist. :)

Ah, Ok then. You have my `yes' for the change. ;)

-Maxim


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B81FBAE.CCFF9E9B>