Message ID | 20220202034852.31190-1-higashi@taiju.info |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 02A5727BBEA; Wed, 2 Feb 2022 03:54:36 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B9E2527BBE9 for <patchwork@mira.cbaines.net>; Wed, 2 Feb 2022 03:54:35 +0000 (GMT) Received: from localhost ([::1]:37528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1nF6j4-0000G9-UQ for patchwork@mira.cbaines.net; Tue, 01 Feb 2022 22:54:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nF6i4-0007o1-EF for guix-patches@gnu.org; Tue, 01 Feb 2022 22:53:33 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57223) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nF6ha-0007cd-T3 for guix-patches@gnu.org; Tue, 01 Feb 2022 22:53:31 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nF6ha-0000ZA-TS for guix-patches@gnu.org; Tue, 01 Feb 2022 22:53:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53536] [PATCH v2] gnu: Include poppler-data with poppler. References: <20220125235931.4451-1-higashi@taiju.info> In-Reply-To: <20220125235931.4451-1-higashi@taiju.info> Resent-From: Taiju HIGASHI <higashi@taiju.info> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 02 Feb 2022 03:53:02 +0000 Resent-Message-ID: <handler.53536.B53536.16437739822158@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53536 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: liliana.prikler@ist.tugraz.at, 53536@debbugs.gnu.org Cc: Taiju HIGASHI <higashi@taiju.info>, me@tobias.gr, leo@famulari.name, marius@gnu.org Received: via spool by 53536-submit@debbugs.gnu.org id=B53536.16437739822158 (code B ref 53536); Wed, 02 Feb 2022 03:53:02 +0000 Received: (at 53536) by debbugs.gnu.org; 2 Feb 2022 03:53:02 +0000 Received: from localhost ([127.0.0.1]:51117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1nF6ha-0000Yj-43 for submit@debbugs.gnu.org; Tue, 01 Feb 2022 22:53:02 -0500 Received: from mail-pf1-f173.google.com ([209.85.210.173]:44909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <higashi@taiju.info>) id 1nF6hY-0000YP-Om for 53536@debbugs.gnu.org; Tue, 01 Feb 2022 22:53:01 -0500 Received: by mail-pf1-f173.google.com with SMTP id n32so17676973pfv.11 for <53536@debbugs.gnu.org>; Tue, 01 Feb 2022 19:53:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=taiju-info.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=S4IZo44yxFoi+mSRjRuZg8iXkszdEn326cP3DSsvnKI=; b=JyKr5qZIE9x6JZH7x6igXQHe/FAk90ZgHv4DU3k95M0hBT2kxvk4IiJHXUUS4cswfL VkzXYuRL8k1te5EfUvgfP26b2HngcMkhIiIUCbhepVGHoQsA+gYZrmbk76vLn4aF6OQV 9yeh7Q+hKuVzGlPsJP00ZtCtEcH3McGh5vFy+gqQUSsTwT4WYVgXelUIs/lwmKhomB6B 8ICji0/E98nzzSC9ZcgWywKBwYI23aTpee6zYpeC12VkGIqik1B3nyOfL2xSBIFFCeBl XaLXIllT+Kqv3yh7OZpH1ptf6qA6fj8baYn9gfMZf2Ny6MeWIMxhgm/QOvDg/YgbnaCg Hrjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=S4IZo44yxFoi+mSRjRuZg8iXkszdEn326cP3DSsvnKI=; b=x/sAFOT9548o+zK1BOF9qCVFnpL9/wv0jpuJ6vkb8yA+AMbfnt8lj6J6XgJP7UwLjL kINiRjhmotF9yWAeseXIxZouvZk3rU+0ntR6obnMbizR8Yg+S8BM6rZ4KcSPeau+fRy2 FGZHHi4/mfKBLHdDqaQuQWn8dNDvHH12oAAxlNMBnP6A0XuUdWFSEwiNxR2HJvnn0qQb sjSZgbVFFh9vJiIjlf6q0Y6pvfiALKDmiwJR7Awr3GSxISnqQ3dGVb4YhkUhHnFFS2ZO cZgHiT37DjoMGDgVf0oVdZ1D/ewv90s1FKSSe3Q0DZOtNiY1235cu60qoE4kcYWG1WZN BE5A== X-Gm-Message-State: AOAM53179yacJJwScRJKQKDx95riMCiCSYR6anW7McIUWveEh8e5e05e wahfsrrRLCX9PHcEdNwNW3+s8w== X-Google-Smtp-Source: ABdhPJzq0W8sadQsvl7ePtpoUGm7zPFqDnyoRiZsp1IGFSaJTjdnSP91rfzc3XuGl9rbMPvVIyEuLg== X-Received: by 2002:a63:c156:: with SMTP id p22mr22826543pgi.215.1643773974689; Tue, 01 Feb 2022 19:52:54 -0800 (PST) Received: from Taix.flets-west.jp ([240b:253:ec40:2400:b7d1:436e:2d61:e925]) by smtp.gmail.com with ESMTPSA id x126sm13001434pgb.85.2022.02.01.19.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Feb 2022 19:52:54 -0800 (PST) From: Taiju HIGASHI <higashi@taiju.info> Date: Wed, 2 Feb 2022 12:48:53 +0900 Message-Id: <20220202034852.31190-1-higashi@taiju.info> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#53536,v2] gnu: Include poppler-data with poppler.
|
|
Commit Message
Taiju HIGASHI
Feb. 2, 2022, 3:48 a.m. UTC
--- gnu/packages/djvu.scm | 1 - gnu/packages/pdf.scm | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) -- 2.34.0
Comments
Am Mittwoch, dem 02.02.2022 um 12:48 +0900 schrieb Taiju HIGASHI: > --- > gnu/packages/djvu.scm | 1 - > gnu/packages/pdf.scm | 1 + > 2 files changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gnu/packages/djvu.scm b/gnu/packages/djvu.scm > index 07c77f318e..4773e408da 100644 > --- a/gnu/packages/djvu.scm > +++ b/gnu/packages/djvu.scm > @@ -159,7 +159,6 @@ (define-public pdf2djvu > ("exiv2" ,exiv2) > ("graphicsmagick" ,graphicsmagick) > ("poppler" ,poppler) > - ("poppler-data" ,poppler-data) > ("util-linux-lib" ,util-linux "lib"))) ; for libuuid > (arguments > `(#:test-target "test" > 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) > > ;; To build poppler-glib (as needed by Evince), we need > Cairo and > -- > 2.34.0 Note that the ChangeLog is missing here. It should be something along the lines of * gnu/packages/pdf.scm (poppler)[inputs]: Add poppler-data. * gnu/packages/djvu.scm (pdf2djvu)[inputs]: Remove poppler-data. In my personal opinion, adding and removing should be done in separate commits, as it appears that there are other ways in which a package can depend on poppler-data. On that note, I haven't built the package, so I need to ask you: are the contents of poppler-data now included in the install of poppler? If not, that might be a reason as to why gimp and glimpse are failing. Cheers
> I need to ask you: are the contents of poppler-data now included in the > install of poppler? If not, that might be a reason as to why gimp and > glimpse are failing. It is understood as follows. poppler (with poppler-data) 1. During the build process, poppler will check to see if poppler-data has been installed by pkg-config. 2. Newer versions of poppler depend on poppler-data directly, and pkg-config can detect poppler-data during the build process. gimp and glimpse (without poppler-data) 1. During the build process, gimp and glimpse will check to see if poppler-data has been installed by pkg-config. 2. gimp or glimpse depend on poppler-data indirectly, and pkg-config cannot detect poppler-data during the build process. The above is just a problem in the build process. Poppler knows where the poppler-data is during the build process, so the installed poppler can use it in its processing. I have confirmed in the poppler build log that poppler-data is detected. I have also confirmed that evince can render Japanese PDFs with the contents of this patch. I'll add the changelog and split the commits together at the end. Thanks
Hi, Am Mittwoch, dem 02.02.2022 um 22:35 +0900 schrieb Taiju HIGASHI: > > [...] > gimp and glimpse (without poppler-data) > > 1. During the build process, gimp and glimpse will check to see if > poppler-data > has been installed by pkg-config. > 2. gimp or glimpse depend on poppler-data indirectly, and pkg- > config > cannot detect poppler-data during the build process. Assertion (2) is wrong here: gimp's configure.ac directly checks for the existence of poppler-data. That makes it a direct dependency as far as I'm concerned, even if they only ever use it through poppler. > I have also confirmed that evince can render Japanese PDFs with the > contents of this patch. Good to know. > I'll add the changelog and split the commits together at the end. Thanks. @Leo I've heard that there's a Rust related world rebuild coming soon. Can we tack this feature onto that? Cheers
> Assertion (2) is wrong here: gimp's configure.ac directly checks for > the existence of poppler-data. That makes it a direct dependency as > far as I'm concerned, even if they only ever use it through poppler. I did not convey the context correctly. I thought I was describing the behavior of the gimp package with the poppler-data dependency removed (= gimp,which indirectly depend on poppler-data). In that state, gimp will fail to build because pkg-config cannot detect poppler-data during the build process. Therefore, I left the poppler-data dependency in gimp. I'm really sorry for my poor explanation.
Am Donnerstag, dem 03.02.2022 um 00:47 +0900 schrieb Taiju HIGASHI: > > Assertion (2) is wrong here: gimp's configure.ac directly checks for > > the existence of poppler-data. That makes it a direct dependency as > > far as I'm concerned, even if they only ever use it through poppler. > > I did not convey the context correctly. > > I thought I was describing the behavior of the gimp package with the > poppler-data dependency removed (= gimp,which indirectly depend on > poppler-data). > In that state, gimp will fail to build because pkg-config cannot detect > poppler-data during the build process. > Therefore, I left the poppler-data dependency in gimp. > > I'm really sorry for my poor explanation. Again, w.r.t. your explanation I claim that gimp does not "indirectly" depend on poppler-data, but directly. Voilà, le configure.ac [1]. [1] https://gitlab.gnome.org/GNOME/gimp/-/blob/GIMP_2_10_30/configure.ac#L2023-L2024
> > > Assertion (2) is wrong here: gimp's configure.ac directly checks for > > > the existence of poppler-data. That makes it a direct dependency as > > > far as I'm concerned, even if they only ever use it through poppler. > > > > I did not convey the context correctly. > > > > I thought I was describing the behavior of the gimp package with the > > poppler-data dependency removed (= gimp,which indirectly depend on > > poppler-data). > > In that state, gimp will fail to build because pkg-config cannot detect > > poppler-data during the build process. > > Therefore, I left the poppler-data dependency in gimp. > > > > I'm really sorry for my poor explanation. > Again, w.r.t. your explanation I claim that gimp does not "indirectly" > depend on poppler-data, but directly. Voilà, le configure.ac [1]. > > Assertion (2) is wrong here: gimp's configure.ac directly checks for > > the existence of poppler-data. That makes it a direct dependency as > > far as I'm concerned, even if they only ever use it through poppler. > > I did not convey the context correctly. > > I thought I was describing the behavior of the gimp package with the > poppler-data dependency removed (= gimp,which indirectly depend on > poppler-data). > In that state, gimp will fail to build because pkg-config cannot detect > poppler-data during the build process. > Therefore, I left the poppler-data dependency in gimp. > > I'm really sorry for my poor explanation. Your assertion that the Gimp depends on poppler-data directly, not indirectly, is absolutely true and correct. As you pointed out, the gimp source code definitely depends directly on poppler-data, so it can't be built without poppler-data. I was describing the removal of poppler-data from the input in the Gimp package definition as "gimp indirectly depends on poppler-data", which complicated the claim. I apologize for that.
diff --git a/gnu/packages/djvu.scm b/gnu/packages/djvu.scm index 07c77f318e..4773e408da 100644 --- a/gnu/packages/djvu.scm +++ b/gnu/packages/djvu.scm @@ -159,7 +159,6 @@ (define-public pdf2djvu ("exiv2" ,exiv2) ("graphicsmagick" ,graphicsmagick) ("poppler" ,poppler) - ("poppler-data" ,poppler-data) ("util-linux-lib" ,util-linux "lib"))) ; for libuuid (arguments `(#:test-target "test" 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) ;; To build poppler-glib (as needed by Evince), we need Cairo and