From owner-freebsd-current@FreeBSD.ORG Fri Jul 8 09:09:06 2005 Return-Path: X-Original-To: freebsd-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 9883916A41C for ; Fri, 8 Jul 2005 09:09:06 +0000 (GMT) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD71143D46 for ; Fri, 8 Jul 2005 09:09:05 +0000 (GMT) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id C1FCBE0BDF; Fri, 8 Jul 2005 11:09:03 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id A46319C227; Fri, 8 Jul 2005 11:09:03 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 7583A9C1DE; Fri, 8 Jul 2005 11:09:03 +0200 (CEST) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 5169CE0BDF; Fri, 8 Jul 2005 11:09:03 +0200 (CEST) Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237]) by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j68993ki074607; Fri, 8 Jul 2005 11:09:03 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: from roadrunner.q.local (vpn [10.0.0.2]) by coyote.q.local (8.13.3/8.13.1) with ESMTP id j6898x45049712; Fri, 8 Jul 2005 11:08:59 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.4/8.13.3) with ESMTP id j6898weg001297; Fri, 8 Jul 2005 11:08:58 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: (from q@localhost) by roadrunner.q.local (8.13.4/8.13.3/Submit) id j6898une001296; Fri, 8 Jul 2005 11:08:57 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Date: Fri, 8 Jul 2005 11:08:56 +0200 From: Ulrich Spoerlein To: Thierry Herbelot Message-ID: <20050708090856.GB969@galgenberg.net> Mail-Followup-To: Thierry Herbelot , freebsd-current@freebsd.org, Jeremie Le Hen 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: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9zSXsLTf0vkW971A" Content-Disposition: inline In-Reply-To: <200507061116.17267.thierry@herbelot.com> User-Agent: mutt-ng devel (FreeBSD) X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Cc: freebsd-current@freebsd.org, Jeremie Le Hen 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 List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2005 09:09:06 -0000 --9zSXsLTf0vkW971A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 06.07.2005 at 11:16:15 +0200, Thierry Herbelot wrote: > > > Whats wrong with > > > > > > .if ${.CURDIR:M/usr/ports*} > > > CFLAGS=3D -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. >=20 > and it does not work if he ports tree is "physically" elsewhere (mine is= =20 > shared over NFS from /files2/ports -> .CURDIR does not begin=20 > with /usr/ports). >=20 > Perhaps a better way would be to use a variable set in bsd.ports.mk=20 > (BUILDING_PORT=3D"YES") Perhaps an even better way would be to have bsd.port.mk include "/etc/ports.conf". I do this in my own make.conf, when I'm inside the ports tree (wherever that my be, /usr/ports or ~/ports). But I guess that is too late in the game to include. This is what I get right now: % cd /usr/ports/editors/vim % make -V .MAKEFILE_LIST|tr ' ' '\n'|grep -v '\.\.' /usr/share/mk/sys.mk /etc/make.conf /etc/ports.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 /usr/share/mk/bsd.own.mk /usr/ports/Mk/bsd.port.mk /usr/ports/Mk/bsd.gnome.mk /usr/share/mk/bsd.port.post.mk /usr/share/mk/bsd.port.mk /usr/share/mk/bsd.own.mk /usr/ports/Mk/bsd.port.mk /usr/ports/Mk/bsd.autotools.mk /usr/ports/Mk/bsd.gnome.mk /usr/ports/Mk/bsd.sites.mk Ulrich Spoerlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --9zSXsLTf0vkW971A Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCzkKomArGtfDbn0QRAnLFAKDR+BpGAiw7HfJcLrmTNDMufFkWagCfWHUC FXn2Dnhzm5cTkDgNIo58rhs= =7Cq1 -----END PGP SIGNATURE----- --9zSXsLTf0vkW971A--