diff options
author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2013-02-21 12:31:35 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-03-13 17:21:53 +0100 |
commit | 7d0967c4412a80272825cdf410057d9fd195920d (patch) | |
tree | da1dba03516334657e60dd86d6c7209cfae23fa0 /meta-oe/recipes-support/onig | |
parent | b4a6fdcd3907d02cf6d8bdf16acfdda26d245039 (diff) | |
download | meta-openembedded-7d0967c4412a80272825cdf410057d9fd195920d.tar.gz |
onig: do not use system headers
When build on host with older eglibc (Ubuntu 12.04) build fails with:
/tmp/OE/build/tmp-eglibc/sysroots/genericarmv8/usr/include/bits/predefs.h:23:3: error: #error "Never use <bits/predefs.h> directly; include <stdc-predef.h> instead."
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/onig')
-rw-r--r-- | meta-oe/recipes-support/onig/files/do-not-use-system-headers.patch | 44 | ||||
-rw-r--r-- | meta-oe/recipes-support/onig/onig_5.9.3.bb | 3 |
2 files changed, 46 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/onig/files/do-not-use-system-headers.patch b/meta-oe/recipes-support/onig/files/do-not-use-system-headers.patch new file mode 100644 index 000000000..b93602a26 --- /dev/null +++ b/meta-oe/recipes-support/onig/files/do-not-use-system-headers.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | Author: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | ||
2 | |||
3 | When build on host with older eglibc (Ubuntu 12.04) build fails with: | ||
4 | |||
5 | /tmp/OE/build/tmp-eglibc/sysroots/genericarmv8/usr/include/bits/predefs.h:23:3: error: #error "Never use <bits/predefs.h> directly; include <stdc-predef.h> instead." | ||
6 | |||
7 | Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | ||
8 | |||
9 | Upstream-Status: Inappropriate [embedded specific] | ||
10 | |||
11 | --- | ||
12 | Makefile.am | 2 +- | ||
13 | sample/Makefile.am | 2 +- | ||
14 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | --- onig-5.9.3.orig/Makefile.am | ||
17 | +++ onig-5.9.3/Makefile.am | ||
18 | @@ -4,11 +4,11 @@ sampledir = $(top_srcdir)/sample | ||
19 | libname = libonig.la | ||
20 | |||
21 | ACLOCAL_AMFLAGS = -I m4 | ||
22 | #AM_CFLAGS = -DNOT_RUBY | ||
23 | AM_CFLAGS = | ||
24 | -INCLUDES = -I$(top_srcdir) -I$(includedir) | ||
25 | +INCLUDES = -I$(top_srcdir) | ||
26 | |||
27 | SUBDIRS = . sample | ||
28 | |||
29 | include_HEADERS = oniguruma.h oniggnu.h onigposix.h | ||
30 | lib_LTLIBRARIES = $(libname) | ||
31 | --- onig-5.9.3.orig/sample/Makefile.am | ||
32 | +++ onig-5.9.3/sample/Makefile.am | ||
33 | @@ -1,10 +1,10 @@ | ||
34 | noinst_PROGRAMS = encode listcap names posix simple sql syntax crnl | ||
35 | |||
36 | libname = $(top_builddir)/libonig.la | ||
37 | LDADD = $(libname) | ||
38 | -INCLUDES = -I$(top_srcdir) -I$(includedir) | ||
39 | +INCLUDES = -I$(top_srcdir) | ||
40 | |||
41 | encode_SOURCES = encode.c | ||
42 | listcap_SOURCES = listcap.c | ||
43 | names_SOURCES = names.c | ||
44 | posix_SOURCES = posix.c | ||
diff --git a/meta-oe/recipes-support/onig/onig_5.9.3.bb b/meta-oe/recipes-support/onig/onig_5.9.3.bb index 230e58574..f67ceede6 100644 --- a/meta-oe/recipes-support/onig/onig_5.9.3.bb +++ b/meta-oe/recipes-support/onig/onig_5.9.3.bb | |||
@@ -5,7 +5,8 @@ HOMEPAGE = "http://www.geocities.jp/kosako3/oniguruma/" | |||
5 | LICENSE = "BSD" | 5 | LICENSE = "BSD" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=0d4861b5bc0c392a5aa90d9d76ebd86f" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=0d4861b5bc0c392a5aa90d9d76ebd86f" |
7 | 7 | ||
8 | SRC_URI = "http://www.geocities.jp/kosako3/oniguruma/archive/onig-${PV}.tar.gz" | 8 | SRC_URI = "http://www.geocities.jp/kosako3/oniguruma/archive/onig-${PV}.tar.gz \ |
9 | file://do-not-use-system-headers.patch" | ||
9 | 10 | ||
10 | SRC_URI[md5sum] = "0d4eda2066d3c92970842a6790ce897a" | 11 | SRC_URI[md5sum] = "0d4eda2066d3c92970842a6790ce897a" |
11 | SRC_URI[sha256sum] = "c3bba66b2a84760e6582c40881db97c839d94f327870009724bb8b4d0c051f2a" | 12 | SRC_URI[sha256sum] = "c3bba66b2a84760e6582c40881db97c839d94f327870009724bb8b4d0c051f2a" |