From 972dcfcdbfe75dcfeb777150c136576cf1a71e99 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 9 Oct 2015 22:59:03 +0200 Subject: initial commit for Enea Linux 5.0 arm Signed-off-by: Tudor Florea --- meta/recipes-devtools/rpm/rpm/uclibc-support.patch | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 meta/recipes-devtools/rpm/rpm/uclibc-support.patch (limited to 'meta/recipes-devtools/rpm/rpm/uclibc-support.patch') diff --git a/meta/recipes-devtools/rpm/rpm/uclibc-support.patch b/meta/recipes-devtools/rpm/rpm/uclibc-support.patch new file mode 100644 index 0000000000..8870adb9e7 --- /dev/null +++ b/meta/recipes-devtools/rpm/rpm/uclibc-support.patch @@ -0,0 +1,63 @@ +Define the x* wrappers for uclibc as well + +Upstream-Status: Pending + +Signed-off-by: Khem Raj + +Index: rpm-5.4.14/rpmio/rpmio.h +=================================================================== +--- rpm-5.4.14.orig/rpmio/rpmio.h ++++ rpm-5.4.14/rpmio/rpmio.h +@@ -23,7 +23,8 @@ + */ + /*@{*/ + #if !defined(__LCLINT__) && !defined(__UCLIBC__) && defined(__GLIBC__) && \ +- (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)) ++ (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)) && \ ++ !defined(__UCLIBC__) + #define USE_COOKIE_SEEK_POINTER 1 + typedef _IO_off64_t _libio_off_t; + typedef _libio_off_t * _libio_pos_t; +Index: rpm-5.4.14/system.h +=================================================================== +--- rpm-5.4.14.orig/system.h ++++ rpm-5.4.14/system.h +@@ -481,7 +481,7 @@ extern void muntrace (void) + #endif /* defined(__LCLINT__) */ + + /* Memory allocation via macro defs to get meaningful locations from mtrace() */ +-#if defined(__GNUC__) ++#if defined(__GNUC__) || defined(__UCLIBC__) + #define xmalloc(_size) (malloc(_size) ? : vmefail(_size)) + #define xcalloc(_nmemb, _size) (calloc((_nmemb), (_size)) ? : vmefail(_size)) + #define xrealloc(_ptr, _size) (realloc((_ptr), (_size)) ? : vmefail(_size)) +Index: rpm-5.4.14/lib/librpm.vers +=================================================================== +--- rpm-5.4.14.orig/lib/librpm.vers ++++ rpm-5.4.14/lib/librpm.vers +@@ -405,6 +405,10 @@ LIBRPM_0 + specedit; + strict_erasures; + XrpmtsiInit; ++ xmalloc; ++ xrealloc; ++ xcalloc; ++ xstrdup; + local: + *; + }; +Index: rpm-5.4.14/rpmio/librpmio.vers +=================================================================== +--- rpm-5.4.14.orig/rpmio/librpmio.vers ++++ rpm-5.4.14/rpmio/librpmio.vers +@@ -1056,6 +1056,10 @@ LIBRPMIO_0 + mongo_write_concern_set_mode; + mongo_write_concern_set_w; + mongo_write_concern_set_wtimeout; ++ xmalloc; ++ xrealloc; ++ xcalloc; ++ xstrdup; + local: + *; + }; -- cgit v1.2.3-54-g00ecf