Bug#376166: sablotron: FTBFS: Undefined references

2006-07-08 Thread Mohammed Adnène Trojette
tag 376166 + patch
thanks سلام שבת שלום
 
> Everything is not yet clean. I'll rework the patch and send a good one.
> Sorry for the noise.

Here it is. Sorry again.

-- 
adn
Mohammed Adnène Trojette
diff -u sablotron-1.0.2/debian/control sablotron-1.0.2/debian/control
--- sablotron-1.0.2/debian/control
+++ sablotron-1.0.2/debian/control
@@ -1,13 +1,13 @@
 Source: sablotron
 Priority: optional
 Maintainer: Ondřej Surý <[EMAIL PROTECTED]>
-Build-Depends: libexpat1-dev (>= 1.95.6), debhelper, libxml-parser-perl, cdbs, 
build-essential (>= 11)
-Standards-Version: 3.6.1
+Build-Depends: libexpat1-dev (>= 1.95.6), debhelper, libxml-parser-perl, cdbs
+Standards-Version: 3.7.2
 
 Package: sablotron
 Architecture: any
 Section: text
-Depends: libsablot0 (= ${Source-Version})
+Depends: libsablot0 (= ${Source-Version}), ${misc:Depends}
 Description: an XSL processor fully implemented in C++
  Sablotron is a fast, compact and portable XML toolkit implementing
  XSLT 1.0, DOM Level2 and XPath 1.0.
@@ -22,7 +22,7 @@
 Package: libsablot0-dev
 Architecture: any
 Section: libdevel
-Depends: libsablot0 (= ${Source-Version}), libc6-dev, libexpat1-dev (>= 1.95.6)
+Depends: ${misc:Depends}, libsablot0 (= ${Source-Version}), libc6-dev, 
libexpat1-dev (>= 1.95.6)
 Replaces: sablotron (<< 1.0.2-1)
 Description: an XSL processor fully implemented in C++ [development]
  Sablotron is a fast, compact and portable XML toolkit implementing
@@ -39,7 +39,7 @@
 Conflicts: libsablot0c102
 Architecture: any
 Section: libs
-Depends: libexpat1 (>= 1.95.6), ${shlibs:Depends}
+Depends: ${shlibs:Depends}
 Description: an XSL processor fully implemented in C++
  Sablotron is a fast, compact and portable XML toolkit implementing
  XSLT 1.0, DOM Level2 and XPath 1.0.
