From: "Jakub Kądziołka" <kuba@kadziolka.net>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: 39647@debbugs.gnu.org
Subject: [bug#39647] [PATCH] gnu: Add unoconv.
Date: Thu, 20 Feb 2020 21:47:28 +0100 [thread overview]
Message-ID: <20200220204728.gzzf7ja4ljmcbkbw@gravity> (raw)
In-Reply-To: <20200217182509.11993-1-me@tobias.gr>
[-- Attachment #1: Type: text/plain, Size: 1676 bytes --]
Hi,
I tried to use the package in a `guix environment' and got:
~/guix% unoconv ~/Downloads/scheme-macro-phd.ps -o scheme-macro-phd.pdf
unoconv: format [jw4yj39s84jb4fkvqpsqwq-unoconv-0.9.0/bin/.unoconv-real] is not known to unoconv.
I feel like this might be an issue with the packaging. Does it work for
you?
On Mon, Feb 17, 2020 at 07:25:09PM +0100, Tobias Geerinckx-Rice wrote:
> + (modify-phases %standard-phases
> + (add-after 'unpack 'patch-find_offices
I think that the convention is to replace underscores by dashes in names
like these.
> + ;; find_offices is a convoluted cross-platform treasure hunt.
> + ;; Keep things simple and return the correct paths immediately.
> + (lambda* (#:key inputs #:allow-other-keys)
> + (let* ((libreoffice (assoc-ref inputs "libreoffice")))
> + (substitute* "unoconv"
> + (("def find_offices\\(\\):" match)
> + (string-append
> + match "\n"
> + " ret = []\n"
> + " office = Office("
> + "'" libreoffice "/lib/libreoffice', "
> + "'" libreoffice "/lib/libreoffice/program', "
> + "'" libreoffice "/lib/libreoffice/program', "
> + "'" libreoffice "/lib/libreoffice/program/pyuno.so', "
> + "'" libreoffice "/bin/soffice', "
> + "sys.executable, "
> + "None)\n"
> + " ret.append(office)\n"
> + " return ret\n")))
> + #t))))))
Wouldn't it be simpler to do
return [Office(...)]
?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-02-20 20:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-17 18:25 [bug#39647] [PATCH] gnu: Add unoconv Tobias Geerinckx-Rice via Guix-patches via
2020-02-20 20:47 ` Jakub Kądziołka [this message]
2020-02-21 1:24 ` Tobias Geerinckx-Rice via Guix-patches via
2020-02-21 1:29 ` Tobias Geerinckx-Rice via Guix-patches via
2020-02-21 2:40 ` [bug#39647] [PATCH v2] " Tobias Geerinckx-Rice via Guix-patches via
2020-02-22 14:49 ` bug#39647: " Jakub Kądziołka
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=20200220204728.gzzf7ja4ljmcbkbw@gravity \
--to=kuba@kadziolka.net \
--cc=39647@debbugs.gnu.org \
--cc=me@tobias.gr \
/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.