Date: Sun, 17 Feb 2013 20:43:42 +0900 From: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp> To: "Mikhail T." <mi+thun@aldan.algebra.com> Cc: Tom Evans <tevans.uk@googlemail.com>, Ian Lepore <ian@FreeBSD.org>, Kimmo Paasiala <kpaasial@gmail.com>, jmg@funkthat.com, Current FreeBSD <freebsd-current@FreeBSD.org>, Ports FreeBSD <freebsd-ports@FreeBSD.org>, "O. Hartmann" <ohartman@zedat.fu-berlin.de> Subject: Re: ports include /etc/src.conf? i.e. graphics/libfpx Message-ID: <5120C26E.7060703@kbh.biglobe.ne.jp> In-Reply-To: <511F2B57.8070109@aldan.algebra.com> References: <511B662C.7030602@zedat.fu-berlin.de> <511B874A.7080901@kbh.biglobe.ne.jp> <CAFHbX1Lg4w8g30DrcEbvm%2B6sFvTDpRAt7OouBBBUs1iiMaEL5g@mail.gmail.com> <CA%2B7WWSfOHnYow56BggaG6_T8hGY9GZKTzuT_E7=LWex2Th0XQQ@mail.gmail.com> <511BBDAD.1080806@zedat.fu-berlin.de> <511CD83C.107@aldan.algebra.com> <CAFHbX1LKuDbKYSifFDsRYhc3eCd5g7c-ifAHF9jMSjqow6kVVA@mail.gmail.com> <511CE2AD.8050506@aldan.algebra.com> <CAFHbX1KJ9eDYa4UiZ5N53EEnF1dPmq13F-SvRaKyr=AJYdb79A@mail.gmail.com> <20130214143445.GA5414@straylight.m.ringlet.net> <511EB799.8090401@aldan.algebra.com> <1360973567.1164.13.camel@revolution.hippie.lan> <511F068C.8060503@aldan.algebra.com> <1360988497.1164.21.camel@revolution.hippie.lan> <511F2B57.8070109@aldan.algebra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2013/02/16 15:46, Mikhail T. wrote: > 15.02.2013 23:21, Ian Lepore ???????(??): >> Since /home/ian/foo/BSDmakefile is not building something that is part >> of the freebsd world, or the freebsd kernel, then according to that >> paragraph, a build using that makefile should not be affected >> by /etc/src.conf. > Maybe it should not be affected. But it is. And the only way to avoid it > is by using an undocumented knob. If the documentation properly > documents the feature, then the implementation of it is faulty. > > As suggested earlier, perhaps, the file should only be included, if > something special is put into environment (by /usr/src/Makefile). > Instead it bsd.own.mk currently sucks-in /etc/src.conf by default -- and > one has to set an undocumented flag to avoid that. Something like this > (untested): > > Index: Makefile > =================================================================== > --- Makefile (revision 246385) > +++ Makefile (working copy) > @@ -293,7 +293,7 @@ > # the system bsdmake-like utility to be overridden. > # > MMAKEENV= MAKEOBJDIRPREFIX=${MAKEPATH} \ > - DESTDIR= \ > + DESTDIR= _WITH_SRCCONF= \ > INSTALL="sh ${.CURDIR}/tools/install.sh" > MMAKE= ${MMAKEENV} ${MAKE} \ > -D_UPGRADING \ > Index: share/mk/bsd.own.mk > =================================================================== > --- share/mk/bsd.own.mk (revision 246385) > +++ share/mk/bsd.own.mk (working copy) > @@ -115,7 +115,7 @@ > .if !target(__<bsd.own.mk>__) > __<bsd.own.mk>__: > > -.if !defined(_WITHOUT_SRCCONF) > +.if defined(_WITH_SRCCONF) > SRCCONF?= /etc/src.conf > .if exists(${SRCCONF}) > .include "${SRCCONF}" > > Yours, > > -mi > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > > /etc/src.conf is never included. MMAKE* seems for usr.bin/make. <bsd.own.mk> has 2 !defined(_WITHOUT_SRCCONF). first is changed, but second is not. Why? _WITH_SRCCONF is defined only root Makefile. Is this correct? I think subdir's Makefile need to include /etc/src.conf.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5120C26E.7060703>