Date: Sun, 2 Sep 2012 16:22:50 -0700 From: Garrett Cooper <yanegomi@gmail.com> To: Glen Barber <gjb@freebsd.org> Cc: hackers@freebsd.org Subject: Re: [PATCH] head/Makefile.inc1: Fix 'make distributeworld' when defining WITHOUT_GAMES Message-ID: <CAGH67wQVyDs1SWgte8WQjcLpttZU4Bwq64uaZQuzb9c_pUoYow@mail.gmail.com> In-Reply-To: <20120902225250.GE1507@glenbarber.us> References: <20120902214616.GB1507@glenbarber.us> <CAGH67wQpgdqnXSeRUnUACQHNWJi-Z9ZEsB6ZQZ7Bf_W2nXyUKg@mail.gmail.com> <CAGH67wSEhTqDft7C9VZy4h82xrkjjq7w9Y%2B-apynUMK4Pwycsg@mail.gmail.com> <20120902225250.GE1507@glenbarber.us>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 2, 2012 at 3:52 PM, Glen Barber <gjb@freebsd.org> wrote: > On Sun, Sep 02, 2012 at 03:12:01PM -0700, Garrett Cooper wrote: >> On Sun, Sep 2, 2012 at 3:05 PM, Garrett Cooper <yanegomi@gmail.com> wrote: >> > On Sun, Sep 2, 2012 at 2:46 PM, Glen Barber <gjb@freebsd.org> wrote: >> >> Hi, >> >> >> >> Attached patch fixes 'make distributeworld' and our 'make release' >> >> scripts when WITHOUT_GAMES is set. >> >> >> >> Can someone please comment/test/commit? >> > >> > It should be `.if ${MK_GAMES} != "no"`. Other than that, LGTM! > > You're right, thanks. New diff attached. Cool|! Too bad we don't have a publicly advertised MK_DOC knob -- otherwise doc would be an optional EXTRA_DISTRIBUTION as well (there's an undocumented NODOC knob in release/Makefile) (yes bde@ -- feel free to cringe at gmail's suckage with column wrapping). Index: /usr/src/Makefile.inc1 =================================================================== --- /usr/src/Makefile.inc1 (revision 239292) +++ /usr/src/Makefile.inc1 (working copy) @@ -640,7 +640,13 @@ # # Non-base distributions produced by the base system -EXTRA_DISTRIBUTIONS= doc games +EXTRA_DISTRIBUTIONS= +.if ${MK_DOC} != "no" +EXTRA_DISTRIBUTIONS+= doc +.endif +.if ${MK_GAMES} != "no" +EXTRA_DISTRIBUTIONS+= games +.endif .if defined(LIB32TMP) && ${MK_LIB32} != "no" EXTRA_DISTRIBUTIONS+= lib32 .endif >> I would also dare to go one step further and remove >> `${WORLDTMP}/legacy/usr/games` from BPATH and XPATH when ${MK_GAMES} >> == "no" to reduce the number of path lookups done (this should help >> speed up the build a bit). > > Considering how many problems I am finding in our 'make release' build > infrastructure, I would rather not do anything daringly right away. I > would rather fix the bugs I am finding, be sure things are not broken > differently, and then we can further fix things. Sure. > Thank you for the suggestion. No problem! Thanks! -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wQVyDs1SWgte8WQjcLpttZU4Bwq64uaZQuzb9c_pUoYow>