GNOME Bugzilla – Bug 671737
[PATCH] configure --disable-gui still build gui code
Last modified: 2018-06-29 23:07:14 UTC
How to reproduce $ ./configure --enable-python --enable-dbi --disable-gui $ make It still build GUI related code. Patch is attached.
Created attachment 209333 [details] [review] Fix
Comment on attachment 209333 [details] [review] Fix r22099, thanks!
I didn't include the directory change with src/python, though, because that didn't make too much sense for me.
Created attachment 210192 [details] [review] patch 2 You are right. The python part of my previous patch is incorrect. This is my second patch. 1. "optional" should not be in GUI_SUBDIRS, otherwise python-bindings will not build. 2. lib/stf depends on goffice which depends on gtk. And stf is only used in gnucash impoter, I remove it if GUI is disabled.
... Except "optional/gtkmm" *should* only be built when you build the GUI. So perhaps "optional" needs to be split into GUI and non-GUI portions?
Yes. The optional/Makefile.am also needs a "if ENABLE_GUI"... conditional.
"optional/gtkmm" already guarded by WITH_GTKMM, maybe it is ok. Unless users specify --disable-gui and --enable-gtkmme at the same time.
Comment on attachment 210192 [details] [review] patch 2 ok. r22105, thanks!
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=671737. Please update any external references or bookmarks.