Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Mar 2003 08:11:07 +0100
From:      dirk.meyer@dinoex.sub.org (Dirk Meyer)
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.ORG
Subject:   Re: ports/48860: wrong dependency in bsd.port.mk
Message-ID:  <48Jp/BjOJm@dmeyer.dinoex.sub.org>
References:  <200303030558.h235wId8090437@freefall.freebsd.org> <200303030558.h235wId8090437@freefall.freebsd.org> <20030303060207.GB34662@rot13.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Kris Kennaway schrieb:,

> +.if ${PATCHFILES:M*.bz2}x != x && !exists(/usr/bin/bzip2)
> 
> This is incorrect and should use an OSVERSION test instead of
> existence of a local file.

well everywhere else it uses "exists" too:
so it is the same check as in the other sections:

$ grep bzip2 /usr/ports/Mk/bsd.port.mk
# USE_BZIP2             - Says that the port tarballs use bzip2, not gzip, for
# EXTRACT_CMD   - Command for extracting archive (default: "bzip2" if
.if exists(/usr/bin/bzip2)
BZIP2_CMD?=     /usr/bin/bzip2
BZIP2_CMD?=     ${LOCALBASE}/bin/bzip2
PATCH_DEPENDS+=         bzip2:${PORTSDIR}/archivers/bzip2
.if defined(USE_BZIP2) && !exists(/usr/bin/bzip2)
EXTRACT_DEPENDS+=       bzip2:${PORTSDIR}/archivers/bzip2

kind regards Dirk

- Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
- [dirk.meyer@dinoex.sub.org],[dirk.meyer@guug.de],[dinoex@FreeBSD.org]

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48Jp/BjOJm>