From owner-freebsd-current@FreeBSD.ORG Wed Jul 6 20:00:30 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6A2416A41C for ; Wed, 6 Jul 2005 20:00:30 +0000 (GMT) (envelope-from poncki.lists@axelspringer.com.pl) Received: from mx1.axelspringer.com.pl (pigeon.axelspringer.com.pl [195.177.210.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38A2043D46 for ; Wed, 6 Jul 2005 20:00:29 +0000 (GMT) (envelope-from poncki.lists@axelspringer.com.pl) Received: from content-filter.axelspringer.com.pl (localhost [127.0.0.1]) by mx1-incoming-content-filter.axelspringer.com.pl (Postfix) with ESMTP id 9B65125DD2 for ; Wed, 6 Jul 2005 22:00:27 +0200 (CEST) Received: from mx1-outgoing-content-filter.axelspringer.com.pl ([127.0.0.1]) by content-filter.axelspringer.com.pl (content-filter.axelspringer.com.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 96489-08-16 for ; Wed, 6 Jul 2005 22:00:25 +0200 (CEST) Received: from xponcki.lan (xponcki.lan [192.168.0.230]) by mx1.axelspringer.com.pl (Postfix) with ESMTP id B8D3725DDA for ; Wed, 6 Jul 2005 22:00:25 +0200 (CEST) Date: Wed, 6 Jul 2005 22:02:25 +0200 From: Tomasz Pilat X-Mailer: The Bat! Professional (v3.0.2.10) Organization: http://poncki.freebsd.pl/ X-Priority: 3 (Normal) Message-ID: <168519096.20050706220225@axelspringer.com.pl> To: current@freebsd.org In-Reply-To: <200507061116.17267.thierry@herbelot.com> References: <20041102222000.GA65845@xor.obsecurity.org> <20050706073205.GA942@galgenberg.net> <20050706085737.GT73907@obiwan.tataz.chchile.org> <200507061116.17267.thierry@herbelot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-and-Spam-Scanned: amavisd-new-2.3.1 (20050509) + SpamAssassin + Kaspersky Anti-Virus for FreeBSD @ axelspringer.com.pl Cc: Subject: Re: HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tomasz Pilat List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2005 20:00:30 -0000 Thierry, Wednesday, July 6, 2005, 11:16:15 AM, you wrote: >> > Whats wrong with >> > >> > .if ${.CURDIR:M/usr/ports*} >> > CFLAGS= -O -pipe -foo >> > .endif >> > >> > in /etc/make.conf? >> >> Nothing wrong, but it's too tricky for end users. Only a small amount >> of person using FreeBSD knows make(1) enough to do this : this requires >> to know what is ${.CURDIR} and how to match a variable against a >> pattern. > and it does not work if he ports tree is "physically" elsewhere (mine is > shared over NFS from /files2/ports -> .CURDIR does not begin > with /usr/ports). Well, i have ports NFS-mounted too (but in /usr/ports) and i think if user is able to do NFS mounts he is able to tweak his make.conf too. Of course we are talking about temporary hack till all ports will be ready for -O2. > Perhaps a better way would be to use a variable set in bsd.ports.mk > (BUILDING_PORT="YES") It's too late i think: [21:42 {ttyp1} (0) root@FeeBee:/usr/ports/shells/bash2]# make -V .MAKEFILE_LIST /usr/share/mk/sys.mk /etc/make.conf .. /usr/share/mk/bsd.compat.mk .. /usr/share/mk/bsd.cpu.mk .. .. Makefile /usr/share/mk/bsd.port.pre.mk /usr/share/mk/bsd.port.mk [...] Ponc -- Tomasz Pilat http://poncki.freebsd.pl./ AXEL SPRINGER POLSKA Sp. z o.o. PONC-RIPE | PGPKEY-EDEB47FC A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on e-mail/Usenet?