all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#63721] [PATCH 0/2] MPD update & fixes
@ 2023-05-25 17:20 Bruno Victal
  2023-05-25 17:21 ` [bug#63721] [PATCH 1/2] gnu: mpd: Update to 0.23.13 Bruno Victal
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Bruno Victal @ 2023-05-25 17:20 UTC (permalink / raw)
  To: 63721; +Cc: Bruno Victal

This patch series updates MPD to the latest available version (0.23.13)
whilst also:

* Properly enabling tests (these weren't being built and the build
system was a giving misleading answer for 'check phase)
* Removing unused inputs (cmake)
* Splitting the HTML manual from the main package since it accounts
for nearly half of its size.

Additionally tested with `make check-system TESTS=mpd`.


Bruno Victal (2):
  gnu: mpd: Update to 0.23.13.
  gnu: mpd: Split outputs.

 gnu/packages/mpd.scm | 26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)


base-commit: 0c662d570eec2fe8879e49bd4ccc31950aeb9ef8
-- 
2.39.2





^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#63721] [PATCH 1/2] gnu: mpd: Update to 0.23.13.
  2023-05-25 17:20 [bug#63721] [PATCH 0/2] MPD update & fixes Bruno Victal
@ 2023-05-25 17:21 ` Bruno Victal
  2023-05-25 17:21 ` [bug#63721] [PATCH 2/2] gnu: mpd: Split outputs Bruno Victal
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Bruno Victal @ 2023-05-25 17:21 UTC (permalink / raw)
  To: 63721; +Cc: Bruno Victal

Properly enable tests as well since meson misleadingly reported a success when
clearly no tests were performed:
````````````````````````````````````
…
starting phase `check'
ninja: no work to do.
No tests defined.
phase `check' succeeded after 0.2 seconds
starting phase `install'
…
````````````````````````````````````

* gnu/packages/mpd.scm (mpd): Update to 0.23.13.
[arguments]: Set #:configure-flags option to build tests.
[native-inputs]: Add googletest, zip. Remove unused cmake.
---
 gnu/packages/mpd.scm | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm
index 5005da4e87..3259217989 100644
--- a/gnu/packages/mpd.scm
+++ b/gnu/packages/mpd.scm
@@ -118,7 +118,7 @@ (define-public libmpdclient
 (define-public mpd
   (package
     (name "mpd")
-    (version "0.23.12")
+    (version "0.23.13")
     (source (origin
               (method url-fetch)
               (uri
@@ -127,12 +127,13 @@ (define-public mpd
                               "/mpd-" version ".tar.xz"))
               (sha256
                (base32
-                "1rq2hyfvwwri3sivab747csza2i096y7m8563rl5mhpchhiadz5p"))))
+                "06fmy68lfrsi5y03l53dnwcynqhwh5f5vhdpbsr8lzmvzgk02sx9"))))
     (build-system meson-build-system)
     (arguments
      (list
       #:configure-flags #~(list "-Ddocumentation=enabled"
-                                "-Dsystemd=enabled")
+                                "-Dsystemd=enabled"
+                                "-Dtest=true")
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'enable-elogind
@@ -182,7 +183,12 @@ (define-public mpd
                    yajl
                    zlib
                    zziplib)))
-    (native-inputs (list cmake pkg-config python-sphinx))
+    (native-inputs (list pkg-config python-sphinx googletest
+                         ;; See test/meson.build for information about these
+                         ;; additional dependencies.
+                         ;;
+                         ;; Used when zziplib feature is enabled.
+                         zip))
     ;; Missing optional inputs:
     ;;   libcdio_paranoia
     ;;   libmms

