Hello community,

here is the log from the commit of package dmtcp for openSUSE:Factory checked 
in at 2015-03-25 21:05:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dmtcp (Old)
 and      /work/SRC/openSUSE:Factory/.dmtcp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dmtcp"

Changes:
--------
--- /work/SRC/openSUSE:Factory/dmtcp/dmtcp.changes      2014-09-17 
17:25:16.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.dmtcp.new/dmtcp.changes 2015-03-25 
21:32:50.000000000 +0100
@@ -1,0 +2,5 @@
+Tue Mar 24 14:40:08 UTC 2015 - [email protected]
+
+- Add dmtcp-glibc-2.21.patch: Fix build with glibc 2.21.
+
+-------------------------------------------------------------------

New:
----
  dmtcp-glibc-2.21.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dmtcp.spec ++++++
--- /var/tmp/diff_new_pack.ndUt87/_old  2015-03-25 21:32:50.000000000 +0100
+++ /var/tmp/diff_new_pack.ndUt87/_new  2015-03-25 21:32:50.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package dmtcp
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2012-2014 Kapil Arya
 #
 # All modifications and additions to the file contributed by third parties
@@ -26,6 +26,7 @@
 Url:            http://dmtcp.sourceforge.net
 Source0:        %{name}-%{version}.tar.gz
 Patch1:         includes.patch
+Patch2:         dmtcp-glibc-2.21.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
@@ -65,6 +66,7 @@
 %prep
 %setup -q
 %patch1 -p1
+%patch2 -p1
 sed -i -e 's,enable_option_checking=fatal,enable_option_checking=no,' configure
 
 %build

++++++ dmtcp-glibc-2.21.patch ++++++
>From ed7843cd044b0b37d91beec6cbe63aacb3f2d68c Mon Sep 17 00:00:00 2001
From: Kapil Arya <[email protected]>
Date: Tue, 24 Mar 2015 10:24:09 -0400
Subject: [PATCH] Compilation fix for glibc 2.21.

- sigvec has been removed from glibc 2.21.
- Closes #39.
---
 src/signalwrappers.cpp | 3 +++
 src/syscallsreal.c     | 3 +++
 src/syscallwrappers.h  | 2 ++
 3 files changed, 8 insertions(+)

diff --git a/src/signalwrappers.cpp b/src/signalwrappers.cpp
index 3e9c7a5..0aff218 100644
--- a/src/signalwrappers.cpp
+++ b/src/signalwrappers.cpp
@@ -157,6 +157,8 @@ EXTERNC int rt_sigaction(int signum, const struct sigaction 
*act,
   //}
   //return _real_rt_sigaction( signum, act, oldact);
 }
+
+#if !__GNUC_PREREQ(2,21)
 EXTERNC int sigvec(int signum, const struct sigvec *vec, struct sigvec *ovec)
 {
   if(signum == bannedSignalNumber()) {
@@ -164,6 +166,7 @@ EXTERNC int sigvec(int signum, const struct sigvec *vec, 
struct sigvec *ovec)
   }
   return _real_sigvec( signum, vec, ovec );
 }
+#endif
 
 //set the mask
 EXTERNC int sigblock(int mask)
diff --git a/src/syscallsreal.c b/src/syscallsreal.c
index 6669321..8b88852 100644
--- a/src/syscallsreal.c
+++ b/src/syscallsreal.c
@@ -717,10 +717,13 @@ LIB_PRIVATE
 int _real_sigaction(int signum, const struct sigaction *act, struct sigaction 
*oldact) {
   REAL_FUNC_PASSTHROUGH (sigaction) (signum, act, oldact);
 }
+
+#if !__GNUC_PREREQ(2,21)
 LIB_PRIVATE
 int _real_sigvec(int signum, const struct sigvec *vec, struct sigvec *ovec) {
   REAL_FUNC_PASSTHROUGH (sigvec) (signum, vec, ovec);
 }
+#endif
 
 //set the mask
 LIB_PRIVATE
diff --git a/src/syscallwrappers.h b/src/syscallwrappers.h
index 7573512..6f039cb 100644
--- a/src/syscallwrappers.h
+++ b/src/syscallwrappers.h
@@ -352,7 +352,9 @@ LIB_PRIVATE extern __thread int 
thread_performing_dlopen_dlsym;
                       struct sigaction *oldact);
   int _real_rt_sigaction(int signum, const struct sigaction *act,
                          struct sigaction *oldact);
+#if !__GNUC_PREREQ(2,21)
   int _real_sigvec(int sig, const struct sigvec *vec, struct sigvec *ovec);
+#endif
 
   //set the mask
   int _real_sigblock(int mask);

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to