From 6b513bedf346653bb7d8a9898e74e7995e136210 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sun, 16 Sep 2012 23:04:23 +0200 Subject: desktop/cryptkeeper: Patched for gcc-4.7.x and fixed underlinking. Signed-off-by: Matteo Bernardini --- desktop/cryptkeeper/cryptkeeper.SlackBuild | 6 +++++- desktop/cryptkeeper/gcc47.patch | 11 +++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 desktop/cryptkeeper/gcc47.patch diff --git a/desktop/cryptkeeper/cryptkeeper.SlackBuild b/desktop/cryptkeeper/cryptkeeper.SlackBuild index 0397d5da8f85..85d6557a7505 100644 --- a/desktop/cryptkeeper/cryptkeeper.SlackBuild +++ b/desktop/cryptkeeper/cryptkeeper.SlackBuild @@ -27,7 +27,7 @@ PRGNAM="cryptkeeper" VERSION=${VERSION:-0.9.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -73,6 +73,10 @@ find . \ \( -perm 777 -o -perm 755 -o -perm 711 -o -perm 700 -o -perm 555 -o -perm 511 -o -perm 500 \) \ -exec chmod 755 {} \; +# Patch for gcc-4.7.x +patch -p1 < $CWD/gcc47.patch + +LDFLAGS="-lX11" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure --prefix=/usr \ diff --git a/desktop/cryptkeeper/gcc47.patch b/desktop/cryptkeeper/gcc47.patch new file mode 100644 index 000000000000..816712f30fb3 --- /dev/null +++ b/desktop/cryptkeeper/gcc47.patch @@ -0,0 +1,11 @@ +diff -Naur cryptkeeper-0.9.5.orig/src/lsof.cpp cryptkeeper-0.9.5/src/lsof.cpp +--- cryptkeeper-0.9.5.orig/src/lsof.cpp 2009-10-18 13:47:13.000000000 +0200 ++++ cryptkeeper-0.9.5/src/lsof.cpp 2012-09-16 23:00:05.465985217 +0200 +@@ -17,6 +17,7 @@ + */ + #include + #include ++#include + #include + #include + #include -- cgit v1.2.3