[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
128/217: gnu: libsoup: Reverse inheritance relationship with libsoup-min
From: |
guix-commits |
Subject: |
128/217: gnu: libsoup: Reverse inheritance relationship with libsoup-minimal. |
Date: |
Sun, 14 Nov 2021 19:21:02 -0500 (EST) |
vagrantc pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 429249debdc5ccc1d6e216602199bfd1a63f4bfb
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Oct 17 00:18:31 2021 -0400
gnu: libsoup: Reverse inheritance relationship with libsoup-minimal.
Because starting small and adding more on top is easier maintenance-wise
than
the reverse.
* gnu/packages/gnome.scm (libsoup-minimal): New variable, made by stripping
all doc-related output, phases and inputs from libsoup.
[outputs]: Remove doc output.
[configure-flags]: Set gtk_doc option to false.
[phases]{patch-docbook-xml, move-doc}: Remove phases.
[native-inputs]{docbook-xml-4.1.2, gtk-doc}: Remove inputs.
(libsoup): Inherit from the above.
[outputs]: Re-add "doc" output.
[configure-flags]: Set gtk_doc option to true.
[phases]{patch-docbook-xml, move-doc}: Re-add phases.
[native-inputs]{docbook-xml-4.1.2, gtk-doc}: Re-add inputs.
---
gnu/packages/gnome.scm | 68 ++++++++++++++++++++++++--------------------------
1 file changed, 32 insertions(+), 36 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 6bb945f..a422868 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -4834,9 +4834,10 @@ claim to be \"RESTful\". It includes convenience
wrappers for libsoup and
libxml to ease remote use of the RESTful API.")
(license license:lgpl2.1+)))
-(define-public libsoup
+;;; A minimal version of libsoup used to prevent a cycle with Inkscape.
+(define-public libsoup-minimal
(package
- (name "libsoup")
+ (name "libsoup-minimal")
(version "2.72.0")
(source (origin
(method url-fetch)
@@ -4847,23 +4848,14 @@ libxml to ease remote use of the RESTful API.")
(base32
"11skbyw2pw32178q3h8pi7xqa41b2x4k6q4k9f75zxmh8s23y30p"))))
(build-system meson-build-system)
- (outputs '("out" "doc"))
(arguments
`(#:modules ((guix build utils)
(guix build meson-build-system)
(ice-9 popen))
- #:configure-flags '("-Dgtk_doc=true")
+ #:configure-flags '("-Dgtk_doc=false")
#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'patch-docbook-xml
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
- "/xml/dtd/docbook")))
- (substitute* (find-files "docs/reference")
- (("http://.*/docbookx\\.dtd")
- (string-append xmldoc "/docbookx.dtd")))
- #t)))
(add-after 'unpack 'adjust-tests
(lambda _
;; This test fails due to missing /etc/nsswitch.conf
@@ -4884,22 +4876,10 @@ libxml to ease remote use of the RESTful API.")
;; FIXME: ssl-test fails, starting with
;; glib-networking 2.68.x.
(substitute* "tests/meson.build"
- (("[ \t]*\\['ssl', true, \\[\\]\\],") ""))
- #t))
- (add-after 'install 'move-doc
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out"))
- (doc (assoc-ref outputs "doc")))
- (mkdir-p (string-append doc "/share"))
- (copy-recursively (string-append out "/share/gtk-doc")
- (string-append doc "/share/gtk-doc"))
- (delete-file-recursively (string-append out "/share/gtk-doc"))
- #t))))))
+ (("[ \t]*\\['ssl', true, \\[\\]\\],") "")))))))
(native-inputs
- `(("docbook-xml" ,docbook-xml-4.1.2)
- ("glib:bin" ,glib "bin") ; for glib-mkenums
+ `(("glib:bin" ,glib "bin") ; for glib-mkenums
("gobject-introspection" ,gobject-introspection)
- ("gtk-doc" ,gtk-doc/stable)
("intltool" ,intltool)
("pkg-config" ,pkg-config)
("python" ,python-wrapper)
@@ -4926,20 +4906,36 @@ libxml to ease remote use of the RESTful API.")
and the GLib main loop, to integrate well with GNOME applications.")
(license license:lgpl2.0+)))
-
-;;; A minimal version of libsoup used to prevent a cycle with Inkscape.
-(define-public libsoup-minimal
- (package/inherit libsoup
- (name "libsoup-minimal")
- (outputs (delete "doc" (package-outputs libsoup)))
+(define-public libsoup
+ (package/inherit libsoup-minimal
+ (name "libsoup")
+ (outputs (cons "doc" (package-outputs libsoup-minimal)))
(arguments
- (substitute-keyword-arguments (package-arguments libsoup)
+ (substitute-keyword-arguments (package-arguments libsoup-minimal)
((#:configure-flags configure-flags)
- `(delete "-Dgtk_doc=true" ,configure-flags))
+ `(cons "-Dgtk_doc=true"
+ (delete "-Dgtk_doc=false" ,configure-flags)))
((#:phases phases)
`(modify-phases ,phases
- (delete 'move-doc)))))
- (native-inputs (alist-delete "gtk-doc" (package-native-inputs libsoup)))))
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
+ "/xml/dtd/docbook")))
+ (substitute* (find-files "docs/reference")
+ (("http://.*/docbookx\\.dtd")
+ (string-append xmldoc "/docbookx.dtd"))))))
+ (add-after 'install 'move-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (doc (assoc-ref outputs "doc")))
+ (mkdir-p (string-append doc "/share"))
+ (copy-recursively (string-append out "/share/gtk-doc")
+ (string-append doc "/share/gtk-doc"))
+ (delete-file-recursively
+ (string-append out "/share/gtk-doc")))))))))
+ (native-inputs (append `(("docbook-xml" ,docbook-xml-4.1.2)
+ ("gtk-doc" ,gtk-doc))
+ (package-native-inputs libsoup-minimal)))))
(define-public libsecret
(package
- 78/217: gnu: gtk+-2: Fix ‘builder’ test., (continued)
- 78/217: gnu: gtk+-2: Fix ‘builder’ test., guix-commits, 2021/11/14
- 92/217: gnu: rust: Add rust 1.54 and move all non-bootstrapping logic to it., guix-commits, 2021/11/14
- 95/217: gnu: Move a few Python packages to (gnu packages python-build)., guix-commits, 2021/11/14
- 93/217: gnu: Build all Rust packages using the latest rustc., guix-commits, 2021/11/14
- 98/217: gnu: Add python-tomli., guix-commits, 2021/11/14
- 99/217: gnu: python-setuptools-scm: Update to 6.3.2, guix-commits, 2021/11/14
- 102/217: gnu: meson: Patch to allow installing to independent prefixes., guix-commits, 2021/11/14
- 101/217: gnu: python-pathlib2: Update to 2.3.6., guix-commits, 2021/11/14
- 111/217: gnu: colord-minimal: Introduce minimal variant., guix-commits, 2021/11/14
- 116/217: gnu: mesa: Update to 21.2.4., guix-commits, 2021/11/14
- 128/217: gnu: libsoup: Reverse inheritance relationship with libsoup-minimal.,
guix-commits <=
- 132/217: gnu: webkitgtk: Add a debug output., guix-commits, 2021/11/14
- 129/217: gnu: libsoup: Update to 3.0.1., guix-commits, 2021/11/14
- 130/217: gnu: webkitgtk: Use libsoup 3 and build with GCC., guix-commits, 2021/11/14
- 131/217: gnu: pulseaudio: Add doxygen to fix build., guix-commits, 2021/11/14
- 134/217: gnu: llvm: Add make-lld-wrapper, lld-wrapper and lld-as-ld-wrapper., guix-commits, 2021/11/14
- 139/217: gnu: gdk-pixbuf: Add a search path for the loaders cache file., guix-commits, 2021/11/14
- 147/217: gnu: nss: Update to 3.71., guix-commits, 2021/11/14
- 145/217: gnu: mariadb: Only run the main test suite to avoid flaky tests., guix-commits, 2021/11/14
- 151/217: gnu: python-hypothesis: Update to 6.23.4., guix-commits, 2021/11/14
- 153/217: gnu: boost: Update to 1.77.0., guix-commits, 2021/11/14