base-commit: 0c662d570eec2fe8879e49bd4ccc31950aeb9ef8
-- 
2.39.2





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#63721] [PATCH 2/2] gnu: mpd: Split outputs.
  2023-05-25 17:20 [bug#63721] [PATCH 0/2] MPD update & fixes Bruno Victal
  2023-05-25 17:21 ` [bug#63721] [PATCH 1/2] gnu: mpd: Update to 0.23.13 Bruno Victal
@ 2023-05-25 17:21 ` Bruno Victal
  2023-05-25 19:47   ` Liliana Marie Prikler
  2023-05-26  7:06 ` [bug#63721] [PATCH v2 1/2] gnu: mpd: Update to 0.23.13 Bruno Victal
  2023-05-26  7:06 ` [bug#63721] [PATCH v2 2/2] gnu: mpd: Split outputs Bruno Victal
  3 siblings, 1 reply; 6+ messages in thread
From: Bruno Victal @ 2023-05-25 17:21 UTC (permalink / raw)
  To: 63721; +Cc: Bruno Victal

The HTML manual accounts for more than 40% of the package size.

* gnu/packages/mpd.scm (mpd)[outputs]: Add 'html' output.
[arguments]: Add split-package phase.
---
 gnu/packages/mpd.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm
index 3259217989..fa16e60484 100644
--- a/gnu/packages/mpd.scm
+++ b/gnu/packages/mpd.scm
@@ -146,7 +146,16 @@ (define-public mpd
                 (("systemd_dep = declare_dependency" all)
                  (string-append "_" all)))
               (substitute* "meson.build"
-                (("systemd_dep,") "systemd_dep, _systemd_dep,")))))))
+                (("systemd_dep,") "systemd_dep, _systemd_dep,"))))
+          (add-after 'install 'split-package
+            (lambda _
+              ;; The HTML manual accounts for over 40% of the disk
+              ;; space used by the package.
+              (let* ((path   "/share/doc/mpd/html")
+                     (htmldir  (string-append #$output path))
+                     (htmldir* (string-append #$output:html path)))
+                (mkdir-p (dirname htmldir*))
+                (rename-file htmldir htmldir*)))))))
     (inputs (append
              (if (target-linux?) (list liburing) '())
              (list ao
@@ -189,6 +198,7 @@ (define-public mpd
                          ;;
                          ;; Used when zziplib feature is enabled.
                          zip))
+    (outputs (list "out" "html"))
     ;; Missing optional inputs:
     ;;   libcdio_paranoia
     ;;   libmms
-- 
2.39.2





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#63721] [PATCH 2/2] gnu: mpd: Split outputs.
  2023-05-25 17:21 ` [bug#63721] [PATCH 2/2] gnu: mpd: Split outputs Bruno Victal
@ 2023-05-25 19:47   ` Liliana Marie Prikler
  0 siblings, 0 replies; 6+ messages in thread
From: Liliana Marie Prikler @ 2023-05-25 19:47 UTC (permalink / raw)
  To: Bruno Victal, 63721

Am Donnerstag, dem 25.05.2023 um 18:21 +0100 schrieb Bruno Victal:
> The HTML manual accounts for more than 40% of the package size.
> 
> * gnu/packages/mpd.scm (mpd)[outputs]: Add 'html' output.
> [arguments]: Add split-package phase.
Prefer “doc” as a separate output, as the logic for that is mostly
there already.  Or use “doc” and “doc-html” if you really must.

Cheers




^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#63721] [PATCH v2 1/2] gnu: mpd: Update to 0.23.13.
  2023-05-25 17:20 [bug#63721] [PATCH 0/2] MPD update & fixes Bruno Victal
  2023-05-25 17:21 ` [bug#63721] [PATCH 1/2] gnu: mpd: Update to 0.23.13 Bruno Victal
  2023-05-25 17:21 ` [bug#63721] [PATCH 2/2] gnu: mpd: Split outputs Bruno Victal
@ 2023-05-26  7:06 ` Bruno Victal
  2023-05-26  7:06 ` [bug#63721] [PATCH v2 2/2] gnu: mpd: Split outputs Bruno Victal
  3 siblings, 0 replies; 6+ messages in thread
From: Bruno Victal @ 2023-05-26  7:06 UTC (permalink / raw)
  To: 63721; +Cc: Bruno Victal, liliana.prikler

Properly enable tests as well since meson misleadingly reported a success when
clearly no tests were performed:
````````````````````````````````````
…
starting phase `check'
ninja: no work to do.
No tests defined.
phase `check' succeeded after 0.2 seconds
starting phase `install'
…
````````````````````````````````````

CMake was also removed from native inputs since it's only relevant when
building for Android or Windows.

* gnu/packages/mpd.scm (mpd): Update to 0.23.13.
[arguments]: Set #:configure-flags option to build tests.
[native-inputs]: Add googletest, zip. Remove cmake.
---
 gnu/packages/mpd.scm | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm
index 5005da4e87..3259217989 100644
--- a/gnu/packages/mpd.scm
+++ b/gnu/packages/mpd.scm
@@ -118,7 +118,7 @@ (define-public libmpdclient
 (define-public mpd
   (package
     (name "mpd")
-    (version "0.23.12")
+    (version "0.23.13")
     (source (origin
               (method url-fetch)
               (uri
@@ -127,12 +127,13 @@ (define-public mpd
                               "/mpd-" version ".tar.xz"))
               (sha256
                (base32
-                "1rq2hyfvwwri3sivab747csza2i096y7m8563rl5mhpchhiadz5p"))))
+                "06fmy68lfrsi5y03l53dnwcynqhwh5f5vhdpbsr8lzmvzgk02sx9"))))
     (build-system meson-build-system)
     (arguments
      (list
       #:configure-flags #~(list "-Ddocumentation=enabled"
-                                "-Dsystemd=enabled")
+                                "-Dsystemd=enabled"
+                                "-Dtest=true")
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'enable-elogind
@@ -182,7 +183,12 @@ (define-public mpd
                    yajl
                    zlib
                    zziplib)))
-    (native-inputs (list cmake pkg-config python-sphinx))
+    (native-inputs (list pkg-config python-sphinx googletest
+                         ;; See test/meson.build for information about these
+                         ;; additional dependencies.
+                         ;;
+                         ;; Used when zziplib feature is enabled.
+                         zip))
     ;; Missing optional inputs:
     ;;   libcdio_paranoia
     ;;   libmms

base-commit: 3299b40b3599371890816b52d65a6a5ada1b1131
-- 
2.39.2





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#63721] [PATCH v2 2/2] gnu: mpd: Split outputs.
  2023-05-25 17:20 [bug#63721] [PATCH 0/2] MPD update & fixes Bruno Victal
                   ` (2 preceding siblings ...)
  2023-05-26  7:06 ` [bug#63721] [PATCH v2 1/2] gnu: mpd: Update to 0.23.13 Bruno Victal
@ 2023-05-26  7:06 ` Bruno Victal
  3 siblings, 0 replies; 6+ messages in thread
From: Bruno Victal @ 2023-05-26  7:06 UTC (permalink / raw)
  To: 63721; +Cc: Bruno Victal, liliana.prikler

The HTML manual accounts for more than 40% of the package size.

* gnu/packages/mpd.scm (mpd)[outputs]: Add 'doc' output.
[arguments]: Add split-package phase.
---
 gnu/packages/mpd.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm
index 3259217989..d4654d4842 100644
--- a/gnu/packages/mpd.scm
+++ b/gnu/packages/mpd.scm
@@ -146,7 +146,16 @@ (define-public mpd
                 (("systemd_dep = declare_dependency" all)
                  (string-append "_" all)))
               (substitute* "meson.build"
-                (("systemd_dep,") "systemd_dep, _systemd_dep,")))))))
+                (("systemd_dep,") "systemd_dep, _systemd_dep,"))))
+          (add-after 'install 'split-package
+            (lambda _
+              ;; The HTML manual accounts for over 40% of the disk
+              ;; space used by the package.
+              (let* ((path   "/share/doc/mpd/html")
+                     (htmldir  (string-append #$output path))
+                     (htmldir* (string-append #$output:doc path)))
+                (mkdir-p (dirname htmldir*))
+                (rename-file htmldir htmldir*)))))))
     (inputs (append
              (if (target-linux?) (list liburing) '())
              (list ao
@@ -189,6 +198,7 @@ (define-public mpd
                          ;;
                          ;; Used when zziplib feature is enabled.
                          zip))
+    (outputs (list "out" "doc"))
     ;; Missing optional inputs:
     ;;   libcdio_paranoia
     ;;   libmms
-- 
2.39.2





^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-26  7:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-25 17:20 [bug#63721] [PATCH 0/2] MPD update & fixes Bruno Victal
2023-05-25 17:21 ` [bug#63721] [PATCH 1/2] gnu: mpd: Update to 0.23.13 Bruno Victal
2023-05-25 17:21 ` [bug#63721] [PATCH 2/2] gnu: mpd: Split outputs Bruno Victal
2023-05-25 19:47   ` Liliana Marie Prikler
2023-05-26  7:06 ` [bug#63721] [PATCH v2 1/2] gnu: mpd: Update to 0.23.13 Bruno Victal
2023-05-26  7:06 ` [bug#63721] [PATCH v2 2/2] gnu: mpd: Split outputs Bruno Victal

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.