summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/onig/files/configure.patch13
-rw-r--r--meta-oe/recipes-support/onig/files/do-not-use-system-headers.patch44
-rw-r--r--meta-oe/recipes-support/onig/onig/0001-build-don-t-link-against-host-system-libraries.patch42
-rw-r--r--meta-oe/recipes-support/onig/onig_5.9.6.bb19
-rw-r--r--meta-oe/recipes-support/onig/onig_6.9.4.bb22
5 files changed, 64 insertions, 76 deletions
diff --git a/meta-oe/recipes-support/onig/files/configure.patch b/meta-oe/recipes-support/onig/files/configure.patch
deleted file mode 100644
index 5fa700f190..0000000000
--- a/meta-oe/recipes-support/onig/files/configure.patch
+++ /dev/null
@@ -1,13 +0,0 @@
1Index: onig-5.9.3/configure.in
2===================================================================
3--- onig-5.9.3.orig/configure.in 2012-10-26 07:06:14.000000000 +0000
4+++ onig-5.9.3/configure.in 2014-07-18 08:02:52.701574484 +0000
5@@ -3,7 +3,7 @@
6
7 AC_CONFIG_MACRO_DIR([m4])
8
9-AM_INIT_AUTOMAKE
10+AM_INIT_AUTOMAKE([foreign])
11 AC_CONFIG_HEADER(config.h)
12
13
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
deleted file mode 100644
index b93602a268..0000000000
--- a/meta-oe/recipes-support/onig/files/do-not-use-system-headers.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1Author: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
2
3When 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
7Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
8
9Upstream-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/0001-build-don-t-link-against-host-system-libraries.patch b/meta-oe/recipes-support/onig/onig/0001-build-don-t-link-against-host-system-libraries.patch
new file mode 100644
index 0000000000..891592650d
--- /dev/null
+++ b/meta-oe/recipes-support/onig/onig/0001-build-don-t-link-against-host-system-libraries.patch
@@ -0,0 +1,42 @@
1From 78103ecd18efcd0966531d8718f6e94dcb7a5abf Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net>
3Date: Mon, 6 Jan 2020 16:56:31 +0000
4Subject: [PATCH] build: don't link against (host) system libraries
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Upstream-Status: Inappropriate [OE specific]
10Signed-off-by: André Draszik <git@andred.net>
11---
12 sample/Makefile.am | 1 -
13 test/Makefile.am | 1 -
14 2 files changed, 2 deletions(-)
15
16diff --git a/sample/Makefile.am b/sample/Makefile.am
17index 22a4989..e935bf0 100644
18--- a/sample/Makefile.am
19+++ b/sample/Makefile.am
20@@ -3,7 +3,6 @@
21 lib_onig = ../src/libonig.la
22 LDADD = $(lib_onig)
23
24-AM_LDFLAGS = -L$(prefix)/lib
25 AM_CPPFLAGS = -I$(top_srcdir)/src
26
27 if ENABLE_POSIX_API
28diff --git a/test/Makefile.am b/test/Makefile.am
29index 4d62568..b7a2105 100644
30--- a/test/Makefile.am
31+++ b/test/Makefile.am
32@@ -1,7 +1,6 @@
33 ## Makefile.am for Oniguruma
34 lib_onig = ../src/libonig.la
35
36-AM_LDFLAGS = -L$(prefix)/lib
37 AM_CFLAGS = -Wall -Wno-invalid-source-encoding
38 AM_CPPFLAGS = -I$(top_srcdir)/src
39
40--
412.23.0.rc1
42
diff --git a/meta-oe/recipes-support/onig/onig_5.9.6.bb b/meta-oe/recipes-support/onig/onig_5.9.6.bb
deleted file mode 100644
index 20a71c6c9b..0000000000
--- a/meta-oe/recipes-support/onig/onig_5.9.6.bb
+++ /dev/null
@@ -1,19 +0,0 @@
1DESCRIPTION = "Regular expressions library. The characteristics of this \
2library is that different character encoding for every regular expression \
3object can be specified."
4HOMEPAGE = "https://web.archive.org/web/20150807014439/http://www.geocities.jp/kosako3/oniguruma/"
5LICENSE = "BSD-2-Clause"
6LIC_FILES_CHKSUM = "file://COPYING;md5=0d4861b5bc0c392a5aa90d9d76ebd86f"
7
8SRC_URI = "https://web.archive.org/web/20150807014439/http://www.geocities.jp/kosako3/oniguruma/archive/${BP}.tar.gz \
9 file://do-not-use-system-headers.patch \
10 file://configure.patch"
11
12SRC_URI[md5sum] = "d08f10ea5c94919780e6b7bed1ef9830"
13SRC_URI[sha256sum] = "d5642010336a6f68b7f2e34b1f1cb14be333e4d95c2ac02b38c162caf44e47a7"
14
15BINCONFIG = "${bindir}/onig-config"
16
17inherit autotools binconfig-disabled
18
19BBCLASSEXTEND = "native"
diff --git a/meta-oe/recipes-support/onig/onig_6.9.4.bb b/meta-oe/recipes-support/onig/onig_6.9.4.bb
new file mode 100644
index 0000000000..d873088fec
--- /dev/null
+++ b/meta-oe/recipes-support/onig/onig_6.9.4.bb
@@ -0,0 +1,22 @@
1SUMMARY = "Regular expressions library"
2DESCRIPTION = "Oniguruma is a modern and flexible regular expressions library. \
3It encompasses features from different regular expression \
4implementations that traditionally exist in different languages. \
5Character encoding can be specified per regular expression object."
6HOMEPAGE = "https://github.com/kkos/oniguruma"
7LICENSE = "BSD-2-Clause"
8LIC_FILES_CHKSUM = "file://COPYING;md5=1ee043784bdce7503e619b2d1a85798b"
9
10SRC_URI = "\
11 https://github.com/kkos/oniguruma/releases/download/v${PV}/${BP}.tar.gz \
12 file://0001-build-don-t-link-against-host-system-libraries.patch \
13"
14
15SRC_URI[md5sum] = "a12d2fe997b789bd87cf63799c091879"
16SRC_URI[sha256sum] = "4669d22ff7e0992a7e93e116161cac9c0949cd8960d1c562982026726f0e6d53"
17
18BINCONFIG = "${bindir}/onig-config"
19
20inherit autotools binconfig-disabled
21
22BBCLASSEXTEND = "native"