summaryrefslogtreecommitdiff
path: root/finance/gnucash/patches
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2003-02-27 04:08:24 +0000
committerjschauma <jschauma@pkgsrc.org>2003-02-27 04:08:24 +0000
commit397d50de8f08e9d0ef06f90484052bc51b595ea2 (patch)
treeb5b1d73760da10723485307d84f58c1ccc1f91cb /finance/gnucash/patches
parent12722e80dc8539166d23d3e06a555cf3a039286f (diff)
downloadpkgsrc-397d50de8f08e9d0ef06f90484052bc51b595ea2.tar.gz
Update gnucash to latest stable version 1.8.1.
This update is based on patches provided by Ron Roskens (roskens at elfin dot net) in PR pkg/20271 and his posts to tech-pkg@. Furthermore, this update fixes PR pkg/20109 by Bill Sommerfeld. Changes since our last version include: * src/register/ledger-core/split-register-control.c If we're expanded, ignore TRANS cursor classes. This prevents a bug where the exchange-rate dialog is realized when there really is nothing to do (because we're in an expanded transaction). * src/register/ledger-core/split-register-model.c Don't PERR() if we have no account -- this prevents annoying messages when handling multi-currency txns in the GL. Note: all GL txns are displayed in the locale currency (if possible). * src/register/ledger-core/split-register.c AUTO_LEDGER and JOURNAL register types _ARE_ expanded -- return TRUE, not FALSE. * src/report/standard-report/advanced-portfolio.scm: add extra arguments to prevent scheme crash. * src/gnome/glade/sched-xact.glade: Need to start the Editor dialog as non-visible so the ledger get's sized properly * src/gnome/dialog-scheduledxaction.c: resize the cal after the dialog is shown, so it get's sized properly. * src/register/register-gnome/gnucash-style.c: temporary fix to prevent 105346, until a real fix can be created. There is still a visual artifact leftover, but at least it doesn't crash. * src/scm/tip-list.scm: remove the tip that says that this is a development version. (Thanks, pogma) * src/scm/command-line.scm: remove the "development version" string when running "gnucash --version" * src/import-export/import-backend.c: Add heuristic for duplicate matching by check number. * doc/README.OFX: Update * src/engine/gnc-lot-p.h: some strange platforms assume "char" is 0..255 instead of -128..127. Force a "signed char" to make sure we get the latter interpretation. * src/app-utils/gnc-ui-utils.c: Don't round unless force_fit is true. Fixes Debian Bug #179802. * src/bin/overrides/gnucash-build-env.in: add business-utils * src/business/business-utils/Makefile.am: make scm-links so you can run gnucash from within the build tree * po/it.po: Updated Italian translation by Lorenzo Cappelletti <L.Cappelletti@mail.com>. * src/import-export/qif-import/qif-file.scm: mark "splits" as negative to make sure the numbers are reflected appropriately. * src/import-export/qif-import/qif-objects.scm: add a neg? value to a qif-split; use this when converting the split-amount. Fixes bug #105179 * src/calculation/Makefile.am: need to add GUILE_INCS * src/engine/Makefile.am: add ${INTLLIBS} for gettext() et al on platforms that don't have it in libc * src/backend/file/io-gncbin-r.c: don't need to define functions that are never used, so move the #ifdef around. Fixes # 105124 * src/import-export/qif-import/qif-file.scm: fix a wrong-number-of-arguments fatal crash when trying to reparse dates. * src/scm/main.scm: turn off devel version message
Diffstat (limited to 'finance/gnucash/patches')
-rw-r--r--finance/gnucash/patches/patch-ac100
-rw-r--r--finance/gnucash/patches/patch-ad14
-rw-r--r--finance/gnucash/patches/patch-ba16
-rw-r--r--finance/gnucash/patches/patch-bb28
-rw-r--r--finance/gnucash/patches/patch-bd22
-rw-r--r--finance/gnucash/patches/patch-be26
-rw-r--r--finance/gnucash/patches/patch-bf13
-rw-r--r--finance/gnucash/patches/patch-bg13
8 files changed, 86 insertions, 146 deletions
diff --git a/finance/gnucash/patches/patch-ac b/finance/gnucash/patches/patch-ac
deleted file mode 100644
index 2f9869c903d..00000000000
--- a/finance/gnucash/patches/patch-ac
+++ /dev/null
@@ -1,100 +0,0 @@
-$NetBSD: patch-ac,v 1.1.1.1 2000/12/11 13:53:26 wiz Exp $
-
---- /dev/null Mon Mar 22 08:33:49 1999
-+++ src/engine/asprintf.c Mon Mar 22 09:26:19 1999
-@@ -0,0 +1,95 @@
-+/* $NetBSD: patch-ac,v 1.1.1.1 2000/12/11 13:53:26 wiz Exp $ */
-+
-+/*
-+ * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
-+ * All rights reserved.
-+ *
-+ * Redistribution and use in source and binary forms, with or without
-+ * modification, are permitted provided that the following conditions
-+ * are met:
-+ * 1. Redistributions of source code must retain the above copyright
-+ * notice, this list of conditions and the following disclaimer.
-+ * 2. Redistributions in binary form must reproduce the above copyright
-+ * notice, this list of conditions and the following disclaimer in the
-+ * documentation and/or other materials provided with the distribution.
-+ * 3. The name of the author may not be used to endorse or promote products
-+ * derived from this software without specific prior written permission.
-+ *
-+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
-+ * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
-+ * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-+ */
-+#include <sys/param.h>
-+
-+/*
-+ * research has shown that NetBSD 1.3H was the first version of -current
-+ * with asprintf in libc. agc
-+ */
-+#if __NetBSD_Version__ < 103080000
-+
-+#include <sys/cdefs.h>
-+#if defined(LIBC_SCCS) && !defined(lint)
-+__RCSID("$NetBSD: patch-ac,v 1.1.1.1 2000/12/11 13:53:26 wiz Exp $");
-+#endif /* LIBC_SCCS and not lint */
-+
-+#include <stdio.h>
-+#include <stdlib.h>
-+#include <errno.h>
-+#if __STDC__
-+#include <stdarg.h>
-+#else
-+#include <varargs.h>
-+#endif
-+
-+int
-+#if __STDC__
-+asprintf(char **str, char const *fmt, ...)
-+#else
-+asprintf(str, fmt, va_alist)
-+ char **str;
-+ const char *fmt;
-+ va_dcl
-+#endif
-+{
-+ int ret;
-+ va_list ap;
-+ FILE f;
-+ unsigned char *_base;
-+
-+#if __STDC__
-+ va_start(ap, fmt);
-+#else
-+ va_start(ap);
-+#endif
-+ f._flags = __SWR | __SSTR | __SALC;
-+ f._bf._base = f._p = (unsigned char *)malloc(128);
-+ if (f._bf._base == NULL)
-+ goto err;
-+ f._bf._size = f._w = 127; /* Leave room for the NUL */
-+ ret = vfprintf(&f, fmt, ap);
-+ if (ret == -1)
-+ goto err;
-+ *f._p = '\0';
-+ va_end(ap);
-+ _base = realloc(f._bf._base, (size_t)(ret + 1));
-+ if (_base == NULL)
-+ goto err;
-+ *str = (char *)_base;
-+ return (ret);
-+
-+err:
-+ if (f._bf._base)
-+ free(f._bf._base);
-+ *str = NULL;
-+ errno = ENOMEM;
-+ return (-1);
-+}
-+
-+#endif /* NetBSD < 1.3H */
diff --git a/finance/gnucash/patches/patch-ad b/finance/gnucash/patches/patch-ad
deleted file mode 100644
index 35d516e64d0..00000000000
--- a/finance/gnucash/patches/patch-ad
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-ad,v 1.3 2001/12/17 22:29:05 mjl Exp $
-
---- src/engine/Makefile.in.orig Mon Dec 17 06:57:19 2001
-+++ src/engine/Makefile.in Mon Dec 17 22:49:34 2001
-@@ -220,7 +220,8 @@
- sixtp-to-dom-parser.c \
- sixtp-utils.c \
- sixtp-xml-write-utils.c \
-- sixtp.c
-+ sixtp.c \
-+ asprintf.c
-
-
- libgncengine_la_LDFLAGS = -version-info 2:3:1
diff --git a/finance/gnucash/patches/patch-ba b/finance/gnucash/patches/patch-ba
index 0bf14e1afe7..f216d7b21a4 100644
--- a/finance/gnucash/patches/patch-ba
+++ b/finance/gnucash/patches/patch-ba
@@ -1,13 +1,13 @@
-$NetBSD: patch-ba,v 1.1 2002/08/23 11:52:52 mjl Exp $
+$NetBSD: patch-ba,v 1.2 2003/02/27 04:08:25 jschauma Exp $
---- Makefile.in.orig Mon Aug 19 00:40:23 2002
-+++ Makefile.in Mon Aug 19 00:40:55 2002
-@@ -164,7 +164,7 @@
- cflags_set = @cflags_set@
- cxxflags_set = @cxxflags_set@
+--- Makefile.in.orig Mon Feb 3 07:50:09 2003
++++ Makefile.in Thu Feb 6 20:54:11 2003
+@@ -226,7 +226,7 @@
+ enable_html_docs = @enable_html_docs@
+ enable_latex_docs = @enable_latex_docs@
--SUBDIRS = intl macros debian doc-tools doc lib src po rpm accounts
-+SUBDIRS = macros debian doc-tools doc lib src po rpm accounts
+-SUBDIRS = intl m4 macros debian doc lib src intl-scm po rpm accounts
++SUBDIRS = m4 macros debian doc lib src intl-scm po rpm accounts
docdir = ${GNC_DOC_INSTALL_DIR}
diff --git a/finance/gnucash/patches/patch-bb b/finance/gnucash/patches/patch-bb
index f52d9eb7205..5e2ccf053b7 100644
--- a/finance/gnucash/patches/patch-bb
+++ b/finance/gnucash/patches/patch-bb
@@ -1,8 +1,8 @@
-$NetBSD: patch-bb,v 1.2 2003/01/15 22:24:14 wiz Exp $
+$NetBSD: patch-bb,v 1.3 2003/02/27 04:08:25 jschauma Exp $
---- configure.orig Thu Aug 22 05:07:06 2002
-+++ configure
-@@ -10216,8 +10216,8 @@ echo "$ac_t""$gt_cv_func_gnugettext1_lib
+--- configure.orig Mon Feb 3 07:20:35 2003
++++ configure Thu Feb 6 20:56:31 2003
+@@ -4002,8 +4002,8 @@
INTLOBJS="\$(GETTOBJS)"
BUILD_INCLUDED_LIBINTL=yes
USE_INCLUDED_LIBINTL=yes
@@ -13,23 +13,3 @@ $NetBSD: patch-bb,v 1.2 2003/01/15 22:24:14 wiz Exp $
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
fi
-@@ -11286,8 +11286,8 @@ LIBS="$oLIBS"
-
-
- ### --------------------------------------------------------------------------
--GTKHTML_LIBS=`$GNOME_CONFIG --libs gtkhtml`
--GTKHTML_CFLAGS=`$GNOME_CONFIG --cflags gtkhtml`
-+GTKHTML_LIBS=`pkg-config --libs gtkhtml-1.1`
-+GTKHTML_CFLAGS=`pkg-config --cflags gtkhtml-1.1`
-
- echo $ac_n "checking for main in -lgal""... $ac_c" 1>&6
- echo "configure:11294: checking for main in -lgal" >&5
-@@ -11336,7 +11336,7 @@ if eval "test \"`echo '$''{'ac_cv_lib_$a
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
--LIBS="-lgtkhtml $GTKHTML_LIBS $LIBS"
-+LIBS="$GTKHTML_LIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11342 "configure"
- #include "confdefs.h"
diff --git a/finance/gnucash/patches/patch-bd b/finance/gnucash/patches/patch-bd
new file mode 100644
index 00000000000..c2d358719fd
--- /dev/null
+++ b/finance/gnucash/patches/patch-bd
@@ -0,0 +1,22 @@
+$NetBSD: patch-bd,v 1.1 2003/02/27 04:08:25 jschauma Exp $
+
+--- src/calculation/Makefile.in.orig Mon Feb 3 01:50:54 2003
++++ src/calculation/Makefile.in Thu Feb 6 20:56:30 2003
+@@ -233,7 +233,7 @@
+ pkglib_LTLIBRARIES = libgncmod-calculation.la
+
+ libgncmod_calculation_la_LDFLAGS = -module
+-libgncmod_calculation_la_LIBADD = ${GLIB_LIBS}
++libgncmod_calculation_la_LIBADD = ${GLIB_LIBS} ${GUILE_LIBS}
+
+ libgncmod_calculation_la_SOURCES = \
+ expression_parser.c \
+@@ -259,7 +259,7 @@
+ numeric_ops.h
+
+
+-AM_CFLAGS = -I${top_srcdir}/src/gnc-module ${GLIB_CFLAGS}
++AM_CFLAGS = -I${top_srcdir}/src/gnc-module ${GLIB_CFLAGS} ${GUILE_INCS}
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_HEADER = ../../config.h
+ CONFIG_CLEAN_FILES =
diff --git a/finance/gnucash/patches/patch-be b/finance/gnucash/patches/patch-be
new file mode 100644
index 00000000000..dc6f99632e7
--- /dev/null
+++ b/finance/gnucash/patches/patch-be
@@ -0,0 +1,26 @@
+$NetBSD: patch-be,v 1.1 2003/02/27 04:08:25 jschauma Exp $
+
+--- src/doc/Makefile.in.orig Mon Feb 10 02:47:37 2003
++++ src/doc/Makefile.in Wed Feb 26 15:34:46 2003
+@@ -258,7 +258,7 @@
+ user-prefs-howto.txt
+
+
+-docdir = ${GNC_DOC_INSTALL_DIR}
++docdir = ${datadir}/doc
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_HEADER = ../../config.h
+ CONFIG_CLEAN_FILES =
+@@ -489,10 +489,10 @@
+ rm -f refman.pdf
+
+ install-data-hook:
+- $(mkinstalldirs) $(DESTDIR)$(docdir)/html
++ $(mkinstalldirs) $(DESTDIR)$(docdir)/html/gnucash
+ mkdir -p html #Workaround to allow libofx-cvs user to install without doc.
+ # cp -rp $(srcdir)/html ${docdir}
+- cp -rp html $(DESTDIR)$(docdir)/html
++ cp -p html/* $(DESTDIR)$(docdir)/html/gnucash
+
+ uninstall-hook:
+ rm -rf ${docdir}/html
diff --git a/finance/gnucash/patches/patch-bf b/finance/gnucash/patches/patch-bf
new file mode 100644
index 00000000000..ed5aff0cd62
--- /dev/null
+++ b/finance/gnucash/patches/patch-bf
@@ -0,0 +1,13 @@
+$NetBSD: patch-bf,v 1.1 2003/02/27 04:08:25 jschauma Exp $
+
+--- src/quotes/Makefile.in.orig 2003-02-10 07:48:24.000000000 +0000
++++ src/quotes/Makefile.in 2003-02-25 03:59:27.000000000 +0000
+@@ -230,7 +230,7 @@
+
+ gncsharedir = ${GNC_SHAREDIR}
+
+-bin_SCRIPTS = gnc-prices update-finance-quote
++bin_SCRIPTS = gnc-prices
+ gncshare_SCRIPTS = finance-quote-helper finance-quote-check
+
+ EXTRA_DIST = \
diff --git a/finance/gnucash/patches/patch-bg b/finance/gnucash/patches/patch-bg
new file mode 100644
index 00000000000..3a6cc57f7f4
--- /dev/null
+++ b/finance/gnucash/patches/patch-bg
@@ -0,0 +1,13 @@
+$NetBSD: patch-bg,v 1.1 2003/02/27 04:08:25 jschauma Exp $
+
+--- doc/examples/Makefile.in.orig Tue Feb 25 22:00:08 2003
++++ doc/examples/Makefile.in Tue Feb 25 22:02:40 2003
+@@ -228,7 +228,7 @@
+ enable_html_docs = @enable_html_docs@
+ enable_latex_docs = @enable_latex_docs@
+
+-docdir = ${GNC_DOC_INSTALL_DIR}/examples
++docdir = ${datadir}/examples/gnucash
+
+ doc_DATA = \
+ Money95bank_fr.qif \