added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,42 @@
From 543990bc34a0e5d4f66a9167efb1f3b8de6a3635 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net>
Date: Mon, 6 Jan 2020 16:56:31 +0000
Subject: [PATCH 1/2] build: don't link against (host) system libraries
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Upstream-Status: Inappropriate [OE specific]
Signed-off-by: André Draszik <git@andred.net>
---
sample/Makefile.am | 1 -
test/Makefile.am | 1 -
2 files changed, 2 deletions(-)
diff --git a/sample/Makefile.am b/sample/Makefile.am
index 681cd2a933de..c4f796d36da0 100644
--- a/sample/Makefile.am
+++ b/sample/Makefile.am
@@ -4,7 +4,6 @@ lib_onig = ../src/libonig.la
LDADD = $(lib_onig)
AM_CFLAGS = -Wall
-AM_LDFLAGS = -L$(libdir)
AM_CPPFLAGS = -I$(top_srcdir)/src
if ENABLE_POSIX_API
diff --git a/test/Makefile.am b/test/Makefile.am
index 94739a24ab22..a23ef1e2e139 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1,7 +1,6 @@
## Makefile.am for Oniguruma
lib_onig = ../src/libonig.la
-AM_LDFLAGS = -L$(libdir)
AM_CFLAGS = -Wall -Wno-invalid-source-encoding
AM_CPPFLAGS = -I$(top_srcdir)/src
--
2.35.1

View File

@@ -0,0 +1,36 @@
From 1ab999aa5a7a21329bab13e05f843e5e029493e1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net>
Date: Mon, 6 Jan 2020 15:10:30 +0000
Subject: [PATCH 2/2] build: enable serial-tests automake option (for ptest)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
For ptest, we need to be able to compile the tests without
running them.
Enabling the serial-tests automake option will add
buildtest-TESTS and runtest-TESTS makefile targets, the
former being what we want.
Signed-off-by: André Draszik <git@andred.net>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 079fef9a1a52..058b5504b9b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@ AC_INIT(onig, 6.9.8)
AC_CONFIG_MACRO_DIR([m4])
-AM_INIT_AUTOMAKE([-Wno-portability])
+AM_INIT_AUTOMAKE([-Wno-portability serial-tests])
AC_CONFIG_HEADERS([src/config.h])
--
2.35.1

View File

@@ -0,0 +1,47 @@
#!/bin/sh -eu
my_cleanup() {
[ -n "${workdir:-}" ] && rm -rf "${workdir}"
}
trap "my_cleanup" EXIT
for sig in INT TERM ; do
# We want sig to expand right here and now, as it's
# a loop variable, not when signalled. For $$ it
# doesn't matter.
# shellcheck disable=SC2064
trap "my_cleanup ; trap - EXIT ; trap - ${sig} ; kill -s ${sig} $$" ${sig}
done
workdir=$(mktemp -d -t onig.ptest.XXXXXX)
status="${workdir}/failed"
touch "${status}"
find tests/ -perm -111 -type f -exec sh -c '
workdir="${1}"
status="${2}"
t="${3}"
t_log="${workdir}/$(basename ${t}).log"
res=0
./${t} > "${t_log}" 2>&1 \
|| res=$?
if [ $res -eq 0 ] ; then
echo "PASS: ${t}"
else
echo "FAIL: ${t}"
echo "$(basename ${t}): ${t_log}" >> "${status}"
fi
' _ "${workdir}" "${status}" {} \;
if [ $(stat -c '%s' "${status}") -ne 0 ] ; then
exec >&2
while IFS=': ' read -r t t_log ; do
printf "\n=========================\n"
printf "ERROR: %s:\n" "${t}"
printf -- "-------------------------\n"
cat "${t_log}"
done < "${status}"
fi
[ $(stat -c '%s' "${status}") -eq 0 ]

View File

@@ -0,0 +1,34 @@
SUMMARY = "Regular expressions library"
DESCRIPTION = "Oniguruma is a modern and flexible regular expressions library. \
It encompasses features from different regular expression \
implementations that traditionally exist in different languages. \
Character encoding can be specified per regular expression object."
HOMEPAGE = "https://github.com/kkos/oniguruma"
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=e6365c225bb5cc4321d0913f0baffa04"
SRC_URI = "\
https://github.com/kkos/oniguruma/releases/download/v${PV}/${BP}.tar.gz \
file://0001-build-don-t-link-against-host-system-libraries.patch \
file://0002-build-enable-serial-tests-automake-option-for-ptest.patch \
file://run-ptest \
"
SRC_URI[sha256sum] = "28cd62c1464623c7910565fb1ccaaa0104b2fe8b12bcd646e81f73b47535213e"
BINCONFIG = "${bindir}/onig-config"
inherit autotools binconfig-disabled ptest
BBCLASSEXTEND = "native"
do_compile_ptest() {
oe_runmake -C test buildtest-TESTS
}
do_install_ptest() {
mkdir -p ${D}${PTEST_PATH}/tests
install -m 0755 -t ${D}${PTEST_PATH}/tests/ ${B}/test/.libs/*
}
PROVIDES += "oniguruma"