[gnome-ostree] libevdev: patch away -fstack-protector



commit d4a682a2444360c9a3a125db635b77d37b4f64d8
Author: Giovanni Campagna <gcampagn redhat com>
Date:   Mon Sep 9 15:03:16 2013 +0200

    libevdev: patch away -fstack-protector
    
    Causes link failures.
    
    Patch was agreed with David Herrmann in #wayland in freenode.

 manifest.json               |    3 ++-
 patches/libevdev-link.patch |   26 ++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/manifest.json b/manifest.json
index 7012d44..d041529 100644
--- a/manifest.json
+++ b/manifest.json
@@ -542,7 +542,8 @@
                 {"src": "fd:libevdev",
                 "config-opts": ["--disable-gcov"],
                 "patches": ["libevdev-autogen.patch",
-                            "libevdev-configure.patch"]},
+                            "libevdev-configure.patch",
+                            "libevdev-link.patch"]},
 
                {"src": "gnome:clutter",
                 "config-opts": ["--enable-installed-tests",
diff --git a/patches/libevdev-link.patch b/patches/libevdev-link.patch
new file mode 100644
index 0000000..2d19afc
--- /dev/null
+++ b/patches/libevdev-link.patch
@@ -0,0 +1,26 @@
+From e1b48a8bef6bdf898fbe887ef5f4df270c1f322c Mon Sep 17 00:00:00 2001
+From: Giovanni Campagna <gcampagn redhat com>
+Date: Mon, 9 Sep 2013 15:01:02 +0200
+Subject: [PATCH libevdev] Remove -fstack-protector
+
+Causes link failures with the ostree toolchain.
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index aef07f9..d9f9dc9 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -47,7 +47,7 @@ AM_CONDITIONAL(BUILD_TESTS, [test "x$HAVE_CHECK" = "xyes"])
+ 
+ 
+ if test "x$GCC" = "xyes"; then
+-      GCC_CFLAGS="-Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes 
-fvisibility=hidden -pipe -fno-common -fno-strict-aliasing -ffunction-sections -fdata-sections 
-fstack-protector -fno-strict-aliasing -fdiagnostics-show-option -fno-common"
++      GCC_CFLAGS="-Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes 
-fvisibility=hidden -pipe -fno-common -fno-strict-aliasing -ffunction-sections -fdata-sections 
-fno-strict-aliasing -fdiagnostics-show-option -fno-common"
+ fi
+ AC_SUBST(GCC_CFLAGS)
+ 
+-- 
+1.8.3.1
+


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