Add support for jq-native + associated fixes
cover Add support for jq-native + associated fixes
Andre McCurdy (3):
onig: add support for orig-native + misc minor fixes
onig: update 5.9.3 -> 5.9.6
jq: add support for jq-native + misc minor fixes
.../jq/jq/Support-without-oniguruma.patch | 68 ++++++++++++++++++++++ meta-oe/recipes-devtools/jq/jq_1.5.bb | 21 ++++--- meta-oe/recipes-support/onig/onig_5.9.3.bb | 17 ------ meta-oe/recipes-support/onig/onig_5.9.6.bb | 19 ++++++ 4 files changed, 101 insertions(+), 24 deletions(-) create mode 100644 meta-oe/recipes-devtools/jq/jq/Support-without-oniguruma.patch delete mode 100644 meta-oe/recipes-support/onig/onig_5.9.3.bb create mode 100644 meta-oe/recipes-support/onig/onig_5.9.6.bb
Signature · 1 line
1.9.1
PATCH 1/3 onig: add support for orig-native + misc minor fixes
- Add support for orig-native
- Drop unnecessary dependency on libevent
- Update HOMEPAGE and SRC_URI to webarchive mirrors (originals no longer available)
- Switch binconfig -> binconfig-disabled
--- meta-oe/recipes-support/onig/onig_5.9.3.bb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
meta-oe/recipes-support/onig/onig_5.9.3.bb +6 -4
@@ -1,17 +1,19 @@ DESCRIPTION = "Regular expressions library. The characteristics of this \ library is that different character encoding for every regular expression \ object can be specified." -HOMEPAGE = "http://www.geocities.jp/kosako3/oniguruma/" +HOMEPAGE = "https://web.archive.org/web/20150807014439/http://www.geocities.jp/kosako3/oniguruma/" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://COPYING;md5=0d4861b5bc0c392a5aa90d9d76ebd86f" -SRC_URI = "http://www.geocities.jp/kosako3/oniguruma/archive/onig-${PV}.tar.gz \ +SRC_URI = "https://web.archive.org/web/20150807014439/http://www.geocities.jp/kosako3/oniguruma/archive/${BP}.tar.gz \ file://do-not-use-system-headers.patch \ file://configure.patch" SRC_URI[md5sum] = "0d4eda2066d3c92970842a6790ce897a" SRC_URI[sha256sum] = "c3bba66b2a84760e6582c40881db97c839d94f327870009724bb8b4d0c051f2a" -DEPENDS = "libevent" +BINCONFIG = "${bindir}/onig-config" -inherit autotools binconfig +inherit autotools binconfig-disabled + +BBCLASSEXTEND = "native"
Signature · 1 line
1.9.1
PATCH 2/3 onig: update 5.9.3 -> 5.9.6
In reply to Andre McCurdy2014/12/12: Version 5.9.6
2013/11/27: [impl] add onigenc_end_unicode(). (thanks Takenori Imoto)
2013/11/27: [impl] add onig_add_end_call(). (thanks Takenori Imoto)
2013/10/21: Version 5.9.5
2013/10/21: [impl] escape warnings for -Wall. (regparse.c) 2013/10/21: [bug] fixes an issue on Windows x64. (thanks Anatoliy Belsky)
The issue was discovered in PHP, see https://bugs.php.net/64769.
2013/10/21: [impl] remove unused variable. (regcomp.c)
2013/04/04: Version 5.9.4
2013/04/04: [dev] remove Makefile.in from git repository. 2013/04/04: [dist] add oniguruma.pc.in file. (for pkg-config)
(thanks Giulio Paci)
https://web.archive.org/web/20150702035706/http://www.geocities.jp/kosako3/oniguruma/HISTORY_5X.txt
---
meta-oe/recipes-support/onig/{onig_5.9.3.bb => onig_5.9.6.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-oe/recipes-support/onig/{onig_5.9.3.bb => onig_5.9.6.bb} (82%)meta-oe/recipes-support/onig/onig_5.9.6.bb renamed from meta-oe/recipes-support/onig/onig_5.9.3.bb +2 -2
@@ -9,8 +9,8 @@ SRC_URI = "https://web.archive.org/web/20150807014439/http://www.geocities.jp/ko file://do-not-use-system-headers.patch \ file://configure.patch" -SRC_URI[md5sum] = "0d4eda2066d3c92970842a6790ce897a" -SRC_URI[sha256sum] = "c3bba66b2a84760e6582c40881db97c839d94f327870009724bb8b4d0c051f2a" +SRC_URI[md5sum] = "d08f10ea5c94919780e6b7bed1ef9830" +SRC_URI[sha256sum] = "d5642010336a6f68b7f2e34b1f1cb14be333e4d95c2ac02b38c162caf44e47a7" BINCONFIG = "${bindir}/onig-config"
Signature · 1 line
1.9.1
PATCH 3/3 jq: add support for jq-native + misc minor fixes
In reply to Andre McCurdy- Add PACKAGECONFIG options for docs, maintainer-mode and oniguruma
--- .../jq/jq/Support-without-oniguruma.patch | 68 ++++++++++++++++++++++ meta-oe/recipes-devtools/jq/jq_1.5.bb | 21 ++++--- 2 files changed, 82 insertions(+), 7 deletions(-) create mode 100644 meta-oe/recipes-devtools/jq/jq/Support-without-oniguruma.patch
meta-oe/recipes-devtools/jq/jq/Support-without-oniguruma.patch new file +68 -0
@@ -0,0 +1,68 @@ +From 18b4b18b41f5ed396d73449ce8d6ec408d95d6b2 Mon Sep 17 00:00:00 2001 +From: David Tolnay <[email protected]> +Date: Sat, 21 Nov 2015 10:05:37 -0800 +Subject: [PATCH] Support --without-oniguruma + +Upstream-Status: Backport + +Signed-off-by: Andre McCurdy <[email protected]> + +--- + configure.ac | 41 ++++++++++++++++++++--------------------- + 1 file changed, 20 insertions(+), 21 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 9e2c8cf..7f6be34 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -52,27 +52,26 @@ fi + AC_ARG_WITH([oniguruma], + [AS_HELP_STRING([--with-oniguruma=prefix], + [try this for a non-standard install prefix of the oniguruma library])], +- [ONIGURUMAPATHSET=1], +- [ONIGURUMAPATHSET=0]) +- +-if test $ONIGURUMAPATHSET = 1; then +- CFLAGS="$CFLAGS -I${with_oniguruma}/include" +- LDFLAGS="$LDFLAGS -L${with_oniguruma}/lib" +-fi +- +-# check for ONIGURUMA library +-HAVE_ONIGURUMA=0 +-AC_CHECK_HEADER("oniguruma.h", +- AC_CHECK_LIB([onig],[onig_version],[LIBS="$LIBS -lonig"; HAVE_ONIGURUMA=1;])) +- +-# handle check results +-if test $HAVE_ONIGURUMA != 1; then +- AC_MSG_NOTICE([Oniguruma was not found.]) +- AC_MSG_NOTICE([ Try setting the location using '--with-oniguruma=PREFIX' ]) +-else +- AC_DEFINE([HAVE_ONIGURUMA],1,[Define to 1 if Oniguruma is installed]) +-fi +- ++ [], ++ [with_oniguruma=yes]) ++ ++AS_IF([test "x$with_oniguruma" != xno], [ ++ AS_IF([test "x$with_oniguruma" != xyes], [ ++ CFLAGS="$CFLAGS -I${with_oniguruma}/include" ++ LDFLAGS="$LDFLAGS -L${with_oniguruma}/lib" ++ ]) ++ # check for ONIGURUMA library ++ have_oniguruma=0 ++ AC_CHECK_HEADER("oniguruma.h", ++ AC_CHECK_LIB([onig],[onig_version],[LIBS="$LIBS -lonig"; have_oniguruma=1;])) ++ # handle check results ++ AS_IF([test $have_oniguruma = 1], [ ++ AC_DEFINE([HAVE_ONIGURUMA], 1, [Define to 1 if Oniguruma is installed]) ++ ], [ ++ AC_MSG_NOTICE([Oniguruma was not found.]) ++ AC_MSG_NOTICE([Try setting the location using '--with-oniguruma=PREFIX']) ++ ]) ++]) + + dnl Check for valgrind + AC_CHECK_PROGS(valgrind_cmd, valgrind) +-- +1.9.1 +
meta-oe/recipes-devtools/jq/jq_1.5.bb +14 -7
@@ -2,16 +2,14 @@ SUMMARY = "Lightweight and flexible command-line JSON processor" DESCRIPTION = "jq is like sed for JSON data, you can use it to slice and \ filter and map and transform structured data with the same \ ease that sed, awk, grep and friends let you play with text." -HOMEPAGE = "http://stedolan.github.io/jq/" +HOMEPAGE = "https://stedolan.github.io/jq/" BUGTRACKER = "https://github.com/stedolan/jq/issues" SECTION = "utils" - LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=29dd0c35d7e391bb8d515eacf7592e00" -DEPENDS = "flex-native bison-native onig" - -SRC_URI = "https://github.com/stedolan/${BPN}/releases/download/${BPN}-${PV}/${BPN}-${PV}.tar.gz \ +SRC_URI = "https://github.com/stedolan/${BPN}/releases/download/${BP}/${BP}.tar.gz \ + file://Support-without-oniguruma.patch \ " SRC_URI[md5sum] = "0933532b086bd8b6a41c1b162b1731f9"
@@ -19,5 +17,14 @@ SRC_URI[sha256sum] = "c4d2bfec6436341113419debf479d833692cc5cdab7eb0326b5a4d4fbe inherit autotools -# Don't build documentation (generation requires ruby) -EXTRA_OECONF = "--disable-docs --disable-maintainer-mode" +PACKAGECONFIG ?= "oniguruma" + +PACKAGECONFIG[docs] = "--enable-docs,--disable-docs,ruby-native" +PACKAGECONFIG[maintainer-mode] = "--enable-maintainer-mode,--disable-maintainer-mode,flex-native bison-native" +PACKAGECONFIG[oniguruma] = "--with-oniguruma,--without-oniguruma,onig" + +OE_EXTRACONF += " \ + --disable-valgrind \ +" + +BBCLASSEXTEND = "native"
Signature · 1 line
1.9.1