GNU bug report logs -
#26558
Opening URLs with xdg-open fails (eg. Gajim, Pumpa)
Previous Next
Reported by: Ben Sturmfels <ben <at> stumbles.id.au>
Date: Wed, 19 Apr 2017 00:30:02 UTC
Severity: normal
Done: Marius Bakke <mbakke <at> fastmail.com>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 26558 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Maxim,
Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:
> Hello Marius,
>
> Marius Bakke <mbakke <at> fastmail.com> writes:
>> [...]
>> + (add-before 'build 'locate-catalog-files
>> + (lambda* (#:key inputs #:allow-other-keys)
>> + (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
>> + "/xml/dtd/docbook"))
>> + (xsldoc (string-append (assoc-ref inputs "docbook-xsl")
>> + "/xml/xsl/docbook-xsl-"
>> + ,(package-version docbook-xsl))))
>> + (for-each (lambda (file)
>> + (substitute* file
>> + (("http://.*/docbookx\\.dtd")
>> + (string-append xmldoc "/docbookx.dtd"))))
>> + (find-files "scripts/desc" "\\.xml$"))
>> + (substitute* "scripts/Makefile"
>> + ;; Apparently `xmlto' does not bother to looks up the stylesheets
>> + ;; specified in the XML, unlike the above substitition. Instead it
>> + ;; uses a hard-coded URL. Work around it here, but if this is
>> + ;; common perhaps we should hardcode this path in xmlto itself.
>> + (("\\$\\(XMLTO\\) man")
>> + (string-append "$(XMLTO) -x " xsldoc
>> + "/manpages/docbook.xsl man")))
>
> Have you tried setting the XML_CATALOG_FILES variable? You might be able
> to get rid of the substitutions by using it. You can simply add libxml2
> as an input, which will define such variable for you (thanks to Ludovic
> for pointing this out previously!).
I tried now to add libxml2, and also set XML_CATALOG_FILES manually (and
both :)), but no luck. Thanks for the tip, though. Would be good to find
out why it doesn't work for this case.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 8 years and 86 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.