diff -u sablotron-1.0.2/debian/changelog sablotron-1.0.2/debian/changelog
--- sablotron-1.0.2/debian/changelog
+++ sablotron-1.0.2/debian/changelog
@@ -1,3 +1,15 @@
+sablotron (1.0.2-5.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/rules: 
++ Add explicitly -lexpat in LDFLAGS (Closes: #376166).
++ Specify sabcmd.1 and sablot-config.1 location.
+  * debian/control:
++ Bump Standards-Versions to 3.7.2.
++ Add ${shlib:Depends} and ${misc:Depends} here and there.
+
+ -- Mohammed Adnène Trojette <[EMAIL PROTECTED]>  Sat,  8 Jul 2006 00:34:29 
+0200
+
 sablotron (1.0.2-5) unstable; urgency=low
 
   * [FTBFS] Add back manual page for sablot-config (Closes: 360720)
diff -u sablotron-1.0.2/debian/rules sablotron-1.0.2/debian/rules
--- sablotron-1.0.2/debian/rules
+++ sablotron-1.0.2/debian/rules
@@ -4,6 +4,8 @@
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 include /usr/share/cdbs/1/class/gnome.mk
 
+DEB_INSTALL_MANPAGES_sablotron := doc/man/sabcmd.1 doc/man/sablot-config.1
+
 CFLAGS := -Wall -g -D_REENTRANT
 CXXFLAGS := -Wall -g -D_REENTRANT
 
@@ -16,2 +18,5 @@
 
+# Link with -lexpat
+LDFLAGS += -lexpat
+
 DEB_CONFIGURE_EXTRA_FLAGS := --enable-debugger


Bug#376166: sablotron: FTBFS: Undefined references

2006-07-08 Thread Mohammed Adnène Trojette
tag 376166 - patch
thanks سلام שבת שלום

> Here a fixed patch (the first had some superfluous or wrong things in it).

Everything is not yet clean. I'll rework the patch and send a good one.
Sorry for the noise.

-- 
adn
Mohammed Adnène Trojette



Bug#376166: sablotron: FTBFS: Undefined references

2006-07-08 Thread Mohammed Adnène Trojette
On Sat, Jul 08, 2006, Mohammed Adnène Trojette wrote:
> tag 376166 patch
> thanks سلام שבת שלום
> 
> On Fri, Jun 30, 2006, Daniel Schepler wrote:
> > /tmp/buildd/sablotron-1.0.2/src/engine/parser.cpp:381: undefined reference 
> > to `XML_SetEncoding'
> > ...
> 
> Here is a patch that fix the FTBFS bug. I also provide a manpage as
> required for any binary in /usr/bin.

Here a fixed patch (the first had some superfluous or wrong things in it).

-- 
adn
Mohammed Adnène Trojette
diff -u sablotron-1.0.2/debian/control sablotron-1.0.2/debian/control
--- sablotron-1.0.2/debian/control
+++ sablotron-1.0.2/debian/control
@@ -1,13 +1,13 @@
 Source: sablotron
 Priority: optional
 Maintainer: Ondřej Surý <[EMAIL PROTECTED]>
-Build-Depends: libexpat1-dev (>= 1.95.6), debhelper, libxml-parser-perl, cdbs, 
build-essential (>= 11)
-Standards-Version: 3.6.1
+Build-Depends: libexpat1-dev (>= 1.95.6), debhelper, libxml-parser-perl, cdbs
+Standards-Version: 3.7.2
 
 Package: sablotron
 Architecture: any
 Section: text
-Depends: libsablot0 (= ${Source-Version})
+Depends: libsablot0 (= ${Source-Version}), ${misc:Depends}
 Description: an XSL processor fully implemented in C++
  Sablotron is a fast, compact and portable XML toolkit implementing
  XSLT 1.0, DOM Level2 and XPath 1.0.
@@ -22,7 +22,7 @@
 Package: libsablot0-dev
 Architecture: any
 Section: libdevel
-Depends: libsablot0 (= ${Source-Version}), libc6-dev, libexpat1-dev (>= 1.95.6)
+Depends: ${misc:Depends}, libsablot0 (= ${Source-Version}), libc6-dev, 
libexpat1-dev (>= 1.95.6)
 Replaces: sablotron (<< 1.0.2-1)
 Description: an XSL processor fully implemented in C++ [development]
  Sablotron is a fast, compact and portable XML toolkit implementing
@@ -39,7 +39,7 @@
 Conflicts: libsablot0c102
 Architecture: any
 Section: libs
-Depends: libexpat1 (>= 1.95.6), ${shlibs:Depends}
+Depends: ${shlibs:Depends}
 Description: an XSL processor fully implemented in C++
  Sablotron is a fast, compact and portable XML toolkit implementing
  XSLT 1.0, DOM Level2 and XPath 1.0.
diff -u sablotron-1.0.2/debian/changelog sablotron-1.0.2/debian/changelog
--- sablotron-1.0.2/debian/changelog
+++ sablotron-1.0.2/debian/changelog
@@ -1,3 +1,16 @@
+sablotron (1.0.2-5.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/rules: 
++ Add explicit -lexpat (Closes: #376166).
++ Compile with -fPIC.
++ Specify sabcmd.1 and sablot-config.1 location.
+  * debian/control:
++ Bump Standards-Versions to 3.7.2.
++ Add ${shlib:Depends} and ${misc:Depends} here and there.
+
+ -- Mohammed Adnène Trojette <[EMAIL PROTECTED]>  Sat,  8 Jul 2006 00:34:29 
+0200
+
 sablotron (1.0.2-5) unstable; urgency=low
 
   * [FTBFS] Add back manual page for sablot-config (Closes: 360720)
diff -u sablotron-1.0.2/debian/rules sablotron-1.0.2/debian/rules
--- sablotron-1.0.2/debian/rules
+++ sablotron-1.0.2/debian/rules
@@ -4,8 +4,10 @@
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 include /usr/share/cdbs/1/class/gnome.mk
 
-CFLAGS := -Wall -g -D_REENTRANT
-CXXFLAGS := -Wall -g -D_REENTRANT
+DEB_INSTALL_MANPAGES_sablotron := doc/man/sabcmd.1 doc/man/sablot-config.1
+
+CFLAGS := -Wall -g -D_REENTRANT -fPIC
+CXXFLAGS := -Wall -g -D_REENTRANT -lexpat -fPIC
 
 # Ensure at build time that the library has no dependencies on undefined
 # symbols.


Bug#376166: sablotron: FTBFS: Undefined references

2006-07-07 Thread Mohammed Adnène Trojette
tag 376166 patch
thanks سلام שבת שלום

On Fri, Jun 30, 2006, Daniel Schepler wrote:
> /tmp/buildd/sablotron-1.0.2/src/engine/parser.cpp:381: undefined reference to 
> `XML_SetEncoding'
> ...

Here is a patch that fix the FTBFS bug. I also provide a manpage as
required for any binary in /usr/bin.

It may be applied and the package uploaded as part of the current 0-day
NMU policy.

I hope it helps,
-- 
adn
Mohammed Adnène Trojette
diff -u sablotron-1.0.2/debian/control sablotron-1.0.2/debian/control
--- sablotron-1.0.2/debian/control
+++ sablotron-1.0.2/debian/control
@@ -1,13 +1,13 @@
 Source: sablotron
 Priority: optional
 Maintainer: Ondřej Surý <[EMAIL PROTECTED]>
-Build-Depends: libexpat1-dev (>= 1.95.6), debhelper, libxml-parser-perl, cdbs, 
build-essential (>= 11)
-Standards-Version: 3.6.1
+Build-Depends: libexpat1-dev (>= 1.95.6), debhelper, libxml-parser-perl, cdbs
+Standards-Version: 3.7.2
 
 Package: sablotron
 Architecture: any
 Section: text
-Depends: libsablot0 (= ${Source-Version})
+Depends: libsablot0 (= ${source:Version}), ${misc:Depends}
 Description: an XSL processor fully implemented in C++
  Sablotron is a fast, compact and portable XML toolkit implementing
  XSLT 1.0, DOM Level2 and XPath 1.0.
@@ -22,7 +22,7 @@
 Package: libsablot0-dev
 Architecture: any
 Section: libdevel
-Depends: libsablot0 (= ${Source-Version}), libc6-dev, libexpat1-dev (>= 1.95.6)
+Depends: ${misc:Depends}, libsablot0 (= ${source:Version}), libc6-dev, 
libexpat1-dev (>= 1.95.6)
 Replaces: sablotron (<< 1.0.2-1)
 Description: an XSL processor fully implemented in C++ [development]
  Sablotron is a fast, compact and portable XML toolkit implementing
@@ -39,7 +39,7 @@
 Conflicts: libsablot0c102
 Architecture: any
 Section: libs
-Depends: libexpat1 (>= 1.95.6), ${shlibs:Depends}
+Depends: ${shlibs:Depends}
 Description: an XSL processor fully implemented in C++
  Sablotron is a fast, compact and portable XML toolkit implementing
  XSLT 1.0, DOM Level2 and XPath 1.0.
diff -u sablotron-1.0.2/debian/changelog sablotron-1.0.2/debian/changelog
--- sablotron-1.0.2/debian/changelog
+++ sablotron-1.0.2/debian/changelog
@@ -1,3 +1,16 @@
+sablotron (1.0.2-5.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/rules: add explicit -lexpat (Closes: #376166).
+  * Add debian/sabcmd.1 from sabcmd --help output.
+  * debian/control:
++ Remove useless Build-Depends on build-essentials.
++ Bump Standards-Versions to 3.7.2.
++ Add ${shlib:Depends} and ${misc:Depends} here and there.
++ Change ${Source-Version} to ${Source:Version}.
+
+ -- Mohammed Adnène Trojette <[EMAIL PROTECTED]>  Sat,  8 Jul 2006 00:34:29 
+0200
+
 sablotron (1.0.2-5) unstable; urgency=low
 
   * [FTBFS] Add back manual page for sablot-config (Closes: 360720)
diff -u sablotron-1.0.2/debian/rules sablotron-1.0.2/debian/rules
--- sablotron-1.0.2/debian/rules
+++ sablotron-1.0.2/debian/rules
@@ -4,8 +4,10 @@
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 include /usr/share/cdbs/1/class/gnome.mk
 
+DEB_INSTALL_MANPAGES_sablotron := debian/sabcmd.1
+
 CFLAGS := -Wall -g -D_REENTRANT
-CXXFLAGS := -Wall -g -D_REENTRANT
+CXXFLAGS := -Wall -g -D_REENTRANT -lexpat
 
 # Ensure at build time that the library has no dependencies on undefined
 # symbols.
only in patch2:
unchanged:
--- sablotron-1.0.2.orig/debian/sabcmd.1
+++ sablotron-1.0.2/debian/sabcmd.1
@@ -0,0 +1,81 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.36.
+.TH SABCMD "1" "July 2006" "sabcmd " "User Commands"
+.SH NAME
+sabcmd \- manual page for sabcmd 
+.SH DESCRIPTION
+.SS "Usage for single XSLT:"
+.IP
+sabcmd [options]  [ []] [assignments]
+.SS "Usage in batch processing:"
+.IP
+chain multiple stylesheets, starting with a single input file:
+.IP
+sabcmd [options] \fB\-\-chain\-xsl\fR   []+ 
[assignments]
+.IP
+run multiple stylesheets on a single input file:
+.IP
+sabcmd [options] \fB\-\-batch\-xml\fR  [ ]+ 
[assignments]
+.IP
+run a single stylesheet on multiple input files:
+.IP
+sabcmd [options] \fB\-\-batch\-xsl\fR  [ ]+ 
[assignments]
+.SH OPTIONS
+.TP
+\fB\-\-chain\-xsl\fR, \fB\-c\fR
+single input file, multiple chained stylesheets
+.TP
+\fB\-\-batch\-xml\fR, \fB\-x\fR
+single input file, multiple stylesheets
+.TP
+\fB\-\-batch\-xsl\fR, \fB\-s\fR
+multiple input files, single stylesheet
+.TP
+\fB\-\-base\fR=\fINAME\fR, \fB\-b\fR
+set the hard base URI to NAME
+.TP
+\fB\-\-debug\-options\fR
+display information on debugging options
+.TP
+\fB\-\-help\fR, \-?
+display this help message
+.TP
+\fB\-\-log\-file\fR=\fINAME\fR, \fB\-L\fR
+set the log file, turn logging on
+.TP
+\fB\-\-measure\fR, \fB\-m\fR
+measure the processing time
+.TP
+\fB\-\-version\fR, \fB\-v\fR
+display version information
+.SS "Defaults:"
+.IP
+ = stdin,  = stdout
+logging off, no hard base URI
+.SS "Notes:"
+.IP
+\- assignments define named buffers (name=value)
+.IP
+and top\-level params ($name=value).
+.IP
+\- to specify value in an option, use \fB\-b\fR=\fINAME\fR or \fB\-b\fR NAME
+

Bug#376166: sablotron: FTBFS: Undefined references

2006-06-30 Thread Daniel Schepler
Package: sablotron
Version: 1.0.2-5
Severity: serious

From my pbuilder build log:

...
/bin/sh ../../libtool --mode=link --tag=CXX g++  -Wall -g -D_REENTRANT   
-Wl,-z,defs -Wl,-O1 -o libsablot.la -rpath /usr/lib -version-info 100:2:100 
arena.lo base.lo context.lo datastr.lo debugger.lo decimal.lo domprovider.lo 
encoding.lo error.lo expr.lo hash.lo jsdom.lo jsext.lo key.lo numbering.lo 
output.lo parser.lo platform.lo proc.lo sablot.lo sdom.lo situa.lo sxpath.lo 
tree.lo uri.lo utf8.lo vars.lo verts.lo
g++ -shared -nostdlib /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crti.o 
/usr/lib/gcc/i486-linux-gnu/4.1.2/crtbeginS.o  .libs/arena.o .libs/base.o 
.libs/context.o .libs/datastr.o .libs/debugger.o .libs/decimal.o 
.libs/domprovider.o .libs/encoding.o .libs/error.o .libs/expr.o .libs/hash.o 
.libs/jsdom.o .libs/jsext.o .libs/key.o .libs/numbering.o .libs/output.o 
.libs/parser.o .libs/platform.o .libs/proc.o .libs/sablot.o .libs/sdom.o 
.libs/situa.o .libs/sxpath.o .libs/tree.o .libs/uri.o .libs/utf8.o .libs/vars.o 
.libs/verts.o  -L/usr/lib/gcc/i486-linux-gnu/4.1.2 
-L/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib -L/lib/../lib 
-L/usr/lib/../lib -lstdc++ -lm -lc -lgcc_s 
/usr/lib/gcc/i486-linux-gnu/4.1.2/crtendS.o 
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crtn.o  -Wl,-z -Wl,defs 
-Wl,-O1 -Wl,-soname -Wl,libsablot.so.0 -o .libs/libsablot.so.0.100.2
.libs/parser.o: In function `TreeConstructer::getCurrentLineNumber() const':
/tmp/buildd/sablotron-1.0.2/src/engine/parser.cpp:215: undefined reference to 
`XML_GetCurrentLineNumber'
.libs/parser.o: In function `TreeConstructer::feedDocumentToParser(Situation&, 
void*)':
/tmp/buildd/sablotron-1.0.2/src/engine/parser.cpp:381: undefined reference to 
`XML_SetEncoding'
...
collect2: ld returned 1 exit status
make[3]: *** [libsablot.la] Error 1
make[3]: Leaving directory `/tmp/buildd/sablotron-1.0.2/src/engine'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/sablotron-1.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/buildd/sablotron-1.0.2'
make: *** [debian/stamp-makefile-build] Error 2
-- 
Daniel Schepler