GNOME Bugzilla – Bug 160756
patch which add --disable-demos to configure script
Last modified: 2005-01-25 13:09:16 UTC
--disable-examples shaves of 50% of the total buildtime. This is great but the stuff in demo/ still gets build. I patched configure.in and Makefile.am to add a --disable-demos option which does exactly as it says. Patches are diffs against latest (2.4.8) files. WHY do i want this? i first came across this while creating a gtkmm ebuild for gentoo. Since none of the examples and demos are installed it seems a waste of time to build them.
Created attachment 34622 [details] [review] patch to alter toplevel Makefile.am
Created attachment 34623 [details] [review] patch to alter configure.in
Thanks, but I think that it's a very good idea to always have some sanity-checks in the build, and I don't think the demos take so long compared to the examples. I also don't consider this very important because people shouldn't build from source unless they are packagers or testers. If you are a packager of a sensible distro then I might change my mind.
Aren't some sanity-checks already performed in tests/ ? And indeed the demos don't take so long, to compile, but they still take up some 8 min from ~20 min total buildtime. Also they're (just like the examples) enabled by default, so if anyone disables them it's his own responsibility. Anyway, it's not that important, i just thought i'd be a 'small gain, no pain' situation :)
> Aren't some sanity-checks already performed in tests/ ? Not enough, in my opinion.
Actually, I have applied this because the demos do not compile on AIX, and I don't want to work around the problems just for AIX. In future, please create a real cvs patch, and patch the ChangeLog. http://www.gtkmm.org/bugs.shtml#CreatingPatches Thanks.