guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: mdadm: Add compilation fix for gcc-4.9.


From: Mark H. Weaver
Subject: 01/01: gnu: mdadm: Add compilation fix for gcc-4.9.
Date: Sat, 20 Jun 2015 02:43:31 +0000

mhw pushed a commit to branch core-updates
in repository guix.

commit 9a6953d28a92339c8bd4c0520a67e8d6765aa281
Author: Mark H Weaver <address@hidden>
Date:   Fri Jun 19 22:42:12 2015 -0400

    gnu: mdadm: Add compilation fix for gcc-4.9.
    
    * gnu/packages/patches/mdadm-gcc-4.9-fix.patch: New file.
    * gnu-system.am (dist_patch_DATA): Add it.
    * gnu/packages/linux.scm (mdadm): Add patch.
---
 gnu-system.am                                |    1 +
 gnu/packages/linux.scm                       |    3 +-
 gnu/packages/patches/mdadm-gcc-4.9-fix.patch |   38 ++++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 1 deletions(-)

diff --git a/gnu-system.am b/gnu-system.am
index b43d541..82a8677 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -508,6 +508,7 @@ dist_patch_DATA =                                           
\
   gnu/packages/patches/maxima-defsystem-mkdir.patch            \
   gnu/packages/patches/mc-fix-ncurses-build.patch              \
   gnu/packages/patches/mcron-install.patch                     \
+  gnu/packages/patches/mdadm-gcc-4.9-fix.patch                 \
   gnu/packages/patches/mhash-keygen-test-segfault.patch                \
   gnu/packages/patches/mit-krb5-init-fix.patch                 \
   gnu/packages/patches/mpc123-initialize-ao.patch              \
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 1b220c4..986a51a 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2137,7 +2137,8 @@ MPEG-2 and audio over Linux IEEE 1394.")
                     version ".tar.xz"))
               (sha256
                (base32
-                "132vdvh3myjgcjn6i9w90ck16ddjxjcszklzkyvr4f5ifqd7wfhg"))))
+                "132vdvh3myjgcjn6i9w90ck16ddjxjcszklzkyvr4f5ifqd7wfhg"))
+              (patches (list (search-patch "mdadm-gcc-4.9-fix.patch")))))
     (build-system gnu-build-system)
     (inputs
      `(("udev" ,eudev)))
diff --git a/gnu/packages/patches/mdadm-gcc-4.9-fix.patch 
b/gnu/packages/patches/mdadm-gcc-4.9-fix.patch
new file mode 100644
index 0000000..222fd0e
--- /dev/null
+++ b/gnu/packages/patches/mdadm-gcc-4.9-fix.patch
@@ -0,0 +1,38 @@
+From 68641cdb646eaa15099c1d6cfff1eaa5dd2ac841 Mon Sep 17 00:00:00 2001
+From: Jes Sorensen <address@hidden>
+Date: Tue, 24 Feb 2015 16:00:40 -0500
+Subject: [PATCH] write_super_imsm_spares(): C statements are terminated by ;
+
+Signed-off-by: Jes Sorensen <address@hidden>
+Signed-off-by: NeilBrown <address@hidden>
+---
+ super-intel.c | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/super-intel.c b/super-intel.c
+index 819e0da..7f75b53 100644
+--- a/super-intel.c
++++ b/super-intel.c
+@@ -5115,13 +5115,13 @@ static int write_super_imsm_spares(struct intel_super 
*super, int doclose)
+       __u32 sum;
+       struct dl *d;
+ 
+-      spare->mpb_size = __cpu_to_le32(sizeof(struct imsm_super)),
+-      spare->generation_num = __cpu_to_le32(1UL),
++      spare->mpb_size = __cpu_to_le32(sizeof(struct imsm_super));
++      spare->generation_num = __cpu_to_le32(1UL);
+       spare->attributes = MPB_ATTRIB_CHECKSUM_VERIFY;
+-      spare->num_disks = 1,
+-      spare->num_raid_devs = 0,
+-      spare->cache_size = mpb->cache_size,
+-      spare->pwr_cycle_count = __cpu_to_le32(1),
++      spare->num_disks = 1;
++      spare->num_raid_devs = 0;
++      spare->cache_size = mpb->cache_size;
++      spare->pwr_cycle_count = __cpu_to_le32(1);
+ 
+       snprintf((char *) spare->sig, MAX_SIGNATURE_LENGTH,
+                MPB_SIGNATURE MPB_VERSION_RAID0);
+-- 
+2.4.3
+



reply via email to

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