all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: 26558@debbugs.gnu.org
Subject: bug#26558: Opening URLs with xdg-open fails (eg. Gajim, Pumpa)
Date: Sat, 22 Apr 2017 12:16:26 +0200	[thread overview]
Message-ID: <87y3us21dx.fsf@fastmail.com> (raw)
In-Reply-To: <87fuh3hdke.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1938 bytes --]

Hi Maxim,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

> Hello Marius,
>
> Marius Bakke <mbakke@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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2017-04-22 10:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-19  0:28 bug#26558: Opening URLs with xdg-open fails (eg. Gajim, Pumpa) Ben Sturmfels
2017-04-19 16:59 ` Mekeor Melire
2017-04-19 19:05   ` Arun Isaac
2017-04-19 19:22     ` Marius Bakke
2017-04-20  5:07       ` Maxim Cournoyer
2017-04-22 10:16         ` Marius Bakke [this message]
2017-04-20  5:16       ` Arun Isaac
2017-04-22 10:31         ` Marius Bakke
2017-04-23 12:14           ` Ben Sturmfels
2017-04-23 23:00             ` Marius Bakke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y3us21dx.fsf@fastmail.com \
    --to=mbakke@fastmail.com \
    --cc=26558@debbugs.gnu.org \
    --cc=maxim.cournoyer@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.