GnuCash and Guile 2

John Ralls jralls at ceridwen.us
Tue Dec 18 17:36:26 EST 2012


On Dec 18, 2012, at 1:16 PM, Geert Janssens <janssens-geert at telenet.be> wrote:

> On 18-12-12 19:52, John Ralls wrote:
>> On Dec 18, 2012, at 10:01 AM, Geert Janssens <janssens-geert at telenet.be> wrote:
>>> Also make check passes for both guile 1.8 and guile 2.0. Word of caution here though: if you install both guile and guile 2, for one of both the guile executable is not "guile". In my case, I have guile (1.8) and guile2 (2.0). Some tests are hardcoded to execute 'guile' and these tests will segfault when run against guile2. If you manually fix the tests to execute guile2, they pass fine. This is a transient issue that will resolve itself once only guile2 is an option.
>> Can we fix that to use a configure-set variable?
>> 
>> Regards,
>> John Ralls
>> 
> As far as I understand, this is a distro-specific issue. Upstream the guile binary is called guile for both 1.8 and 2.0. It's because distro's want to install two releases next to each other that they rename one binary. Fedora has chosen guile and guile2, but another distro might just as well choose guile1 and guile or guile and guile-2 as binary names.
> 
> GnuCash can't know this. It also not something that is defined in pkgconfig, so I don't know how we can figure out what binary name we should use.

But configure can figure it out by testing possibilities with AC_CHECK_PROGS, as a configure option using AC_ARG_WITH, or both.

You could also check an environment variable, which would facilitate testing the same build with both versions.

Regards,
John Ralls




More information about the gnucash-devel mailing list