Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928515 - app-office/gnucash-4.13 fails to compile if dev-libs/crossguid is installed
Summary: app-office/gnucash-4.13 fails to compile if dev-libs/crossguid is installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-03 14:23 UTC by Daniel Harding
Modified: 2024-11-03 18:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Harding 2024-04-03 14:23:46 UTC
The failing build step output is:

    FAILED: libgnucash/app-utils/swig-app-utils-python.c libgnucash/app-utils/sw_app_utils.py /var/tmp/portage/app-office/gnucash-4.13/work/gnucash-4.13_build/libgnucash/app-utils/swig-app-utils-python.c /var/tmp/portage/app-office/gnucash-4.13/work/gnucash-4.13_build/libgnucash/app-utils/sw_app_utils.py 
    cd /var/tmp/portage/app-office/gnucash-4.13/work/gnucash-4.13_build/libgnucash/app-utils && /usr/bin/swig -python -py3 -Wall -Werror -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include -I/var/tmp/portage/app-office/gnucash-4.13/work/gnucash-4.13/common -I/var/tmp/portage/app-office/gnucash-4.13/work/gnucash-4.13/libgnucash/engine -I/var/tmp/portage/app-office/gnucash-4.13/work/gnucash-4.13/libgnucash/app-utils -I/var/tmp/portage/app-office/gnucash-4.13/work/gnucash-4.13/bindings -I/var/tmp/portage/app-office/gnucash-4.13/work/gnucash-4.13/bindings/python -o /var/tmp/portage/app-office/gnucash-4.13/work/gnucash-4.13_build/libgnucash/app-utils/swig-app-utils-python.c /var/tmp/portage/app-office/gnucash-4.13/work/gnucash-4.13/libgnucash/app-utils/app-utils.i
    Deprecated command line option: -py3. Ignored, this option is no longer supported.
    /usr/include/guid.h:41: Warning 301: class keyword used, but not in C++ mode.
    /usr/include/guid.h:83: Warning 301: class keyword used, but not in C++ mode.
    ninja: build stopped: subcommand failed.

This is due to the build picking up /usr/include/guid.h installed by dev-libs/crossguid instead of libgnucash/engine/guid.h in the gnucash source tree. I believe the include is coming from bindings/python/gnucash_core.i. Temporarily renaming /usr/include/guid.h allows the gnucash build to succeed.
Comment 1 Aaron W. Swenson gentoo-dev 2024-05-11 19:11:40 UTC
Does this error affect gnucash-5.6?
Comment 2 Daniel Harding 2024-05-12 17:49:28 UTC
The build doesn't fail when running

    sudo ebuild gnucash-5.6.ebuild compile

as -Werror is no longer being passed, but it still picks up the wrong include file and generates the same warnings, e.g.:

    [821/821] cd /var/tmp/portage/app-office/gnucash-5.6/work/gnucash-5.6_build/bindings/python && /usr/bin/swig -python -Wall -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include -I/var/tmp/portage/app-office/gnucash-5.6/work/gnucash-5.6/common -I/var/tmp/portage/app-office/gnucash-5.6/work/gnucash-5.6/libgnucash/engine -I/var/tmp/portage/app-office/gnucash-5.6/work/gnucash-5.6/libgnucash/app-utils -I/var/tmp/portage/app-office/gnucash-5.6/work/gnucash-5.6/bindings -I/var/tmp/portage/app-office/gnucash-5.6/work/gnucash-5.6/bindings/python -o /var/tmp/portage/app-office/gnucash-5.6/work/gnucash-5.6_build/bindings/python/swig-app-utils-python.c /var/tmp/portage/app-office/gnucash-5.6/work/gnucash-5.6/bindings/python/../app-utils.i
    /usr/include/guid.h:41: Warning 301: class keyword used, but not in C++ mode.
    /usr/include/guid.h:83: Warning 301: class keyword used, but not in C++ mode.

when it should be referencing libgnucash/engine/guid.h.
Comment 3 Daniel Harding 2024-10-11 12:46:06 UTC
The latest stable version of dev-libs/crossguid (0.2.2_p20190529) on longer installs include files directly into /usr/include (now they are under /usr/include/crossguid), and furthermore does not install a guid.h file at all, meaning that app-office/gnucash no longer picks up the wrong include file.  If a user still has the old version of dev-libs/crossguid installed (0_pre20150817), this could still be an issue, but for anyone with an up-to-date system, it is no longer a problem.  I would suggest removing the old version of dev-libs/crossguid from the tree and closing this bug.
Comment 4 Larry the Git Cow gentoo-dev 2024-11-03 18:54:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc3c6788cb5c7c69b04d7d0b84a470c7a11c545c

commit dc3c6788cb5c7c69b04d7d0b84a470c7a11c545c
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2024-11-03 18:54:17 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2024-11-03 18:54:17 +0000

    app-office/gnucash: drop 5.3, 5.4-r1, 5.5, 5.6
    
    Closes: https://bugs.gentoo.org/928515
    Closes: https://bugs.gentoo.org/926790
    Signed-off-by: David Seifert <soap@gentoo.org>

 app-office/gnucash/Manifest                        |   4 -
 .../files/gnucash-5.3-include-algorithm.patch      |  12 --
 .../gnucash/files/gnucash-5.3-no-werror.patch      |  29 ---
 .../files/gnucash-5.4-fix-python-finding.patch     |  49 -----
 app-office/gnucash/gnucash-5.3.ebuild              | 226 --------------------
 app-office/gnucash/gnucash-5.4-r1.ebuild           | 235 ---------------------
 app-office/gnucash/gnucash-5.5.ebuild              | 232 --------------------
 app-office/gnucash/gnucash-5.6.ebuild              | 232 --------------------
 8 files changed, 1019 deletions(-)