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 644557 - gnucash-2.4.3: downstream patches to fix tests linking
gnucash-2.4.3: downstream patches to fix tests linking
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: General
2.4.x
Other Linux
: Normal normal
: ---
Assigned To: Christian Stimming
Geert Janssens
Depends on:
Blocks:
 
 
Reported: 2011-03-12 11:36 UTC by Pacho Ramos
Modified: 2018-06-29 22:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnucash-2.4.3-fix-tests-linking.patch (8.19 KB, patch)
2011-03-12 11:36 UTC, Pacho Ramos
none Details | Review
gnucash-2.4.3-fix-tests-linking2.patch (1.61 KB, patch)
2011-03-12 11:37 UTC, Pacho Ramos
none Details | Review

Description Pacho Ramos 2011-03-12 11:36:54 UTC
Created attachment 183208 [details] [review]
gnucash-2.4.3-fix-tests-linking.patch

We are applying attached patches to fix linking on some tests, please commit them if possible. Thanks
Comment 1 Pacho Ramos 2011-03-12 11:37:09 UTC
Created attachment 183209 [details] [review]
gnucash-2.4.3-fix-tests-linking2.patch
Comment 2 Geert Janssens 2011-03-12 12:19:34 UTC
Thanks for these patches. While looking at them, I noticed you have only added the libqof include in two Makefiles.am files. In all other cases you just seem to be moving library includes up and down.

I'm trying to learn here: are these line swappings required to get the tests to run (I mean is the include order effectively important) or is this mainly done for consistency ? Both are valid reasons to apply the patches, but in the latter I would have preferred to have one patch for the fixes and one for the cleanups. That would show more clearly why the changes were made to others reviewing the code (now or in the future). Of course, if the tests fail without swapping the lines around, you can disregard this suggestion.
Comment 3 Gilles Dartiguelongue 2011-03-12 14:00:52 UTC
Hi Geert, I'm the original author of those changes applied since we tried to package gnucash 2.4 for gentoo.

The line swapping part of the patch is here to solve an insidious problem mainly due to libqof being embedded into gnucash. The problem is that if the order is not right, when you have gnucash-2.2.9 on your system (for example), some la files corresponding to intermediate libraries to rely on internal copy of libqof will actually pull the copy of the old gnucash. This is an old "problem" of libtool that it is able to pick libs from your system even you'd actually would like it to pick the one in your build tree. Changing the order ensures that libtools find the copy in the build tree before trying other paths. This is both important for actual linking so you get the proper symbols (the one that didn't existed in the old gnucash release) and for tests as they would fail due to not being able to find the proper symbols (if they use the new ones obviously).

For the added dependencies on libqof, iirc, it was added to targets to included qof headers in their code but didn't have the LDADD corresponding part.
Comment 4 Geert Janssens 2011-03-12 15:46:45 UTC
Ok, thank you for this clarification. I have committed your patches r20401.
The first patch didn't apply cleanly because one makefile contained newer changes. So I had to correct your patch.

Thank you for sending them in!
Comment 5 John Ralls 2017-09-24 22:05:06 UTC
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
Comment 6 John Ralls 2018-06-29 22:54:44 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=644557. Please update any external references or bookmarks.