Commit Graph

16907 Commits

Author SHA1 Message Date
Mike Alexander
4a7913289c Tell Guile (and others) to look in install/lib/gnucash for ligraries.
Without this Guile can't find libgncmod-engine and GnuCash won't start,
at least sometimes.
2014-12-21 22:54:24 -05:00
John Ralls
2ceadfa3a0 Replace GNC_HOME/bin with gnc_path_get_bindir().
For consistency with the rest of the function.
2014-12-21 15:47:20 -08:00
John Ralls
02acf2b6f4 Adjust #ifdef __clang__ to exclude clang versions > 6
This works only with Apple clang; the regular clang is at version 3, but
hasn't been tested for what versions emit what sort of function signatures
to logs.
2014-12-21 12:55:07 -08:00
John Ralls
745ff9e519 Bug 739584 - gnucash-2.6.4 segfaults regularly on transfer .
Ensure that xferData is nulled after free and that client functions check
for the NULL.
2014-12-21 12:34:32 -08:00
John Ralls
a537ff052b Fix Guile compiled path in environment.in
Compiled files go to prefix/lib/guile/2.0/ccache, which isn't the same as
where the source files are stored (prefix/share/guile/2.0), so provide a
separate variable for it. Also don't throw away the user's value of
GUILE_LOAD_COMPILED_PATH in favor of GUILE_LOAD_PATH.
2014-12-21 11:13:27 -08:00
John Ralls
e55e7db9fd Remove note from the top of environment.in. It's obsolete. 2014-12-21 11:09:21 -08:00
lmat
7d5f0a66a0 Kvp-Frame test cases
Adding google tests for many of Kvp Frame's member functions. One
function in KvpFrameImpl, for_each_slot, should probably be something
like

