After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 794617 - Can't compile with -DWITH_GNUCASH=NO due to scm-gnome-utils
Can't compile with -DWITH_GNUCASH=NO due to scm-gnome-utils
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Build system
2.7.x
Other Linux
: Normal normal
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2018-03-23 11:31 UTC by Potuz
Modified: 2018-06-30 00:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to compile without gtk+ nor webkit (1.30 KB, patch)
2018-03-23 11:31 UTC, Potuz
committed Details | Review

Description Potuz 2018-03-23 11:31:24 UTC
Created attachment 370048 [details] [review]
Patch to compile without gtk+ nor webkit

I am reporting here a bug requeste for an enhancement that I opened in Gentoo's bugzilla https://bugs.gentoo.org/651200

Trying to compile libgnucash without gnucash in a system without gtk+ (in particular no gnome and no webkit-gtk) I ran into errors like so:

> make[2]: *** No rule to make target
> '/var/tmp/portage/app-office/gnucash-2.7.5-r1/work/
> gnucash-2.7.5/libgnucash/scm/scm-gnome-utils', needed by
> 'lib64/gnucash/scm/ccache/2.2/ gnucash/price-quotes.go'.  Stop.
>

But scm-gnome-utils is defined in gnucash/gnome-utils hence it will not be pulled by the build system with -DWITH_GNUCASH=NO. 

I simply removed the target in libgnucash/scm/CMAkeLists.txt and I managed to get past these errors. After that I managed to compile libgnucash but only after removing the /doc directory because of a missing gnucash.1 file that CMake would complain about. 

Attached are the changes that I needed in order to compile.
Comment 1 John Ralls 2018-06-07 21:19:53 UTC
Comment on attachment 370048 [details] [review]
Patch to compile without gtk+ nor webkit

Committed with a couple of modifications. Thanks!
Comment 2 John Ralls 2018-06-07 21:20:05 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.
Comment 3 John Ralls 2018-06-30 00:05:50 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=794617. Please update any external references or bookmarks.