[oe-commits] Otavio Salvador : slang: fix 2.2.2 compilation with uclibc

git version control git at git.openembedded.org
Sun Jan 16 18:05:42 UTC 2011


Module: openembedded.git
Branch: master
Commit: d958139882a254b290dd9494e278ed13b64ad0cc
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=d958139882a254b290dd9494e278ed13b64ad0cc

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Sat Jan 15 15:52:56 2011 -0200

slang: fix 2.2.2 compilation with uclibc

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>

---

 recipes/slang/slang/fix-uclibc.patch |   11 +++++++++++
 recipes/slang/slang_2.2.2.bb         |    5 +++--
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/recipes/slang/slang/fix-uclibc.patch b/recipes/slang/slang/fix-uclibc.patch
new file mode 100644
index 0000000..c2b8225
--- /dev/null
+++ b/recipes/slang/slang/fix-uclibc.patch
@@ -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
diff --git a/recipes/slang/slang_2.2.2.bb b/recipes/slang/slang_2.2.2.bb
index 68387f0..3e0b70e 100644
--- a/recipes/slang/slang_2.2.2.bb
+++ b/recipes/slang/slang_2.2.2.bb
@@ -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
 





More information about the Openembedded-commits mailing list