[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#329109: marked as done (Debugging output in wv2)



Your message dated Sat, 17 Jun 2006 16:47:29 -0700
with message-id <E1FrkVl-0003D3-Gi@spohr.debian.org>
and subject line Bug#329109: fixed in wv2 0.2.2-6
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libwv2-1c2
Version: 0.2.2-2
Severity: minor

Hi Ben, 

I am using libwv2 to analyse the documents of the TCPA specification for
code generation purposes. My problem with the packages is this:

torsten@pulsar:~$ gcc wv2demo.cc -lwv2 -lstdc++ -o wv2demo
torsten@pulsar:~$ ./wv2demo tcpa.doc 2>&1 |wc
  28314  335403 2003358
torsten@pulsar:~$ ls -l tcpa.doc
-rw-r--r--  1 torsten torsten 5007360 Sep 19 18:00 tcpa.doc

This is an insane amount of drivel if you are trying to build a program
based on wv2. In my special case I am using my own python wrapper and
redirecting stderr has the side effect that I can't see any python error
messages :( For KDE users with graphical programs using wv2 this will
also fill up the .xsession-errors file...

As the stuff that the library spits to stderr is unreadable to mere
humans and mostly interesting when working on wv2 itself I'd suggest to
turn off debugging by default (at least the debugging output stuff). 

Looks like changing wvlog.h should do the trick but I only noticed after
building the package with the attached patch which I ask you to
consider.

Greetings

	Torsten
#include <wv2/parserfactory.h>
#include <wv2/parser.h>

using namespace wvWare;

int	main(int argc, char **argv)
{
	if (argc != 2) {
		fprintf(stderr, "Usage: %s file.doc\n", argv[0]);
		return 1;
	}

	SharedPtr<Parser> parser = ParserFactory::createParser(argv[1]);
	parser->parse();
	return 0;
}
diff -u wv2-0.2.2/debian/changelog wv2-0.2.2/debian/changelog
--- wv2-0.2.2/debian/changelog
+++ wv2-0.2.2/debian/changelog
@@ -1,3 +1,9 @@
+wv2 (0.2.2-2.1) unstable; urgency=low
+
+  * Disable the debugging drivel using the --disable-debug configure option.
+
+ -- Torsten Landschoff <torsten@debian.org>  Mon, 19 Sep 2005 17:49:32 +0200
+
 wv2 (0.2.2-2) unstable; urgency=low
 
   * C++ ABI transition (g++-3.3 -> g++-4.0).
diff -u wv2-0.2.2/debian/rules wv2-0.2.2/debian/rules
--- wv2-0.2.2/debian/rules
+++ wv2-0.2.2/debian/rules
@@ -29,7 +29,7 @@
 	dh_testdir
 
 	# Add here commands to configure the package.
-	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --disable-debug --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 
 	touch configure-stamp
 

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: wv2
Source-Version: 0.2.2-6

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

libwv2-1c2_0.2.2-6_i386.deb
  to pool/main/w/wv2/libwv2-1c2_0.2.2-6_i386.deb
libwv2-dev_0.2.2-6_i386.deb
  to pool/main/w/wv2/libwv2-dev_0.2.2-6_i386.deb
wv2_0.2.2-6.diff.gz
  to pool/main/w/wv2/wv2_0.2.2-6.diff.gz
wv2_0.2.2-6.dsc
  to pool/main/w/wv2/wv2_0.2.2-6.dsc



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 329109@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christopher Martin <chrsmrtn@debian.org> (supplier of updated wv2 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 ftpmaster@debian.org)


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

Format: 1.7
Date: Sat, 17 Jun 2006 19:00:35 -0400
Source: wv2
Binary: libwv2-1c2 libwv2-dev
Architecture: source i386
Version: 0.2.2-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Christopher Martin <chrsmrtn@debian.org>
Description: 
 libwv2-1c2 - a library for accessing Microsoft Word documents
 libwv2-dev - development files for Microsoft Word access library
Closes: 329109
Changes: 
 wv2 (0.2.2-6) unstable; urgency=medium
 .
   +++ Changes by Christopher Martin:
 .
   * Add a patch which fixes CVE-2006-2197, missing boundary checks which could
     allow the execution of arbitrary code. Urgency medium.
 .
   * Revamp patch system; should make further updates easier.
 .
   * Set Uploaders to the standard Qt/KDE team list.
 .
   +++ Changes by Pierre Habouzit:
 .
   * Add -DNDEBUG in the CFLAGS (no more horribly verbose debug output on
     stderr; see wvlog.h). (Closes: #329109)
Files: 
 58c2e24b895d6a71d4f64a8f164540cc 966 libs optional wv2_0.2.2-6.dsc
 749a93667af1a26fa65cc7e2de878546 388493 libs optional wv2_0.2.2-6.diff.gz
 3be77f29879377f1e32125ce40b03694 222466 libs optional libwv2-1c2_0.2.2-6_i386.deb
 7caad2a256157f5f53673e3ad19f0d4d 186420 libdevel optional libwv2-dev_0.2.2-6_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Signed by Christopher Martin <chrsmrtn@debian.org>

iD8DBQFElI3KU+gWW+vtsysRAvwSAJ9TtmH+ZCwqbrC+Kqc/Q6GZxB2elQCfZ0ug
YxiPPmO3EuvfTsMiPV2+NFc=
=dLp8
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: