summary refs log tree commit diff
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2023-04-26 20:37:51 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2023-04-26 20:52:32 +0200
commitd7e489d6e06a9eb6015c47df8085d7762397d849 (patch)
tree2bed68371b4742d2caa7412075077746b0b17fcf
parente86851ccb3df1e87efca7138ee8d055a30832a4e (diff)
downloadguix-d7e489d6e06a9eb6015c47df8085d7762397d849.tar.gz
gnu: gnome-2048: Fix build.
* gnu/packages/patches/gnome-2048-fix-positional-argument.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it here.
* gnu/packages/games.scm (gnome-2048)[source]<patches>: Use it here.
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/games.scm4
-rw-r--r--gnu/packages/patches/gnome-2048-fix-positional-argument.patch36
3 files changed, 40 insertions, 1 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 983201167b..77c334341d 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1256,6 +1256,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/gmp-arm-asm-nothumb.patch		\
   %D%/packages/patches/gmp-faulty-test.patch			\
   %D%/packages/patches/gnash-fix-giflib-version.patch	        \
+  %D%/packages/patches/gnome-2048-fix-positional-argument.patch	\
   %D%/packages/patches/gnome-control-center-libexecdir.patch	\
   %D%/packages/patches/gnome-online-miners-tracker-3.patch	\
   %D%/packages/patches/gnome-settings-daemon-gc.patch		\
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 6f4900a6fc..3391c141e4 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -1835,7 +1835,9 @@ destroying an ancient book using a special wand.")
                                   "gnome-2048-" version ".tar.xz"))
               (sha256
                (base32
-                "0s5fg4z5in1h39fcr69j1qc5ynmg7a8mfprk3mc3c0csq3snfwz2"))))
+                "0s5fg4z5in1h39fcr69j1qc5ynmg7a8mfprk3mc3c0csq3snfwz2"))
+              (patches
+               (search-patches "gnome-2048-fix-positional-argument.patch"))))
     (build-system meson-build-system)
     (arguments
      `(#:glib-or-gtk? #t
diff --git a/gnu/packages/patches/gnome-2048-fix-positional-argument.patch b/gnu/packages/patches/gnome-2048-fix-positional-argument.patch
new file mode 100644
index 0000000000..912759654d
--- /dev/null
+++ b/gnu/packages/patches/gnome-2048-fix-positional-argument.patch
@@ -0,0 +1,36 @@
+From 194e22699f7166a016cd39ba26dd719aeecfc868 Mon Sep 17 00:00:00 2001
+From: Jan Beich <jbeich@FreeBSD.org>
+Date: Sun, 23 Jan 2022 10:49:07 +0000
+Subject: [PATCH] meson: drop unused argument for i18n.merge_file()
+
+Ignored in Meson < 0.60.0, deprecated since 0.60.1 and fatal since 0.61.0.
+
+data/meson.build:19:0: ERROR: Function does not take positional arguments.
+data/meson.build:39:0: ERROR: Function does not take positional arguments.
+---
+ data/meson.build | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/data/meson.build b/data/meson.build
+index 33f73ca..8974a63 100644
+--- a/data/meson.build
++++ b/data/meson.build
+@@ -17,7 +17,6 @@ install_data(
+ 
+ # Desktop file
+ desktop_file = i18n.merge_file(
+-  'desktop-file',
+   input: 'org.gnome.TwentyFortyEight.desktop.in',
+   output: 'org.gnome.TwentyFortyEight.desktop',
+   install: true,
+@@ -37,7 +36,6 @@ endif
+ 
+ # AppData file
+ appdata_file = i18n.merge_file(
+-  'appdata-file',
+   input: 'org.gnome.TwentyFortyEight.appdata.xml.in',
+   output: 'org.gnome.TwentyFortyEight.appdata.xml',
+   install: true,
+-- 
+GitLab
+