diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-11-20 14:31:08 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-22 12:26:46 +0000 |
commit | deef918ab212a1549ffec25fd8318dec044d1387 (patch) | |
tree | d071b9a7fa85b5e6950e91fa8b3e72a902242ab6 /meta/recipes-devtools | |
parent | a00b2f97f381dcbd71ec250fb5a3e3b6a7f9f929 (diff) | |
download | poky-deef918ab212a1549ffec25fd8318dec044d1387.tar.gz |
swig: update 4.0.2 -> 4.1.0
swig has transitioned pcre -> pcre2
Update 0001-configure-use-pkg-config-for-pcre-detection.patch
accordingly.
(From OE-Core rev: 53e51ded320fb35fb53d496e832b6527372f58ed)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/swig/swig.inc | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch | 44 | ||||
-rw-r--r-- | meta/recipes-devtools/swig/swig_4.1.0.bb (renamed from meta/recipes-devtools/swig/swig_4.0.2.bb) | 2 |
3 files changed, 26 insertions, 22 deletions
diff --git a/meta/recipes-devtools/swig/swig.inc b/meta/recipes-devtools/swig/swig.inc index 13470c1094..7a6c4d7359 100644 --- a/meta/recipes-devtools/swig/swig.inc +++ b/meta/recipes-devtools/swig/swig.inc | |||
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e7807a6282784a7dde4c846626b08fc6 \ | |||
10 | 10 | ||
11 | SECTION = "devel" | 11 | SECTION = "devel" |
12 | 12 | ||
13 | DEPENDS = "libpcre bison-native" | 13 | DEPENDS = "libpcre2 bison-native" |
14 | 14 | ||
15 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz" | 15 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz" |
16 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/swig/files/swig/" | 16 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/swig/files/swig/" |
diff --git a/meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch b/meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch index fdb9760e89..cfcbd8c73a 100644 --- a/meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch +++ b/meta/recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch | |||
@@ -1,52 +1,56 @@ | |||
1 | From 5c4d6d8538994d5fe9b3b46bfafaf0a605e3bda6 Mon Sep 17 00:00:00 2001 | 1 | From ffb785ed8d3cac3c28e014b1238d93e2bc1f0c01 Mon Sep 17 00:00:00 2001 |
2 | From: Koen Kooi <koen.kooi@linaro.org> | 2 | From: Koen Kooi <koen.kooi@linaro.org> |
3 | Date: Tue, 17 Jun 2014 08:18:17 +0200 | 3 | Date: Tue, 17 Jun 2014 08:18:17 +0200 |
4 | Subject: [PATCH] configure: use pkg-config for pcre detection | 4 | Subject: [PATCH] configure: use pkg-config for pcre detection |
5 | 5 | ||
6 | Signed-off-by: Koen Kooi <koen.kooi@linaro.org> | 6 | Signed-off-by: Koen Kooi <koen.kooi@linaro.org> |
7 | Upstream-Status: Pending | 7 | Upstream-Status: Pending |
8 | |||
8 | --- | 9 | --- |
9 | configure.ac | 38 +++++++------------------------------- | 10 | configure.ac | 39 +++++++-------------------------------- |
10 | 1 file changed, 7 insertions(+), 31 deletions(-) | 11 | 1 file changed, 7 insertions(+), 32 deletions(-) |
11 | 12 | ||
13 | diff --git a/configure.ac b/configure.ac | ||
14 | index f88004a..3a2b47c 100644 | ||
12 | --- a/configure.ac | 15 | --- a/configure.ac |
13 | +++ b/configure.ac | 16 | +++ b/configure.ac |
14 | @@ -52,38 +52,14 @@ AC_MSG_RESULT([$with_pcre]) | 17 | @@ -57,39 +57,14 @@ AC_MSG_RESULT([$with_pcre]) |
15 | 18 | ||
16 | dnl To make configuring easier, check for a locally built PCRE using the Tools/pcre-build.sh script | 19 | dnl To make configuring easier, check for a locally built PCRE using the Tools/pcre-build.sh script |
17 | if test x"${with_pcre}" = xyes ; then | 20 | if test x"${with_pcre}" = xyes ; then |
18 | - AC_MSG_CHECKING([whether to use local PCRE]) | 21 | - AC_MSG_CHECKING([whether to use local PCRE2]) |
19 | - local_pcre_config=no | 22 | - local_pcre_config=no |
20 | - if test -z $PCRE_CONFIG; then | 23 | - if test -z "$PCRE2_CONFIG"; then |
21 | - if test -f `pwd`/pcre/pcre-swig-install/bin/pcre-config; then | 24 | - if test -f `pwd`/pcre/pcre-swig-install/bin/pcre2-config; then |
22 | - PCRE_CONFIG=`pwd`/pcre/pcre-swig-install/bin/pcre-config | 25 | - PCRE2_CONFIG=`pwd`/pcre/pcre-swig-install/bin/pcre2-config |
23 | - local_pcre_config=$PCRE_CONFIG | 26 | - local_pcre_config=$PCRE2_CONFIG |
24 | - fi | 27 | - fi |
25 | - fi | 28 | - fi |
26 | - AC_MSG_RESULT([$local_pcre_config]) | 29 | - AC_MSG_RESULT([$local_pcre_config]) |
27 | -fi | 30 | -fi |
28 | -AS_IF([test "x$with_pcre" != xno], | 31 | -AS_IF([test "x$with_pcre" != xno], |
29 | - [AX_PATH_GENERIC([pcre], | 32 | - [AX_PATH_GENERIC([pcre2], |
30 | - [], dnl Minimal version of PCRE we need -- accept any | 33 | - [], dnl Minimal version of PCRE we need -- accept any |
31 | - [], dnl custom sed script for version parsing is not needed | 34 | - [], dnl custom sed script for version parsing is not needed |
32 | - [AC_DEFINE([HAVE_PCRE], [1], [Define if you have PCRE library]) | 35 | - [AC_DEFINE([HAVE_PCRE], [1], [Define if you have PCRE2 library]) |
33 | - LIBS="$LIBS $PCRE_LIBS" | 36 | - LIBS="$LIBS $PCRE2_LIBS" |
34 | - CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS" | 37 | - CPPFLAGS="$CPPFLAGS $PCRE2_CFLAGS" |
35 | - ], | 38 | - ], |
36 | - [AC_MSG_FAILURE([ | 39 | - [AC_MSG_FAILURE([ |
37 | - Cannot find pcre-config script from PCRE (Perl Compatible Regular Expressions) | 40 | - Cannot find pcre2-config script from PCRE2 (Perl Compatible Regular Expressions) |
38 | - library package. This dependency is needed for configure to complete, | 41 | - library package. This dependency is needed for configure to complete, |
39 | - Either: | 42 | - Either: |
40 | - - Install the PCRE developer package on your system (preferred approach). | 43 | - - Install the PCRE2 developer package on your system (preferred approach). |
41 | - - Download the PCRE source tarball, build and install on your system | 44 | - - Download the PCRE2 source tarball, build and install on your system |
42 | - as you would for any package built from source distribution. | 45 | - as you would for any package built from source distribution. |
43 | - - Use the Tools/pcre-build.sh script to build PCRE just for SWIG to statically | 46 | - - Use the Tools/pcre-build.sh script to build PCRE2 just for SWIG to statically |
44 | - link against. Run 'Tools/pcre-build.sh --help' for instructions. | 47 | - link against. Run 'Tools/pcre-build.sh --help' for instructions. |
45 | - (quite easy and does not require privileges to install PCRE on your system) | 48 | - (quite easy and does not require privileges to install PCRE2 on your system) |
46 | - - Use configure --without-pcre to disable regular expressions support in SWIG | 49 | - - Use configure --without-pcre to disable regular expressions support in SWIG |
47 | - (not recommended).]) | 50 | - (not recommended).]) |
48 | - ]) | 51 | - ], |
49 | + PKG_CHECK_MODULES([PCRE], [libpcre], [ | 52 | - [],[],[--libs8]) |
53 | + PKG_CHECK_MODULES([PCRE], [libpcre2], [ | ||
50 | + AC_DEFINE([HAVE_PCRE], [1], [Define if you have PCRE library]) | 54 | + AC_DEFINE([HAVE_PCRE], [1], [Define if you have PCRE library]) |
51 | + LIBS="$LIBS $PCRE_LIBS" | 55 | + LIBS="$LIBS $PCRE_LIBS" |
52 | + CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS" | 56 | + CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS" |
diff --git a/meta/recipes-devtools/swig/swig_4.0.2.bb b/meta/recipes-devtools/swig/swig_4.1.0.bb index 718ad89a5d..0eabd8ed60 100644 --- a/meta/recipes-devtools/swig/swig_4.0.2.bb +++ b/meta/recipes-devtools/swig/swig_4.1.0.bb | |||
@@ -4,4 +4,4 @@ SRC_URI += "file://0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.pat | |||
4 | file://0001-configure-use-pkg-config-for-pcre-detection.patch \ | 4 | file://0001-configure-use-pkg-config-for-pcre-detection.patch \ |
5 | file://determinism.patch \ | 5 | file://determinism.patch \ |
6 | " | 6 | " |
7 | SRC_URI[sha256sum] = "d53be9730d8d58a16bf0cbd1f8ac0c0c3e1090573168bfa151b01eb47fa906fc" | 7 | SRC_URI[sha256sum] = "d6a9a8094e78f7cfb6f80a73cc271e1fe388c8638ed22668622c2c646df5bb3d" |