[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/11: gnu: poppler: Always use the same 'cairo-sans-poppler' variant.
From: |
guix-commits |
Subject: |
06/11: gnu: poppler: Always use the same 'cairo-sans-poppler' variant. |
Date: |
Tue, 20 Oct 2020 10:32:09 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit e21e0affd9d31a0e58d4df7c15b2b851be43279b
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Oct 20 09:34:23 2020 +0200
gnu: poppler: Always use the same 'cairo-sans-poppler' variant.
* gnu/packages/gtk.scm (cairo-sans-poppler): New variable.
* gnu/packages/pdf.scm (poppler)[inputs]: Use it instead of
locally-created variant.
---
gnu/packages/gtk.scm | 6 ++++++
gnu/packages/pdf.scm | 4 +---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index 8cd2824..4e58c65 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -173,6 +173,12 @@ affine transformation (scale, rotation, shear, etc.).")
(license license:lgpl2.1) ; or Mozilla Public License 1.1
(home-page "https://cairographics.org/")))
+(define-public cairo-sans-poppler
+ ;; Variant used to break the dependency cycle between Poppler and Cairo.
+ (package/inherit cairo
+ (inputs (alist-delete "poppler" (package-inputs cairo)))
+ (properties `((hidden? . #t)))))
+
(define-public cairo-xcb
(package
(inherit cairo)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index c9cce98..45bbab5 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -191,9 +191,7 @@ please install the @code{flyer-composer-gui} package.")))
;; To build poppler-glib (as needed by Evince), we need Cairo and
;; GLib. But of course, that Cairo must not depend on Poppler.
- ("cairo" ,(package (inherit cairo)
- (inputs (alist-delete "poppler"
- (package-inputs cairo)))))))
+ ("cairo" ,cairo-sans-poppler)))
(propagated-inputs
;; As per poppler-cairo and poppler-glib.pc.
;; XXX: Ideally we'd propagate Cairo too, but that would require a
- branch master updated (6ea61b4 -> 5f92f51), guix-commits, 2020/10/20
- 02/11: doc: Replace @example with @lisp in "Build Phases"., guix-commits, 2020/10/20
- 01/11: download: Update docstring., guix-commits, 2020/10/20
- 04/11: gnu: guile2.0-git: Remove now unnecessary libgit2 special case., guix-commits, 2020/10/20
- 05/11: packages: Better preserve object identity when rewriting., guix-commits, 2020/10/20
- 07/11: graph: Fix typo in docstring., guix-commits, 2020/10/20
- 03/11: graph: Adjust test for recent OCaml changes., guix-commits, 2020/10/20
- 08/11: tests: Do not fetch and print the random seed from the top level., guix-commits, 2020/10/20
- 09/11: guix build: Add '--with-debug-info'., guix-commits, 2020/10/20
- 11/11: news: Add entry for '--with-debug-info'., guix-commits, 2020/10/20
- 06/11: gnu: poppler: Always use the same 'cairo-sans-poppler' variant.,
guix-commits <=
- 10/11: guix build: Move package transformation options behind '--help-transform'., guix-commits, 2020/10/20