GNU bug report logs - #53536
[PATCH 0/1] Add poppler-with-data.

Previous Next

Package: guix-patches;

Reported by: Taiju HIGASHI <higashi <at> taiju.info>

Date: Wed, 26 Jan 2022 00:00:02 UTC

Severity: normal

Tags: patch

Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Taiju HIGASHI <higashi <at> taiju.info>
Subject: bug#53536: closed (Re: [PATCH v3 1/2] gnu: poppler: Add
 poppler-data.)
Date: Sun, 06 Feb 2022 00:01:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#53536: [PATCH 0/1] Add poppler-with-data.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 53536 <at> debbugs.gnu.org.

-- 
53536: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=53536
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Taiju HIGASHI <higashi <at> taiju.info>
Cc: me <at> tobias.gr, 53536-done <at> debbugs.gnu.org, marius <at> gnu.org, leo <at> famulari.name
Subject: Re: [PATCH v3 1/2] gnu: poppler: Add poppler-data.
Date: Sun, 06 Feb 2022 01:00:09 +0100
Am Donnerstag, dem 03.02.2022 um 15:23 +0900 schrieb Taiju HIGASHI:
> ---
>  gnu/packages/pdf.scm | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
> index d4e97e1d82..6894640317 100644
> --- a/gnu/packages/pdf.scm
> +++ b/gnu/packages/pdf.scm
> @@ -241,6 +241,7 @@ (define-public poppler
>               ("libtiff" ,libtiff)
>               ("lcms" ,lcms)
>               ("openjpeg" ,openjpeg)
> +             ("poppler-data", poppler-data)
>               ("zlib" ,zlib)
Pushed to core-updates along with some other changes.  You still need
to keep your own poppler-with-data around for some while, but it should
be fixed with the next merge, so I'll mark this as done :)

Cheers

[Message part 3 (message/rfc822, inline)]
From: Taiju HIGASHI <higashi <at> taiju.info>
To: guix-patches <at> gnu.org
Cc: Taiju HIGASHI <higashi <at> taiju.info>
Subject: [PATCH 0/1] Add poppler-with-data.
Date: Wed, 26 Jan 2022 08:59:30 +0900
Hi,

I would like to view PDF files in Japanese with a viewer such as Evince, but
it seems that it cannot render Japanese at present, so I wrote a patch.

As far as I know, in order for Poppler to render CJK text, one of the
following conditions must be met

1. Install poppler with poppler-data preinstalled.
2. Install poppler, then poppler-data in the path expected by
poppler. (`POPPLER_INSTALL_PREFIX/share/poppler`)

ref:
https://github.com/freedesktop/poppler/blob/277f5de9684b3392f0d585bd36ad1a5e9e9e9ed7/CMakeLists.txt#L348-L362

Guix provides poppler and poppler-data as standalone packages, but installing
both will not satisfy either of the above prerequisites.

So I defined poppler with poppler-data as a package with the name
popper-with-data.

This package is intended to be used in the installation of packages that also
have poppler as a dependency, as shown below.

   guix package -i evince --with-input=poppler=poppler-with-data

However, As a user, this is still a bit of a hassle, so if you have a better
idea, I'd like to see it.

Incidentally, it seems that Nix had defined its own environment variable
(PLOPPER_DATADIR) to deal with this problem.

The usage of this variable seems to have been changed in the next commit, but
I personally thought it was a generic and useful way to deal with the problem.

ref:
https://github.com/NixOS/nixpkgs/pull/17819/commits/1bde33074efa11fa2edcf71032d2e634f852f349

If it is allowed to integrate poppler and poppler-data, that would be the
simplest solution.

Thank you.

Taiju HIGASHI (1):
  gnu: Add poppler-with-data.

 gnu/packages/pdf.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

--
2.34.0



This bug report was last modified 3 years and 166 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.