From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#26558: Opening URLs with xdg-open fails (eg. Gajim, Pumpa) Date: Sat, 22 Apr 2017 12:16:26 +0200 Message-ID: <87y3us21dx.fsf@fastmail.com> References: <871sspdywc.fsf@sturm.com.au> <87vaq0l4fd.fsf@gmail.com> <5c8ca67b.AEMAJYZoETwAAAAAAAAAAAO2XMEAAAACwQwAAAAAAAW9WABY97Uk@mailjet.com> <874lxkurr3.fsf@fastmail.com> <87fuh3hdke.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1s6G-0004vg-Ki for bug-guix@gnu.org; Sat, 22 Apr 2017 06:17:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1s6B-0005nv-CA for bug-guix@gnu.org; Sat, 22 Apr 2017 06:17:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:35006) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d1s6A-0005mq-OO for bug-guix@gnu.org; Sat, 22 Apr 2017 06:17:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d1s69-000422-Oh for bug-guix@gnu.org; Sat, 22 Apr 2017 06:17:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87fuh3hdke.fsf@gmail.com> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Maxim Cournoyer Cc: 26558@debbugs.gnu.org --=-=-= Content-Type: text/plain Hi Maxim, Maxim Cournoyer writes: > Hello Marius, > > Marius Bakke 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. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlj7LXoACgkQoqBt8qM6 VPqahQf+JMFvSm5nClK45el+/oOr3gtobhDgpBK9kCju2CV9KvDIOuqQSBQqnWpy QqrE+RltghvSC1IhmgOElA8itdyHzLhjVilI3SsxQqlrvGxoo0ldiuKf0QCXFXZj s8VPACn97IxNpyPJPWK6AV0HJqweFBpyZL+NxdvWiJ1/d/7NmZQ13X/1YGmKNShU P1BVOV9tzGHwrpoUPnT85ABaMCFAcsZp9lqjHGlvqHPG1UJfo+wmhENrLWRb2r/k MvlqbnYoXiRi0K//yEnls/uGmqDqIbGV6fU7PiO2FstnvcHpbZ/ZoaDTk9SgmXAA +WG7C614+bkVjL9MfSRszUnDC6AHkA== =P7AV -----END PGP SIGNATURE----- --=-=-=--