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:
[EMAIL PROTECTED]:~$ gcc wv2demo.cc -lwv2 -lstdc++ -o wv2demo
[EMAIL PROTECTED]:~$ ./wv2demo tcpa.doc 2>&1 |wc
28314 335403 2003358
[EMAIL PROTECTED]:~$ 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 <[EMAIL PROTECTED]> 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
signature.asc
Description: Digital signature

