slang: fix 2.2.2 compilation with uclibc
authorOtavio Salvador <otavio@ossystems.com.br>
Sat, 15 Jan 2011 17:52:56 +0000 (15:52 -0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Sun, 16 Jan 2011 17:59:08 +0000 (15:59 -0200)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes/slang/slang/fix-uclibc.patch [new file with mode: 0644]
recipes/slang/slang_2.2.2.bb

diff --git a/recipes/slang/slang/fix-uclibc.patch b/recipes/slang/slang/fix-uclibc.patch
new file mode 100644 (file)
index 0000000..c2b8225
--- /dev/null
@@ -0,0 +1,11 @@
+--- slang-2.1.3.orig/src/slcommon.c    2007-01-10 18:09:07.000000000 +0200
++++ slang-2.1.3.orig/src/slcommon.c    2008-03-19 16:09:09.000000000 +0200
+@@ -191,7 +191,7 @@ 
+    return p;
+ }
+-#if !defined(HAVE_ISSETUGID) && defined(__GLIBC__) && (__GLIBC__ >= 2)
++#if !defined(HAVE_ISSETUGID) && defined(__GLIBC__) && (__GLIBC__ >= 2) && !defined(__UCLIBC__)
+ extern int __libc_enable_secure;
+ # define HAVE___LIBC_ENABLE_SECURE 1
+ #endif
index 68387f0..3e0b70e 100644 (file)
@@ -2,9 +2,10 @@ DESCRIPTION = "slang is a library of text functions used in editors like slrn et
 SECTION = "libs"
 PRIORITY = "optional"
 DEPENDS = "pcre"
-PR = "r1"
+PR = "r2"
 LICENSE = "GPL Artistic"
-SRC_URI = "ftp://space.mit.edu/pub/davis/slang/v2.2/slang-${PV}.tar.bz2"
+SRC_URI = "ftp://space.mit.edu/pub/davis/slang/v2.2/slang-${PV}.tar.bz2 \
+           file://fix-uclibc.patch"
 
 inherit autotools