template <typename T> void
for_each_slot (T & t, void * data) const
{
    std::for_each(......
    [&t, data] (... a)
    {
        t(a, data);
    }
}

This way, we could create a functor mock object for testing purposes,
but of course, pointers would still behave correctly.
2014-12-20 14:27:49 -08:00
Geert Janssens
2ef335d9c7 Bug 740471 - Applying payment to invoice Segmentation fault
Stop listening for gui update events while on the way out
(after the ok button was pressed).
2014-12-20 12:28:59 +01:00
Geert Janssens
f4481f7dcf Bug 740471 - Applying payment to invoice Segmentation fault
Clear selection before emptying list store to prevent
the code from running calculations on a changing list.
2014-12-20 12:28:59 +01:00
Geert Janssens
a6d7184d83 Bug 740471 - Applying payment to invoice Segmentation fault
Attempt to fix it by no longer nullifying lots during processing
2014-12-20 12:28:58 +01:00
Geert Janssens
2f0a193b68 Periodic merge of branch 'maint'
* Update translation project po files.
    * Fix msgfmt errors in Indian-language .po files.
    * Improve comment for gncOwnerAutoApplyPaymentsWithLots
    * Fix lot scrubbing for business lots
    * Fix crash when running check & repair on an open AP/AR register
    * Release 2.6.5 and 2.6.5a
2014-12-20 12:13:38 +01:00
Geert Janssens
efc8544ff9 Fix crash when running check & repair on an open AP/AR register
This was reported in comment 15 of https://bugzilla.gnome.org/show_bug.cgi?id=741418
2014-12-20 12:10:20 +01:00
John Ralls
23d0f79d5d Update News for re-tag of 2.6.5 2014-12-18 08:38:46 -08:00
Geert Janssens
e3bef5fdc3 Fix lot scrubbing for business lots
When adding splits to such a lot the code was supposed to
reduce splits in the same transaction and the same lot to
one single split. This is to avoid infinite fragmentation
over time.
That reduction wasn't working for business lots and should
be fixed with this commit.
This is also a potential fix for bug https://bugzilla.gnome.org/show_bug.cgi?id=741418
which could very well be a report of such infinite fragmentation.
2014-12-17 18:52:20 +01:00
Geert Janssens
9dc06a2f24 Improve comment for gncOwnerAutoApplyPaymentsWithLots
It was no longer accurate
2014-12-17 18:52:20 +01:00
John Ralls
321278f996 Release 2.6.5. 2014-12-15 15:20:36 -08:00
John Ralls
624d3bb68b Fix msgfmt errors in Indian-language .po files.
Note that the fixes may cause the translated strings to be wrong, but
they will at least avoid printf from having mismatched substitution
parameters.
2014-12-15 14:48:34 -08:00
John Ralls
fd15209d5e Update translation project po files. 2014-12-15 14:03:14 -08:00
John Ralls
e2e15038e1 Merge branch 'maint' 2014-12-14 20:02:29 -08:00
John Ralls
c85c4529fd Still more Guile library path additions, this time in tests. 2014-12-14 16:38:48 -08:00
John Ralls
dd544de7ed Use standard macro INT64_C() to silence gcc-4.2 complaint
About constants being too large for an int.
2014-12-14 16:37:47 -08:00
John Ralls
08a4394955 Correct inadvertent change to a still-needed function. 2014-12-14 16:36:53 -08:00
John Ralls
620832f481 Remove Windows specializations from gnc-date.c
Now that we're building with a recent GLib version they're no longer needed.
2014-12-13 18:02:13 -08:00
John Ralls
dca16c8933 Still more Guile precompilation fixes.
This time for gcc-4.2, used for OSX 10.5-compatible releases.
2014-12-12 12:55:05 -08:00
Mike Alexander
735ee38b65 Revert "Some type mismatch fixes to make it build with clang in MacOSX Mavericks."
This reverts commit 78fea12afc.
2014-12-11 17:24:48 -05:00
Mike Alexander
f4168e108b Update XCode project for recent C++ related changes 2014-12-11 02:59:37 -05:00
Mike Alexander
09145fe11e Tell Guile (and others) to look in install/lib/gnucash for ligraries.
Without this Guile can't find libgncmod-engine and GnuCash won't start.
I don't know how this worked before, perhaps because the correct path
was in src/bin/overrides/gnucash-env.in
2014-12-11 02:59:31 -05:00
Mike Alexander
78fea12afc Some type mismatch fixes to make it build with clang in MacOSX Mavericks.
These may not be the best fixes, but they make things build again with
XCode 6.1.1 in MacOSX 10.9.5.
2014-12-11 02:59:21 -05:00
Mike Alexander
a61f61406f Fix line endings in repository to match recent change to .gitattributes 2014-12-11 02:55:06 -05:00
Mike Alexander
bd8ce2f7cf Fix line endings in repository to match recent change to .gitattributes. 2014-12-11 02:50:59 -05:00
John Ralls
6a546f727b Ubuntu 14.04's C++ already defines these, so guard them. 2014-12-08 13:52:43 -08:00
John Ralls
517e853eb6 MinGW needs cstdio included to find sprintf. 2014-12-08 13:52:42 -08:00
John Ralls
70ccc6c690 More uint fixes. 2014-12-08 13:52:41 -08:00
VERDOÏA Laurent
5f2eab3ba8 French typo correction
ctte -> cette

Cherry picked from master because I first applied it there by mistake.
2014-12-08 13:33:00 -08:00
Christoph Holtermann
0b1842cee1 Correction to Doxygen in gncinvoicefkt.py 2014-12-08 13:30:17 -08:00
Christoph Holtermann
fe70e260fa Small corrections (py invoice template, doxygen) 2014-12-08 13:30:17 -08:00
VERDOÏA Laurent
7424e14525 French typo correction
ctte -> cette
2014-12-08 13:30:13 -08:00
John Ralls
f0f382cb06 Merge branch 'maint'
Ensure a merge commit after fast-forward merge from maint yesterday.
2014-12-08 12:43:16 -08:00
John Ralls
369befaae4 Don't use uint as an alias for unsigned int.
MinGW doesn't know about it, and errors out.
2014-12-08 09:49:56 -08:00
John Ralls
c5d87ec3b6 Work around bug in some versions of gtest which error out on EXPECT_EQ (false, foo).
A problem version is shipped by Debian Wheezy; Debian Jessie has a working version.
2014-12-07 21:59:36 -08:00
John Ralls
0c47414364 Make the gtest section fail properly when presented with the broken Fedora installation of gtest.
Fedora users will need to install sources and pass --gtest-root and --gmock-root to configure.
2014-12-07 21:59:36 -08:00
John Ralls
85c1b2293b Except latest Apple clang from long-form error messages. 2014-12-07 21:54:24 -08:00
John Ralls
f649da86f8 Fix up test makefiles to provide linkage paths for Guile2.
Which is apparently not as smart as Guile1 when loading for libs in the current directory.
2014-12-07 21:53:23 -08:00
John Ralls
689a25e56f More Guile compilation library links, needed in master but not maint. 2014-12-07 15:38:40 -08:00
Frank H. Ellenberger
67c0c41e92 Add ChangeLog.2013 to dist_doc_DATA
Happy New Year! ;-)
2014-12-07 15:07:39 -08:00
Frank H. Ellenberger
a41a6d6359 Update of de.po: 152 + 38 remaining 2014-12-07 15:07:39 -08:00
Geert Janssens
3061d31f06 Yet another guile 2 precompile fix of the German tax report
The previous one only fixed part of the problem
2014-12-07 15:07:39 -08:00
Geert Janssens
9a3a0a85d1 Fix guile 2 precompilation of German tax report 2014-12-07 15:07:39 -08:00
John Ralls
d764f7663c Guile compilation: One missed CLEANFILES. 2014-12-07 15:07:38 -08:00
John Ralls
8df252436a Fix the *.win32-bin.txt and downloaded.mt940 attributes. 2014-12-07 15:07:38 -08:00