Bug 752054 - gnucash fails to build with guile-2.0.1
Summary: gnucash fails to build with guile-2.0.1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: swig
Version: 19
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jitka Plesnikova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-08 12:51 UTC by info@kobaltwit.be
Modified: 2013-06-15 03:07 UTC (History)
5 users (show)

Fixed In Version: swig-2.0.10-1.fc19
Clone Of: 704527
Environment:
Last Closed: 2013-06-15 03:07:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fix deprecated symbols in swig 2.0.8 (8.55 KB, patch)
2012-12-14 23:12 UTC, info@kobaltwit.be
no flags Details | Diff

Description info@kobaltwit.be 2011-11-08 12:51:58 UTC
+++ This bug was initially created as a clone of Bug #704527 +++

For the full history, please refer to bug #704527.

Swig generates wrappers for guile using deprecated symbols. This seems to cause failures in gnucash unit tests. Check
https://bugzilla.gnome.org/show_bug.cgi?id=655901#c12 and below for details on the errors.

Petr Gadjos created a patch that fixes the wrappers found in the gnucash tarball (which means after swig generation), eliminating the use of SCM_STRING_CHARS (see the above bugs). This is unfortunately only a workaround and can't be applied to the gnucash source in svn/git, because it will each time regenerate the guile wrappers.

To really fix this, the guile generation code in swig has to be updated.

Note that there is an old bugreport on the swig bugtracker for this, but nothing has been done with it:
https://sourceforge.net/tracker/?func=detail&aid=1511038&group_id=1645&atid=301645

The argument over there is that swig (at least in 2007) wanted to maintain compatibility with guile 1.6. I have added a comment over there as well regarding this issue.

Comment 1 Adam Tkac 2011-11-15 13:50:20 UTC
Proposed patch is ready but it won't be applied before guile2 gets into distribution. Check https://bugzilla.redhat.com/show_bug.cgi?id=704527#c16 for more info.

Comment 2 info@kobaltwit.be 2011-12-16 14:41:01 UTC
Is there a relatively easy way to install guile 2.0 on Fedora 16 ? If so, I can experiment with it to see if I can patch GnuCash to work around the swig issues.

Comment 3 Miroslav Lichvar 2012-01-06 14:48:06 UTC
F16 builds of guile-2.0.3 are available here:

http://mlichvar.fedorapeople.org/tmp/guile/

Comment 4 info@kobaltwit.be 2012-12-14 23:12:16 UTC
Created attachment 663869 [details]
Fix deprecated symbols in swig 2.0.8

Bug 704527 contains a patch that will make swig work with guile 2, but not with guile 1.8. This patch was also sent upstream, but there is no reaction so far. It is unlikely to get accepted, because the last comments even wanted guile 1.6 compatibility.

So I have created an improved patch for swig 2.0.8. With this patch swig can work with guile 1.6, 1.8 and 2.0. It removes all deprecated warnings that were generated with guile 2.0 and fixes the blocking issue for which the patch in bug 704527 was written originally.

I have successfully used it to build gnucash (development branch) with guile 2.

I will also send this patch upstream. Hopefully it will be accepted.

Comment 5 Fedora End Of Life 2013-04-03 19:13:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 6 info@kobaltwit.be 2013-04-29 11:03:21 UTC
I have worked with upstream swig developers to get the guile 2 support merged in. As of yesterday, all fixes required for swig to generate proper guile 2 compatible wrappers have been merged in master.

The next swig version (2.0.10) will have proper guile 2 support. I have no idea of their release plans though.

Comment 8 Fedora Admin XMLRPC Client 2013-05-06 12:28:23 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 9 Fedora Update System 2013-06-06 10:22:12 UTC
swig-2.0.10-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/swig-2.0.10-1.fc19

Comment 10 Fedora Update System 2013-06-06 17:28:55 UTC
Package swig-2.0.10-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing swig-2.0.10-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-10185/swig-2.0.10-1.fc19
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2013-06-15 03:07:41 UTC
swig-2.0.10-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.