guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/05: gnu: spice: Fix test failure on armhf-linux.


From: guix-commits
Subject: 01/05: gnu: spice: Fix test failure on armhf-linux.
Date: Sun, 12 Jan 2020 16:25:08 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 20eb3b7e747b25f5d2c85167158353cc74e09e41
Author: Marius Bakke <address@hidden>
AuthorDate: Sun Jan 12 21:39:09 2020 +0100

    gnu: spice: Fix test failure on armhf-linux.
    
    * gnu/packages/patches/spice-fix-test-armhf.patch: New file.
    * gnu/local.mk (dist_patch_DATA): Adjust accordingly.
    * gnu/packages/spice.scm (spice)[source](patches): New field.
---
 gnu/local.mk                                    |  1 +
 gnu/packages/patches/spice-fix-test-armhf.patch | 19 +++++++++++++++++++
 gnu/packages/spice.scm                          |  1 +
 3 files changed, 21 insertions(+)

diff --git a/gnu/local.mk b/gnu/local.mk
index 9dd67dd..cb46ee7 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1382,6 +1382,7 @@ dist_patch_DATA =                                         
\
   %D%/packages/patches/snappy-add-O2-flag-in-CmakeLists.txt.patch      \
   %D%/packages/patches/sooperlooper-build-with-wx-30.patch     \
   %D%/packages/patches/soundconverter-remove-gconf-dependency.patch    \
+  %D%/packages/patches/spice-fix-test-armhf.patch              \
   %D%/packages/patches/steghide-fixes.patch                    \
   %D%/packages/patches/supercollider-boost-1.70-build-fix.patch        \
   %D%/packages/patches/superlu-dist-awpm-grid.patch            \
diff --git a/gnu/packages/patches/spice-fix-test-armhf.patch 
b/gnu/packages/patches/spice-fix-test-armhf.patch
new file mode 100644
index 0000000..5c51bd6
--- /dev/null
+++ b/gnu/packages/patches/spice-fix-test-armhf.patch
@@ -0,0 +1,19 @@
+Fix test failure on armhf and ppc64el:
+https://gitlab.freedesktop.org/spice/spice-server/issues/31
+
+Taken from upstream:
+https://gitlab.freedesktop.org/spice/spice/commit/19f9f454e0777d851f26d14df0c7984267c57015
+
+diff --git a/server/tests/test-qxl-parsing.c b/server/tests/test-qxl-parsing.c
+index 
60ca8f88c62441e02577ced21e4f60a08ad4171a..234bdabc9ce619d0799b5136f1d72357b0b2f490
 100644
+--- a/server/tests/test-qxl-parsing.c
++++ b/server/tests/test-qxl-parsing.c
+@@ -96,7 +96,7 @@ static void test_memslot_invalid_slot_id(void)
+     RedMemSlotInfo mem_info;
+     init_meminfo(&mem_info);
+ 
+-    memslot_get_virt(&mem_info, 1 << mem_info.memslot_id_shift, 16, 0);
++    memslot_get_virt(&mem_info, UINT64_C(1) << mem_info.memslot_id_shift, 16, 
0);
+ }
+ 
+ static void test_memslot_invalid_addresses(void)
diff --git a/gnu/packages/spice.scm b/gnu/packages/spice.scm
index edc6135..a57e015 100644
--- a/gnu/packages/spice.scm
+++ b/gnu/packages/spice.scm
@@ -197,6 +197,7 @@ which allows users to view a desktop computing 
environment.")
               (uri (string-append
                 "https://www.spice-space.org/download/releases/";
                 "spice-server/spice-" version ".tar.bz2"))
+              (patches (search-patches "spice-fix-test-armhf.patch"))
               (sha256
                (base32
                 "19r999py9v9c7md2bb8ysj809ag1hh6djl1ik8jcgx065s4b60xj"))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]