diff options
| -rw-r--r-- | meta/recipes-devtools/subversion/subversion/subversion-1.12.0-apr_1.7.0_fix-1.patch | 107 | ||||
| -rw-r--r-- | meta/recipes-devtools/subversion/subversion_1.12.2.bb (renamed from meta/recipes-devtools/subversion/subversion_1.12.0.bb) | 5 |
2 files changed, 2 insertions, 110 deletions
diff --git a/meta/recipes-devtools/subversion/subversion/subversion-1.12.0-apr_1.7.0_fix-1.patch b/meta/recipes-devtools/subversion/subversion/subversion-1.12.0-apr_1.7.0_fix-1.patch deleted file mode 100644 index f0edd5fe8a..0000000000 --- a/meta/recipes-devtools/subversion/subversion/subversion-1.12.0-apr_1.7.0_fix-1.patch +++ /dev/null | |||
| @@ -1,107 +0,0 @@ | |||
| 1 | From b147803553237654f8268e831dee8fed4989ad3b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 3 | Date: Sat, 11 May 2019 14:46:39 +0800 | ||
| 4 | Subject: [PATCH] Submitted By: Pierre Labastie (pierre dot labastie at neuf | ||
| 5 | dot fr) Date: 2019-04-17 Initial Package Version: 1.11.1 Origin: Upstream | ||
| 6 | revision 1857391 Upstream Status: Committed Description: Get rid of | ||
| 7 | apr_int64_t format string check in swig py configure. | ||
| 8 | |||
| 9 | This check relied on APR implementation details and broke with APR 1.7.0. | ||
| 10 | Rather than trying to guess a perfect format string to use, just use the | ||
| 11 | largest possible format and cast the argument accordingly. | ||
| 12 | |||
| 13 | Should fix build against APR 1.7.0 and later. | ||
| 14 | |||
| 15 | Suggested by: brane | ||
| 16 | |||
| 17 | * build/ac-macros/swig.m4: Remove code related to SVN_APR_INT64_T_PYCFMT. | ||
| 18 | |||
| 19 | * subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c | ||
| 20 | (svn_swig_py_client_blame_receiver_func): Stop relying on the | ||
| 21 | SVN_APR_INT64_T_PYCFMT constant from configure. Use "L" and | ||
| 22 | acast to PY_LONG_LONG instead. | ||
| 23 | |||
| 24 | Upstream-Status: Backport [www.linuxfromscratch.org/patches/blfs/svn/subversion-1.12.0-apr_1.7.0_fix-1.patch] | ||
| 25 | |||
| 26 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 27 | --- | ||
| 28 | build/ac-macros/swig.m4 | 35 ---------------------- | ||
| 29 | .../swig/python/libsvn_swig_py/swigutil_py.c | 9 +++--- | ||
| 30 | 2 files changed, 4 insertions(+), 40 deletions(-) | ||
| 31 | |||
| 32 | diff --git a/build/ac-macros/swig.m4 b/build/ac-macros/swig.m4 | ||
| 33 | index 55501fb..2963872 100644 | ||
| 34 | --- a/build/ac-macros/swig.m4 | ||
| 35 | +++ b/build/ac-macros/swig.m4 | ||
| 36 | @@ -128,41 +128,6 @@ AC_DEFUN(SVN_FIND_SWIG, | ||
| 37 | ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`" | ||
| 38 | ]) | ||
| 39 | SWIG_PY_LIBS="`SVN_REMOVE_STANDARD_LIB_DIRS($ac_cv_python_libs)`" | ||
| 40 | - | ||
| 41 | - dnl Sun Forte adds an extra space before substituting APR_INT64_T_FMT | ||
| 42 | - dnl gcc-2.95 adds an extra space after substituting APR_INT64_T_FMT | ||
| 43 | - dnl thus the egrep patterns have a + in them. | ||
| 44 | - SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS" | ||
| 45 | - CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES" | ||
| 46 | - AC_CACHE_CHECK([for apr_int64_t Python/C API format string], | ||
| 47 | - [svn_cv_pycfmt_apr_int64_t], [ | ||
| 48 | - if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then | ||
| 49 | - AC_EGREP_CPP([MaTcHtHiS +\"lld\" +EnDeNd], | ||
| 50 | - [#include <apr.h> | ||
| 51 | - MaTcHtHiS APR_INT64_T_FMT EnDeNd], | ||
| 52 | - [svn_cv_pycfmt_apr_int64_t="L"]) | ||
| 53 | - fi | ||
| 54 | - if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then | ||
| 55 | - AC_EGREP_CPP([MaTcHtHiS +\"ld\" +EnDeNd],r | ||
| 56 | - [#include <apr.h> | ||
| 57 | - MaTcHtHiS APR_INT64_T_FMT EnDeNd], | ||
| 58 | - [svn_cv_pycfmt_apr_int64_t="l"]) | ||
| 59 | - fi | ||
| 60 | - if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then | ||
| 61 | - AC_EGREP_CPP([MaTcHtHiS +\"d\" +EnDeNd], | ||
| 62 | - [#include <apr.h> | ||
| 63 | - MaTcHtHiS APR_INT64_T_FMT EnDeNd], | ||
| 64 | - [svn_cv_pycfmt_apr_int64_t="i"]) | ||
| 65 | - fi | ||
| 66 | - ]) | ||
| 67 | - CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS" | ||
| 68 | - if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then | ||
| 69 | - AC_MSG_ERROR([failed to recognize APR_INT64_T_FMT on this platform]) | ||
| 70 | - fi | ||
| 71 | - AC_DEFINE_UNQUOTED([SVN_APR_INT64_T_PYCFMT], | ||
| 72 | - ["$svn_cv_pycfmt_apr_int64_t"], | ||
| 73 | - [Define to the Python/C API format character suitable] | ||
| 74 | - [ for apr_int64_t]) | ||
| 75 | fi | ||
| 76 | |||
| 77 | if test "$PERL" != "none"; then | ||
| 78 | diff --git a/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c b/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c | ||
| 79 | index 2c90a6a..abe5a2a 100644 | ||
| 80 | --- a/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c | ||
| 81 | +++ b/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c | ||
| 82 | @@ -46,7 +46,7 @@ | ||
| 83 | #include "svn_mergeinfo.h" | ||
| 84 | #include "svn_types.h" | ||
| 85 | |||
| 86 | -#include "svn_private_config.h" /* for SVN_APR_INT64_T_PYCFMT */ | ||
| 87 | +#include "svn_private_config.h" | ||
| 88 | |||
| 89 | #include "swig_python_external_runtime.swg" | ||
| 90 | #include "swigutil_py.h" | ||
| 91 | @@ -3394,10 +3394,9 @@ svn_error_t *svn_swig_py_client_blame_receiver_func(void *baton, | ||
| 92 | svn_swig_py_acquire_py_lock(); | ||
| 93 | |||
| 94 | if ((result = PyObject_CallFunction(receiver, | ||
| 95 | - (char *) | ||
| 96 | - (SVN_APR_INT64_T_PYCFMT "lsssO&"), | ||
| 97 | - line_no, revision, author, date, line, | ||
| 98 | - make_ob_pool, pool)) == NULL) | ||
| 99 | + (char *)"LlsssO&", | ||
| 100 | + (PY_LONG_LONG)line_no, revision, author, | ||
| 101 | + date, line, make_ob_pool, pool)) == NULL) | ||
| 102 | { | ||
| 103 | err = callback_exception_error(); | ||
| 104 | } | ||
| 105 | -- | ||
| 106 | 2.7.4 | ||
| 107 | |||
diff --git a/meta/recipes-devtools/subversion/subversion_1.12.0.bb b/meta/recipes-devtools/subversion/subversion_1.12.2.bb index f1ac1dcfdc..4ffa1c584e 100644 --- a/meta/recipes-devtools/subversion/subversion_1.12.0.bb +++ b/meta/recipes-devtools/subversion/subversion_1.12.2.bb | |||
| @@ -11,11 +11,10 @@ SRC_URI = "${APACHE_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2 \ | |||
| 11 | file://disable_macos.patch \ | 11 | file://disable_macos.patch \ |
| 12 | file://0001-Fix-libtool-name-in-configure.ac.patch \ | 12 | file://0001-Fix-libtool-name-in-configure.ac.patch \ |
| 13 | file://serfmacro.patch \ | 13 | file://serfmacro.patch \ |
| 14 | file://subversion-1.12.0-apr_1.7.0_fix-1.patch \ | ||
| 15 | " | 14 | " |
| 16 | 15 | ||
| 17 | SRC_URI[md5sum] = "be4f5c0b1b38a5d82bd6d16a16ff1346" | 16 | SRC_URI[md5sum] = "1ff249f848f834ded88536543e031975" |
| 18 | SRC_URI[sha256sum] = "7fae7c73d8a007c107c0ae5eb372bc0bb013dbfe966fcd5c59cd5a195a5e2edf" | 17 | SRC_URI[sha256sum] = "3bd0b5c8e4c5175263dc9a92fd9aef94ce917e80af034f26fe5c45fde7e0f771" |
| 19 | 18 | ||
| 20 | inherit autotools pkgconfig gettext | 19 | inherit autotools pkgconfig gettext |
| 21 | 20 | ||
