Date: Fri, 8 Jul 2005 11:08:56 +0200 From: Ulrich Spoerlein <spoerlein@informatik.uni-wuerzburg.de> To: Thierry Herbelot <thierry@herbelot.com> Cc: freebsd-current@freebsd.org, Jeremie Le Hen <jeremie@le-hen.org> Subject: Re: HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0 Message-ID: <20050708090856.GB969@galgenberg.net> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050708090856.GB969>