Christian Stimming
5714500990
Ignore failed chown() because it always fails on vfat/samba. #345913
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14452 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Christian Stimming
4a26d3974a
Use waitpid() only if <sys/wait.h> is available. Unavailable on win32.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14392 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
7b07c2e238
When loading the gmodule backends from the test suite, look in ../.libs
...
for the real module.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14302 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
89f37371d9
Disable support for the old binary file format.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14301 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Andreas Köhler
8ef848f7f8
Link gnome-utils against backend/file and remove symbol lookup in
...
druid-gnc-xml-import.c.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14300 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
acba90be80
Refactor the file backend into a shared library and a loadable module.
...
This should let us build on both Win32 AND MacOS, and means we don't
need to compile the file-backend sources multiple times.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14296 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Andreas Köhler
2bb9dc0c8f
Add wait_for_gzip to avoid reading from a file that is still being
...
written to by a child process, a race condition at the end of the xml
import druid.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14235 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
21f7d7e3d2
Fix gcc4 complaint about unused return value of the write function.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14227 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Andreas Köhler
c3b8cdcfc6
Move is_gzipped_file to
...
io-gncxml-v2.c. Extend try_gz_open to read from gzipped files.
Let gnc_xml2_find_ambiguous and parse_with_subst_push_handler
read gzipped files.
Add gnc_is_our_first_xml_chunk.
Remove "error" from
argument list of gnc_xml2_find_ambiguous.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14217 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
564958f000
Add -avoid-version to LDFLAGS of gmodule backends.
...
Hopefully this will solve the problem Macs are having dlopen'ing them.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14210 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
97062a3b81
Merge 'misc-backend' -r 14160:14184 into trunk.
...
This includes the now semi-functional postgres backend.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14198 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Joshua Sled
eaf1843061
add core-utils to test setup; test-load-xml2 fails for me (from `make check`) otherwise
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14063 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
9c714d3e12
Undo accidental revert of part of r13713 by r14026.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14038 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
e4092bb349
Minor cleanups to gnc_counter_end_handler().
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14026 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
b49877472e
Factor out #define _GNU_SOURCE from various .c files into an AC_GNU_SOURCE
...
check in configure.in.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14002 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
681577f889
Add begin/commit edit blocks to budget setters. Change to using the
...
"destroy" method for budget deletion.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13954 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Joshua Sled
1afdaac632
fix mis-use of test api.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13924 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Joshua Sled
d08ba61322
add encoding to test xml files to prevent loading errors; reformat error message.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13923 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
2ba716c4ed
Use the existing QOF API to modify the instance dirty flag.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13912 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
c29ce7478d
Clean up the xml file some by dropping empty kvp strings/frames and
...
'false' placeholder values.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13788 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
8fd1f3a93a
Fixes to compile with gcc4.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13782 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Andreas Köhler
14ce276877
Initial support to decode old, ambiguous data files, missing an encoding declaration, with the help of the user.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13781 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
d9c78bd0fe
Fix a bunch of 64-bit compile issues.
...
* src/engine/Transaction.c:
* src/engine/test/test-date.c:
* src/backend/file/test/test-dom-converters1.c:
Fix 64-bit compile: Use G_GUINT64_FORMAT instead of %llu or lld
for Timespec seconds.
* src/app-utils/gnc-ui-util.c:
Fix 64-bit compile issues:
- Use QOF_SCANF_LLD instead of GNC_SCANF_LLD.
- Use QOF_SCANF_LLD and G_GINT64_FORMAT properly.
- replace %lld with G_GINT64_FORMAT
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13780 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
422bf34bfe
Get gnucash to build properly with the new QOF changes (0.6.4+)
...
* src/backend/file/sixtp-utils.c:
use QOF_SCANF_LLD to read 64-bit numbers.
* src/gnome-utils/QuickFill.c:
* src/engine/gnc-pricedb.c:
* src/engine/Transaction.c:
* src/engine/gnc-commodity.c:
convert gnc_string_cache* APIs to CACHE_* APIs.
* src/engine/Account.c:
Properly convert usage of SAFE_STRCMP() to safe_strcmp()
* src/engine/kvp-scm.c:
#include <qof.h> instead of <kvp_frame.h>
* src/engine/gnc-engine.c:
Update the method used to shutdown QOF.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13765 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
5028d178ea
Revert r13749. Wedon't need to explicitly #include glib.h
...
because qof.h includes it for us. Also, this changeset contains
lots of other stuff that has nothing to do with glib.h. Note
that this revision wont build, but I'll fix that shortly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13763 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Neil Williams
66a9c0b6ac
Explicitly including glib.h instead of relying on libqof to reduce dependency problems.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13749 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
dcf55d0a40
Generate the gnc:count-data tags by hand so that the attribute will be
...
written properly with all versions of libxml2.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13743 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
cdb4c42f62
When writing a currency to the data file, write the full commodity
...
data block for backward compatibility with 1.8, instead of just
writing the quote source information.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13742 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
73e481da0c
Use the name "Currency" internally instead of ISO4217. Make it
...
possible to edit the "get quotes" flag on currencies.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13731 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
9a3be57d8d
Mike Alexander's patch to get currency quote retrieval working again,
...
and some other small currency quote bugfixes. Closes 333572.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13723 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
36e7673159
Work around the fact that a validating XML parser barfs on gnucash's
...
use of an attribute in an undefined namespace.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13713 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
5aa2cc3552
Regularize capitalization of the word 'GnuCash'.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13691 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
9c5b9d501e
Update to compile on FC5.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13688 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Christian Stimming
3fee619945
More linker flags for libraries. More svnignores.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13638 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Christian Stimming
f31ba70fe3
Disable extra NFS lockfile checking on windows due to
...
missing link(2). This is not a problem because on windows
there also is no NFS, and the open(O_CREAT|O_EXCL) is
sufficiently atomic for our purposes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13634 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Christian Stimming
c4d5cfc28f
Disable file compression on windows due to missing pipe(2),
...
conditioned on #ifdef _WIN32. Insert code suggestion for windows,
but is disabled for now.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13630 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
5fd25c0154
Invert sense of conditions involving g_setenv() since its return value
...
is different than that of setenv(). Also, convert last remaining uses of
setenv() to g_setenv().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13594 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Christian Stimming
a56a386318
Check for errno macro EOPNOTSUPP only if it is defined
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13578 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Christian Stimming
7225164c60
Add compatibility ifdefs for unavailable functions
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13559 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
4b04137e7d
Never include "config.h" from a header file. Doing so makes it nigh
...
impossible to override configuration settings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13549 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
61a12b2715
Remove more functions to be deprecated in libqof2. (Pass Two - more
...
trivial substitutions, some simple translations.)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13547 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
41db89c516
Remove functions to be deprecated in libqof2. (Pass One - trivial
...
substitutions)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13545 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Christian Stimming
9bcdddbe43
Replace setenv() by g_setenv for increased cross-platform
...
compatibility.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13542 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Chris Shoemaker
c2ae90cc94
Factor out and create new function: xaccAccountIsPriced() that does the
...
common STOCK, MUTUAL or CURRENCY check.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13513 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Joshua Sled
d46ad76a70
Bug#332802: fix Export Accounts; remove `price_lookup` and `export` functions from GncFileBackend.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13417 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
David Hampton
b575dc47af
Compile cleanly with when _FORTIFY_SOURCE is defined. This definition
...
is forced when building RPMs on FC4.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13333 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
ba4a80579a
need g_type_init() because we don't actually "load" the file backend.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13278 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
b481174d1f
move jsled's g-type initialization into the module init
...
this way we don't need to worry about it in every test app.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13277 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Derek Atkins
bb9dbe25e7
combine XML_{CFLAGS,LIBS} into LIBXML2_{CLFLAGS,LIBS}
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13276 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago
Joshua Sled
88f70b0508
Fix test (init) failure.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13273 57a11ea4-9604-0410-9ed3-97b8803252fd
20 years ago