mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
desktop/cryptkeeper: Patched for gcc-4.7.x and fixed underlinking.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
71d6e5d82d
commit
6b513bedf3
2 changed files with 16 additions and 1 deletions
|
@ -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 \
|
||||
|
|
11
desktop/cryptkeeper/gcc47.patch
Normal file
11
desktop/cryptkeeper/gcc47.patch
Normal file
|
@ -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 <stdlib.h>
|
||||
#include <stdio.h>
|
||||
+#include <unistd.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <assert.h>
|
Loading…
Reference in a new issue