Package: xqilla
Version: 2.3.0-3
Severity: important
Tags: patch

Dear Maintainer,

xqilla is missing a Build-Depends on libtidy-dev.

Its built-in extension function parse-html is built on top of libtidy-dev.

Currently, the following minimal example gives the error below:

$ xqilla <(echo 
'data(xqilla:parse-html(fn:unparsed-text("http://www.google.at/";))/html/head/title)')
/dev/fd/63:1:6: error: A function called 
{http://xqilla.sourceforge.net/Functions}parse-html with 1 arguments is not 
defined [err:XPST0017]

xqilla:parse-html is documented here: 
http://xqilla.sourceforge.net/ExtensionFunctions#parse-html

After "apt install libtidy-dev" and rebuilding/installing xqilla, the example
From above works as expected:

$ xqilla <(echo 
'data(xqilla:parse-html(fn:unparsed-text("http://www.google.at/";))/html/head/title)')
Google


Background: XQilla is used as a backend to implement web scraping for a
Windows Screen Reader I am occasionally using.  It would be very useful
to be able to develop extensions cross platform by using xqilla on Linux
to test the actual XQuery code, and deploy the finished extension on
Windows later on.  However, the system in question makes use of
xqilla:parse-html for most of what it does.  So when I tried to run the
first initial examples, I immediately noticed that xqilla on Linux is claiming 
to
not have xqilla:parse-html, while the function is actually
documented.

Attachment: signature.asc
Description: PGP signature

--- xqilla-2.3.0/debian/control.orig	2016-04-17 20:20:42.699959631 +0200
+++ xqilla-2.3.0/debian/control	2016-04-17 20:13:32.533657724 +0200
@@ -1,7 +1,7 @@
 Source: xqilla
 Priority: extra
 Maintainer: Tommi Vainikainen <tvain...@debian.org>
-Build-Depends: debhelper (>= 8.1.3), dh-autoreconf, autotools-dev, libxerces-c-dev, chrpath, g++ (>= 4:5.2)
+Build-Depends: debhelper (>= 8.1.3), dh-autoreconf, autotools-dev, libxerces-c-dev, libtidy-dev, chrpath, g++ (>= 4:5.2)
 Standards-Version: 3.9.5
 Section: libs
 Vcs-Git: git://anonscm.debian.org/collab-maint/xqilla.git
-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages xqilla depends on:
ii  libc6           2.22-6
ii  libgcc1         1:5.3.1-14
ii  libstdc++6      5.3.1-14
ii  libxerces-c3.1  3.1.3+debian-1
ii  libxqilla6v5    2.3.0-3

-- 
CYa,
  ⡍⠁⠗⠊⠕

Reply via email to