Re: Mutt und Farben nach update kaputt

From: Oliver Fromme <olli(at)secnetix.de>
Date: Mon, 28 Jan 2002 21:24:29 +0100 (CET)

Christian Weisgerber <naddy(at)mips.inka.de> wrote:
> Tobias Henoeckl <hoeni(at)Space.Net> wrote:
> > Besonders interessant waere natuerlich eine derartige Vorgabe fuer
> > makeoptionen fuer ports, wenn sie global waere, also auch bei einem
> > make Lauf im Ports Verzeichnis Wirkung haette. (z.B. /etc/ports.conf?)
>
> Diese »Optionen« sind einfach make-Makros, man kann sie also in
> /etc/make.conf setzen. Allerdings taucht dann das Thema »namespace
> pollution« auf. Es ist nirgendwo garantiert, dass gleichnamige
> Makros im Basisystem oder in den Ports nicht schon mit anderer
> Bedeutung verwendet werden, was unvorhersehbare Auswirkungen haben
> kann. Gerade mit Allerweltsoptionen wie WITH_X11, die in zig Ports
> verwendet werden, wäre ich an so zentraler Stelle vorsichtig.

Man könnte natürlich Konstruktionen wie die folgende in
/etc/make.conf hineinschreiben:

.if $(.CURDIR) == /usr/ports/graphics/gd
WITH_X11=yes
.endif

.if $(.CURDIR) == /usr/ports/print/pcal
PAPERSIZE=A4
.endif

usw. Nicht schön, aber funktioniert.

Gruß
   Olli

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"All that we see or seem is just a dream within a dream" (E. A. Poe)
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 28 Jan 2002 - 21:24:34 CET

search this site