Your message dated Sat, 26 Dec 2009 00:02:07 +0000
with message-id <e1nok6h-0002gt...@ries.debian.org>
and subject line Bug#547303: fixed in ledger 2.6.2-2
has caused the Debian Bug report #547303,
regarding FTBFS with gcc4.4
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
547303: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547303
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: ledger
Version: 2.6.2-1


Hi!

After recent archive rebuild in Ubuntu we discovered that ledger
FTBFS because of new gcc4.4. Attached is a patch to fix the issue
(Inline patch though).

Regards,
   Stefan

--- ledger-2.6.2.orig/gnucash.cc
+++ ledger-2.6.2/gnucash.cc
@@ -201,7 +201,7 @@
 {
   const char * num = number.c_str();
 
-  if (char * p = std::strchr(num, '/')) {
+  if (const char * p = std::strchr(num, '/')) {
     std::string numer_str(num, p - num);
     std::string denom_str(p + 1);
 
only in patch2:
unchanged:
--- ledger-2.6.2.orig/textual.cc
+++ ledger-2.6.2/textual.cc
@@ -298,8 +298,8 @@
       DEBUG_PRINT("ledger.textual.parse", "line " << linenum << ": " <<
 		  "Parsed a note '" << xact->note << "'");
 
-      if (char * b = std::strchr(xact->note.c_str(), '['))
-	if (char * e = std::strchr(xact->note.c_str(), ']')) {
+      if (const char * b = std::strchr(xact->note.c_str(), '['))
+	if (const char * e = std::strchr(xact->note.c_str(), ']')) {
 	  char buf[256];
 	  std::strncpy(buf, b + 1, e - b - 1);
 	  buf[e - b - 1] = '\0';
only in patch2:
unchanged:
--- ledger-2.6.2.orig/option.cc
+++ ledger-2.6.2/option.cc
@@ -892,7 +892,7 @@
 namespace {
   void parse_price_setting(const char * optarg)
   {
-    char * equals = std::strchr(optarg, '=');
+    const char * equals = std::strchr(optarg, '=');
     if (! equals)
       return;
 

--- End Message ---
--- Begin Message ---
Source: ledger
Source-Version: 2.6.2-2

We believe that the bug you reported is fixed in the latest version of
ledger, which is due to be installed in the Debian FTP archive:

ledger_2.6.2-2.diff.gz
  to main/l/ledger/ledger_2.6.2-2.diff.gz
ledger_2.6.2-2.dsc
  to main/l/ledger/ledger_2.6.2-2.dsc
ledger_2.6.2-2_amd64.deb
  to main/l/ledger/ledger_2.6.2-2_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 547...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matt Palmer <mpal...@debian.org> (supplier of updated ledger package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 26 Dec 2009 10:38:50 +1100
Source: ledger
Binary: ledger
Architecture: source amd64
Version: 2.6.2-2
Distribution: unstable
Urgency: low
Maintainer: Matt Palmer <mpal...@debian.org>
Changed-By: Matt Palmer <mpal...@debian.org>
Description: 
 ledger     - command-line double-entry accounting program
Closes: 540409 547303 554040
Changes: 
 ledger (2.6.2-2) unstable; urgency=low
 .
   * CONSTipate gnucash.cc, textual.cc, and option.cc, so it builds with GCC
     4.4.  Thanks to Stefan Ebner for the patch.  Closes: #547303.
   * Install a man page (this will become redundant once 3.0 comes out, but
     until then...).  Thanks to Carl Worth for the manpage.  Closes: #540409.
   * Install emacs mode for ledger (ledger.el); untested, as I have no emacs
     fu, but here's hoping... Thanks to Kevin Ryde for the patch.
     Closes: #554040.
   * Bumped standards version; no changes required.
Checksums-Sha1: 
 4d0418aa5a16ba9631772f441c22306efed1e0ea 1068 ledger_2.6.2-2.dsc
 f4f1b75ff3e29719ab33ec24152c941240262d11 51957 ledger_2.6.2-2.diff.gz
 635bdfc13d60c7f690690d807b7a54400094bccd 706846 ledger_2.6.2-2_amd64.deb
Checksums-Sha256: 
 c7bb7235f7105b22d09eb8e05e27782da39546d184ac775a6b704cb210cd8c15 1068 
ledger_2.6.2-2.dsc
 28daa3cd5c1fdc3810d241b11daf10db5d92ba7afde5fce8e3908b120c1a4783 51957 
ledger_2.6.2-2.diff.gz
 8595dcacd39079fd65bc96323eeec8d0c41186a232be0dd0217816aa40b5ad5e 706846 
ledger_2.6.2-2_amd64.deb
Files: 
 02718210eb2096f09caf886953e42233 1068 utils optional ledger_2.6.2-2.dsc
 0492b80dcc0ce69b1358f9cc75111451 51957 utils optional ledger_2.6.2-2.diff.gz
 82cf75ff3bf236f2a02f5b15b798b44d 706846 utils optional ledger_2.6.2-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFLNU/lBEnrTWk1E4cRArnkAJ0e07KCaVNpOMDnDYse+nuHloXveACfSrHt
MheYljhCu3Yp66QFCc/6eeo=
=S3lc
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to