All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: openembedded-core@lists.openembedded.org,
	Richard Purdie <richard.purdie@linuxfoundation.org>
Subject: Re: [OE-core] [PATCH 1/3] autoconf: Test 2.72c
Date: Mon, 17 Jul 2023 14:50:33 +0200	[thread overview]
Message-ID: <20230717125033a8cb025c@mail.local> (raw)
In-Reply-To: <20230711234117.2924622-1-raj.khem@gmail.com>

I believe this is the cause of:

https://autobuilder.yoctoproject.org/typhoon/#/builders/57/builds/7337/steps/11/logs/stdio


ERROR: Logfile of failure stored in: /home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/temp/log.do_compile.1852799
Log data follows:
| DEBUG: Executing python function autotools_aclocals
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-32', 'ix86-common', 'x32-linux', 'x86_64-linux-gnux32', 'common']
| DEBUG: Python function autotools_aclocals finished
| DEBUG: Executing shell function do_compile
| NOTE: make -j 16 -l 52
| Making all in src
| make[1]: Entering directory '/home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/build/src'
| x86_64-poky-linux-gnux32-gcc  -mx32 -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../../gpgme-1.20.0/src -I../conf     -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/gpgme-1.20.0=/usr/src/debug/gpgme/1.20.0-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/gpgme-1.20.0=/usr/src/debug/gpgme/1.20.0-r0  -fmacro-prefix-map=/home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/build=/usr/src/debug/gpgme/1.20.0-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/build=/usr/src/debug/gpgme/1.20.0-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/recipe-sysroot=  -fmacro-prefix-map=/home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/recipe-sysroot=  -fdebug-prefix-map=/home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/recipe-sysroot-native=  -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wno-format-y2k -Wno-missing-field-initializers -Wno-sign-compare -Wno-format-zero-length -Wno-format-truncation -Wno-sizeof-pointer-div -c -o gpgme-tool.o ../../gpgme-1.20.0/src/gpgme-tool.c
| In file included from ../../gpgme-1.20.0/src/gpgme-tool.c:40:
| ./gpgme.h:111:2: error: #error GPGME was compiled with _FILE_OFFSET_BITS = 64, please see the section "Largefile support (LFS)" in the GPGME manual.
|   111 | #error GPGME was compiled with _FILE_OFFSET_BITS = 64, please see the section "Largefile support (LFS)" in the GPGME manual.
|       |  ^~~~~
| make[1]: Leaving directory '/home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/build/src'
| make[1]: *** [Makefile:983: gpgme-tool.o] Error 1
| make: *** [Makefile:531: all-recursive] Error 1
| ERROR: oe_runmake failed
| WARNING: /home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/temp/run.do_compile.1852799:201 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
| 	#1: bbfatal_log, /home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/temp/run.do_compile.1852799, line 201
| 	#2: die, /home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/temp/run.do_compile.1852799, line 185
| 	#3: oe_runmake, /home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/temp/run.do_compile.1852799, line 180
| 	#4: autotools_do_compile, /home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/temp/run.do_compile.1852799, line 168
| 	#5: do_compile, /home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/temp/run.do_compile.1852799, line 163
| 	#6: main, /home/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/gpgme/1.20.0-r0/temp/run.do_compile.1852799, line 214
NOTE: recipe gpgme-1.20.0-r0: task do_compile: Failed
ERROR: Task (/home/pokybuild/yocto-worker/qemux86-64-x32/build/meta/recipes-support/gpgme/gpgme_1.20.0.bb:do_compile) failed with exit code '1'


On 11/07/2023 16:41:13-0700, Khem Raj wrote:
> From: Richard Purdie <richard.purdie@linuxfoundation.org>
> 
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  .../gettext-0.21.1/autoconf-2.73.patch        |  41 ++++++
>  meta/recipes-core/gettext/gettext_0.21.1.bb   |   1 +
>  ...ilers-that-moan-about-K-R-func-decls.patch | 138 ------------------
>  .../{autoconf_2.71.bb => autoconf_2.72c.bb}   |   6 +-
>  .../bison/bison/autoconf-2.73.patch           |  15 ++
>  meta/recipes-devtools/bison/bison_3.8.2.bb    |   1 +
>  meta/recipes-extended/findutils/findutils.inc |   1 +
>  .../findutils/findutils/autoconf-2.73.patch   |  15 ++
>  .../gzip/gzip-1.12/autoconf-2.73.patch        |  15 ++
>  meta/recipes-extended/gzip/gzip_1.12.bb       |   1 +
>  .../libarchive/libarchive/configurehack.patch |  45 ++++++
>  .../libarchive/libarchive_3.6.2.bb            |   1 +
>  .../libpipeline/autoconf-2.73.patch           |  15 ++
>  .../libpipeline/libpipeline_1.5.7.bb          |   1 +
>  .../man-db/files/autoconf-2.73.patch          |  15 ++
>  meta/recipes-extended/man-db/man-db_2.11.2.bb |   1 +
>  .../parted/files/autoconf-2.73.patch          |  13 ++
>  meta/recipes-extended/parted/parted_3.6.bb    |   1 +
>  .../apr/apr/autoconf-2.73.patch               |  23 +++
>  meta/recipes-support/apr/apr_1.7.4.bb         |   1 +
>  20 files changed, 209 insertions(+), 141 deletions(-)
>  create mode 100644 meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch
>  delete mode 100644 meta/recipes-devtools/autoconf/autoconf/0001-Port-to-compilers-that-moan-about-K-R-func-decls.patch
>  rename meta/recipes-devtools/autoconf/{autoconf_2.71.bb => autoconf_2.72c.bb} (92%)
>  create mode 100644 meta/recipes-devtools/bison/bison/autoconf-2.73.patch
>  create mode 100644 meta/recipes-extended/findutils/findutils/autoconf-2.73.patch
>  create mode 100644 meta/recipes-extended/gzip/gzip-1.12/autoconf-2.73.patch
>  create mode 100644 meta/recipes-extended/libarchive/libarchive/configurehack.patch
>  create mode 100644 meta/recipes-extended/libpipeline/libpipeline/autoconf-2.73.patch
>  create mode 100644 meta/recipes-extended/man-db/files/autoconf-2.73.patch
>  create mode 100644 meta/recipes-extended/parted/files/autoconf-2.73.patch
>  create mode 100644 meta/recipes-support/apr/apr/autoconf-2.73.patch
> 
> diff --git a/meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch b/meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch
> new file mode 100644
> index 00000000000..9b3ed336a4b
> --- /dev/null
> +++ b/meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch
> @@ -0,0 +1,41 @@
> +Upstream-Status: Inappropriate
> +
> +Index: gettext-0.21.1/gettext-runtime/gnulib-m4/largefile.m4
> +===================================================================
> +--- gettext-0.21.1.orig/gettext-runtime/gnulib-m4/largefile.m4
> ++++ gettext-0.21.1/gettext-runtime/gnulib-m4/largefile.m4
> +@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
> + # with _TIME_BITS.  Also, work around a problem in autoconf <= 2.69:
> + # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
> + # or configures them incorrectly in some cases.
> +-m4_version_prereq([2.70], [], [
> ++m4_version_prereq([2.73], [], [
> + 
> + # _AC_SYS_LARGEFILE_TEST_INCLUDES
> + # -------------------------------
> +Index: gettext-0.21.1/gettext-tools/gnulib-m4/largefile.m4
> +===================================================================
> +--- gettext-0.21.1.orig/gettext-tools/gnulib-m4/largefile.m4
> ++++ gettext-0.21.1/gettext-tools/gnulib-m4/largefile.m4
> +@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
> + # with _TIME_BITS.  Also, work around a problem in autoconf <= 2.69:
> + # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
> + # or configures them incorrectly in some cases.
> +-m4_version_prereq([2.70], [], [
> ++m4_version_prereq([2.73], [], [
> + 
> + # _AC_SYS_LARGEFILE_TEST_INCLUDES
> + # -------------------------------
> +Index: gettext-0.21.1/libtextstyle/gnulib-m4/largefile.m4
> +===================================================================
> +--- gettext-0.21.1.orig/libtextstyle/gnulib-m4/largefile.m4
> ++++ gettext-0.21.1/libtextstyle/gnulib-m4/largefile.m4
> +@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
> + # with _TIME_BITS.  Also, work around a problem in autoconf <= 2.69:
> + # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
> + # or configures them incorrectly in some cases.
> +-m4_version_prereq([2.70], [], [
> ++m4_version_prereq([2.73], [], [
> + 
> + # _AC_SYS_LARGEFILE_TEST_INCLUDES
> + # -------------------------------
> diff --git a/meta/recipes-core/gettext/gettext_0.21.1.bb b/meta/recipes-core/gettext/gettext_0.21.1.bb
> index b80ea9276ef..2f030a2df9d 100644
> --- a/meta/recipes-core/gettext/gettext_0.21.1.bb
> +++ b/meta/recipes-core/gettext/gettext_0.21.1.bb
> @@ -29,6 +29,7 @@ SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \
>             file://serial-tests-config.patch \
>             file://0001-tests-autopoint-3-unset-MAKEFLAGS.patch \
>             file://0001-init-env.in-do-not-add-C-CXX-parameters.patch \
> +           file://autoconf-2.73.patch \
>             "
>  SRC_URI[sha256sum] = "e8c3650e1d8cee875c4f355642382c1df83058bd5a11ee8555c0cf276d646d45"
>  
> diff --git a/meta/recipes-devtools/autoconf/autoconf/0001-Port-to-compilers-that-moan-about-K-R-func-decls.patch b/meta/recipes-devtools/autoconf/autoconf/0001-Port-to-compilers-that-moan-about-K-R-func-decls.patch
> deleted file mode 100644
> index 4f15bf96c3b..00000000000
> --- a/meta/recipes-devtools/autoconf/autoconf/0001-Port-to-compilers-that-moan-about-K-R-func-decls.patch
> +++ /dev/null
> @@ -1,138 +0,0 @@
> -From 7a3bbca81b803ba116b83c82de378e840cc35f81 Mon Sep 17 00:00:00 2001
> -From: Paul Eggert <eggert@cs.ucla.edu>
> -Date: Thu, 1 Sep 2022 16:19:50 -0500
> -Subject: [PATCH] Port to compilers that moan about K&R func decls
> -MIME-Version: 1.0
> -Content-Type: text/plain; charset=UTF-8
> -Content-Transfer-Encoding: 8bit
> -
> -* lib/autoconf/c.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
> -Use '(void)' rather than '()' in function prototypes, as the latter
> -provokes fatal errors in some compilers nowadays.
> -* lib/autoconf/functions.m4 (AC_FUNC_STRTOD):
> -* tests/fortran.at (AC_F77_DUMMY_MAIN usage):
> -* tests/semantics.at (AC_CHECK_DECLS):
> -Don’t use () in a function decl.
> -
> -Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=8b5e2016c7ed2d67f31b03a3d2e361858ff5299b]
> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ----
> - doc/autoconf.texi         | 7 +++----
> - lib/autoconf/c.m4         | 6 +++---
> - lib/autoconf/functions.m4 | 3 ---
> - tests/fortran.at          | 8 ++++----
> - tests/semantics.at        | 2 +-
> - 5 files changed, 11 insertions(+), 15 deletions(-)
> -
> ---- a/doc/autoconf.texi
> -+++ b/doc/autoconf.texi
> -@@ -5465,9 +5465,7 @@ the @samp{#undef malloc}):
> - #include <config.h>
> - #undef malloc
> - 
> --#include <sys/types.h>
> --
> --void *malloc ();
> -+#include <stdlib.h>
> - 
> - /* Allocate an N-byte block of memory from the heap.
> -    If N is zero, allocate a 1-byte block.  */
> -@@ -8295,7 +8293,7 @@ needed:
> - #  ifdef __cplusplus
> -      extern "C"
> - #  endif
> --   int F77_DUMMY_MAIN () @{ return 1; @}
> -+   int F77_DUMMY_MAIN (void) @{ return 1; @}
> - #endif
> - @end example
> - 
> ---- a/lib/autoconf/c.m4
> -+++ b/lib/autoconf/c.m4
> -@@ -127,7 +127,7 @@ m4_if([$2], [main], ,
> - [/* Override any GCC internal prototype to avoid an error.
> -    Use char because int might match the return type of a GCC
> -    builtin and then its argument prototype would still apply.  */
> --char $2 ();])], [return $2 ();])])
> -+char $2 (void);])], [return $2 ();])])
> - 
> - 
> - # AC_LANG_FUNC_LINK_TRY(C)(FUNCTION)
> -@@ -151,7 +151,7 @@ m4_define([AC_LANG_FUNC_LINK_TRY(C)],
> - #define $1 innocuous_$1
> - 
> - /* System header to define __stub macros and hopefully few prototypes,
> --   which can conflict with char $1 (); below.  */
> -+   which can conflict with char $1 (void); below.  */
> - 
> - #include <limits.h>
> - #undef $1
> -@@ -162,7 +162,7 @@ m4_define([AC_LANG_FUNC_LINK_TRY(C)],
> - #ifdef __cplusplus
> - extern "C"
> - #endif
> --char $1 ();
> -+char $1 (void);
> - /* The GNU C library defines this for functions which it implements
> -     to always fail with ENOSYS.  Some functions are actually named
> -     something starting with __ and the normal name is an alias.  */
> ---- a/lib/autoconf/functions.m4
> -+++ b/lib/autoconf/functions.m4
> -@@ -1601,9 +1601,6 @@ AC_DEFUN([AC_FUNC_STRTOD],
> - AC_CACHE_CHECK(for working strtod, ac_cv_func_strtod,
> - [AC_RUN_IFELSE([AC_LANG_SOURCE([[
> - ]AC_INCLUDES_DEFAULT[
> --#ifndef strtod
> --double strtod ();
> --#endif
> - int
> - main (void)
> - {
> ---- a/tests/fortran.at
> -+++ b/tests/fortran.at
> -@@ -233,7 +233,7 @@ void FOOBAR_F77 (double *x, double *y);
> - #  ifdef __cplusplus
> -      extern "C"
> - #  endif
> --   int F77_DUMMY_MAIN () { return 1; }
> -+   int F77_DUMMY_MAIN (void) { return 1; }
> - #endif
> - 
> - int main(int argc, char *argv[])
> -@@ -315,7 +315,7 @@ void FOOBAR_FC(double *x, double *y);
> - #  ifdef __cplusplus
> -      extern "C"
> - #  endif
> --   int FC_DUMMY_MAIN () { return 1; }
> -+   int FC_DUMMY_MAIN (void) { return 1; }
> - #endif
> - 
> - int main (int argc, char *argv[])
> -@@ -561,7 +561,7 @@ void @foobar@ (int *x);
> - #  ifdef __cplusplus
> -      extern "C"
> - #  endif
> --   int F77_DUMMY_MAIN () { return 1; }
> -+   int F77_DUMMY_MAIN (void) { return 1; }
> - #endif
> - 
> - int main(int argc, char *argv[])
> -@@ -637,7 +637,7 @@ void @foobar@ (int *x);
> - #  ifdef __cplusplus
> -      extern "C"
> - #  endif
> --   int FC_DUMMY_MAIN () { return 1; }
> -+   int FC_DUMMY_MAIN (void) { return 1; }
> - #endif
> - 
> - int main(int argc, char *argv[])
> ---- a/tests/semantics.at
> -+++ b/tests/semantics.at
> -@@ -207,7 +207,7 @@ AT_CHECK_MACRO([AC_CHECK_DECLS],
> - 		 [[extern int yes;
> - 		   enum { myenum };
> - 		   extern struct mystruct_s { int x[20]; } mystruct;
> --		   extern int myfunc();
> -+		   extern int myfunc (int);
> - 		   #define mymacro1(arg) arg
> - 		   #define mymacro2]])
> -   # Ensure we can detect missing declarations of functions whose
> diff --git a/meta/recipes-devtools/autoconf/autoconf_2.71.bb b/meta/recipes-devtools/autoconf/autoconf_2.72c.bb
> similarity index 92%
> rename from meta/recipes-devtools/autoconf/autoconf_2.71.bb
> rename to meta/recipes-devtools/autoconf/autoconf_2.72c.bb
> index 97c241a3f5f..fe9779e4ddb 100644
> --- a/meta/recipes-devtools/autoconf/autoconf_2.71.bb
> +++ b/meta/recipes-devtools/autoconf/autoconf_2.72c.bb
> @@ -11,18 +11,18 @@ DEPENDS:remove:class-native = "autoconf-native automake-native help2man-native"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=cc3f3a7596cb558bbd9eb7fbaa3ef16c \
>  		    file://COPYINGv3;md5=1ebbd3e34237af26da5dc08a4e440464"
>  
> -SRC_URI = "${GNU_MIRROR}/autoconf/${BP}.tar.gz \
> +SRC_URI = " \
> +           https://alpha.gnu.org/gnu/autoconf/autoconf-2.72c.tar.gz \
>             file://program_prefix.patch \
>             file://autoreconf-exclude.patch \
>             file://remove-usr-local-lib-from-m4.patch \
>             file://preferbash.patch \
>             file://autotest-automake-result-format.patch \
>             file://man-host-perl.patch \
> -           file://0001-Port-to-compilers-that-moan-about-K-R-func-decls.patch \
>             "
>  SRC_URI:append:class-native = " file://no-man.patch"
>  
> -SRC_URI[sha256sum] = "431075ad0bf529ef13cb41e9042c542381103e80015686222b8a9d4abef42a1c"
> +SRC_URI[sha256sum] = "21b64169c820c6cdf27fc981ca9c2fb615546e5dead92bccf8d92d0784cdd364"
>  
>  RDEPENDS:${PN} = "m4 gnu-config \
>  		  perl \
> diff --git a/meta/recipes-devtools/bison/bison/autoconf-2.73.patch b/meta/recipes-devtools/bison/bison/autoconf-2.73.patch
> new file mode 100644
> index 00000000000..8c77d50e0a6
> --- /dev/null
> +++ b/meta/recipes-devtools/bison/bison/autoconf-2.73.patch
> @@ -0,0 +1,15 @@
> +Upstream-Status: Inappropriate
> +
> +Index: findutils-4.9.0/gl/m4/largefile.m4
> +===================================================================
> +--- findutils-4.9.0.orig/m4/largefile.m4
> ++++ findutils-4.9.0/m4/largefile.m4
> +@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
> + # with _TIME_BITS.  Also, work around a problem in autoconf <= 2.69:
> + # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
> + # or configures them incorrectly in some cases.
> +-m4_version_prereq([2.70], [], [
> ++m4_version_prereq([2.73], [], [
> + 
> + # _AC_SYS_LARGEFILE_TEST_INCLUDES
> + # -------------------------------
> diff --git a/meta/recipes-devtools/bison/bison_3.8.2.bb b/meta/recipes-devtools/bison/bison_3.8.2.bb
> index c95f321244f..da138e35874 100644
> --- a/meta/recipes-devtools/bison/bison_3.8.2.bb
> +++ b/meta/recipes-devtools/bison/bison_3.8.2.bb
> @@ -10,6 +10,7 @@ SECTION = "devel"
>  DEPENDS = "bison-native flex-native"
>  
>  SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.xz \
> +           file://autoconf-2.73.patch \
>             file://add-with-bisonlocaledir.patch \
>             "
>  SRC_URI[sha256sum] = "9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2"
> diff --git a/meta/recipes-extended/findutils/findutils.inc b/meta/recipes-extended/findutils/findutils.inc
> index ddcc05750b8..03cf2a8d72b 100644
> --- a/meta/recipes-extended/findutils/findutils.inc
> +++ b/meta/recipes-extended/findutils/findutils.inc
> @@ -7,6 +7,7 @@ BUGTRACKER = "http://savannah.gnu.org/bugs/?group=findutils"
>  SECTION = "console/utils"
>  
>  SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.xz \
> +          file://autoconf-2.73.patch \
>            file://run-ptest \
>            "
>  
> diff --git a/meta/recipes-extended/findutils/findutils/autoconf-2.73.patch b/meta/recipes-extended/findutils/findutils/autoconf-2.73.patch
> new file mode 100644
> index 00000000000..2247ebe5b2b
> --- /dev/null
> +++ b/meta/recipes-extended/findutils/findutils/autoconf-2.73.patch
> @@ -0,0 +1,15 @@
> +Upstream-Status: Inappropriate
> +
> +Index: findutils-4.9.0/gl/m4/largefile.m4
> +===================================================================
> +--- findutils-4.9.0.orig/gl/m4/largefile.m4
> ++++ findutils-4.9.0/gl/m4/largefile.m4
> +@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
> + # with _TIME_BITS.  Also, work around a problem in autoconf <= 2.69:
> + # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
> + # or configures them incorrectly in some cases.
> +-m4_version_prereq([2.70], [], [
> ++m4_version_prereq([2.73], [], [
> + 
> + # _AC_SYS_LARGEFILE_TEST_INCLUDES
> + # -------------------------------
> diff --git a/meta/recipes-extended/gzip/gzip-1.12/autoconf-2.73.patch b/meta/recipes-extended/gzip/gzip-1.12/autoconf-2.73.patch
> new file mode 100644
> index 00000000000..8c77d50e0a6
> --- /dev/null
> +++ b/meta/recipes-extended/gzip/gzip-1.12/autoconf-2.73.patch
> @@ -0,0 +1,15 @@
> +Upstream-Status: Inappropriate
> +
> +Index: findutils-4.9.0/gl/m4/largefile.m4
> +===================================================================
> +--- findutils-4.9.0.orig/m4/largefile.m4
> ++++ findutils-4.9.0/m4/largefile.m4
> +@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
> + # with _TIME_BITS.  Also, work around a problem in autoconf <= 2.69:
> + # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
> + # or configures them incorrectly in some cases.
> +-m4_version_prereq([2.70], [], [
> ++m4_version_prereq([2.73], [], [
> + 
> + # _AC_SYS_LARGEFILE_TEST_INCLUDES
> + # -------------------------------
> diff --git a/meta/recipes-extended/gzip/gzip_1.12.bb b/meta/recipes-extended/gzip/gzip_1.12.bb
> index 14de50b2305..35eb7c4da23 100644
> --- a/meta/recipes-extended/gzip/gzip_1.12.bb
> +++ b/meta/recipes-extended/gzip/gzip_1.12.bb
> @@ -5,6 +5,7 @@ require gzip.inc
>  LICENSE = "GPL-3.0-or-later"
>  
>  SRC_URI = "${GNU_MIRROR}/gzip/${BP}.tar.gz \
> +           file://autoconf-2.73.patch \
>             file://run-ptest \
>            "
>  SRC_URI:append:class-target = " file://wrong-path-fix.patch"
> diff --git a/meta/recipes-extended/libarchive/libarchive/configurehack.patch b/meta/recipes-extended/libarchive/libarchive/configurehack.patch
> new file mode 100644
> index 00000000000..991ec92f053
> --- /dev/null
> +++ b/meta/recipes-extended/libarchive/libarchive/configurehack.patch
> @@ -0,0 +1,45 @@
> +Upstream-Status: Pending
> +Index: libarchive-3.6.2/configure.ac
> +===================================================================
> +--- libarchive-3.6.2.orig/configure.ac
> ++++ libarchive-3.6.2/configure.ac
> +@@ -357,6 +357,19 @@ if test "x$with_bz2lib" != "xno"; then
> +   esac
> + fi
> + 
> ++# Checks for typedefs, structures, and compiler characteristics.
> ++AC_C_CONST
> ++# la_TYPE_UID_T defaults to "int", which is incorrect for MinGW
> ++# and MSVC. Use a customized version.
> ++la_TYPE_UID_T
> ++AC_TYPE_MODE_T
> ++# AC_TYPE_OFF_T defaults to "long", which limits us to 4GB files on
> ++# most systems... default to "long long" instead.
> ++AC_CHECK_TYPE(off_t, [long long])
> ++AC_TYPE_SIZE_T
> ++AC_CHECK_TYPE(id_t, [unsigned long])
> ++AC_CHECK_TYPE(uintptr_t, [unsigned int])
> ++
> + AC_ARG_WITH([libb2],
> +   AS_HELP_STRING([--without-libb2], [Don't build support for BLAKE2 through libb2]))
> + 
> +@@ -558,19 +571,6 @@ LDFLAGS=$save_LDFLAGS
> + 
> + AC_SUBST(GC_SECTIONS)
> + 
> +-# Checks for typedefs, structures, and compiler characteristics.
> +-AC_C_CONST
> +-# la_TYPE_UID_T defaults to "int", which is incorrect for MinGW
> +-# and MSVC. Use a customized version.
> +-la_TYPE_UID_T
> +-AC_TYPE_MODE_T
> +-# AC_TYPE_OFF_T defaults to "long", which limits us to 4GB files on
> +-# most systems... default to "long long" instead.
> +-AC_CHECK_TYPE(off_t, [long long])
> +-AC_TYPE_SIZE_T
> +-AC_CHECK_TYPE(id_t, [unsigned long])
> +-AC_CHECK_TYPE(uintptr_t, [unsigned int])
> +-
> + # Check for tm_gmtoff in struct tm
> + AC_CHECK_MEMBERS([struct tm.tm_gmtoff, struct tm.__tm_gmtoff],,,
> + [
> diff --git a/meta/recipes-extended/libarchive/libarchive_3.6.2.bb b/meta/recipes-extended/libarchive/libarchive_3.6.2.bb
> index aafede3da8c..bf14725dc18 100644
> --- a/meta/recipes-extended/libarchive/libarchive_3.6.2.bb
> +++ b/meta/recipes-extended/libarchive/libarchive_3.6.2.bb
> @@ -29,6 +29,7 @@ PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd,"
>  EXTRA_OECONF += "--enable-largefile --without-iconv"
>  
>  SRC_URI = "http://libarchive.org/downloads/libarchive-${PV}.tar.gz"
> +SRC_URI += "file://configurehack.patch"
>  UPSTREAM_CHECK_URI = "http://libarchive.org/"
>  
>  SRC_URI[sha256sum] = "ba6d02f15ba04aba9c23fd5f236bb234eab9d5209e95d1c4df85c44d5f19b9b3"
> diff --git a/meta/recipes-extended/libpipeline/libpipeline/autoconf-2.73.patch b/meta/recipes-extended/libpipeline/libpipeline/autoconf-2.73.patch
> new file mode 100644
> index 00000000000..2247ebe5b2b
> --- /dev/null
> +++ b/meta/recipes-extended/libpipeline/libpipeline/autoconf-2.73.patch
> @@ -0,0 +1,15 @@
> +Upstream-Status: Inappropriate
> +
> +Index: findutils-4.9.0/gl/m4/largefile.m4
> +===================================================================
> +--- findutils-4.9.0.orig/gl/m4/largefile.m4
> ++++ findutils-4.9.0/gl/m4/largefile.m4
> +@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
> + # with _TIME_BITS.  Also, work around a problem in autoconf <= 2.69:
> + # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
> + # or configures them incorrectly in some cases.
> +-m4_version_prereq([2.70], [], [
> ++m4_version_prereq([2.73], [], [
> + 
> + # _AC_SYS_LARGEFILE_TEST_INCLUDES
> + # -------------------------------
> diff --git a/meta/recipes-extended/libpipeline/libpipeline_1.5.7.bb b/meta/recipes-extended/libpipeline/libpipeline_1.5.7.bb
> index 73c7aaaa914..7e3f13ebde0 100644
> --- a/meta/recipes-extended/libpipeline/libpipeline_1.5.7.bb
> +++ b/meta/recipes-extended/libpipeline/libpipeline_1.5.7.bb
> @@ -7,6 +7,7 @@ LICENSE = "GPL-3.0-only"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
>  
>  SRC_URI = "${SAVANNAH_GNU_MIRROR}/libpipeline/libpipeline-${PV}.tar.gz"
> +SRC_URI += "file://autoconf-2.73.patch"
>  SRC_URI[sha256sum] = "b8b45194989022a79ec1317f64a2a75b1551b2a55bea06f67704cb2a2e4690b0"
>  
>  inherit pkgconfig autotools
> diff --git a/meta/recipes-extended/man-db/files/autoconf-2.73.patch b/meta/recipes-extended/man-db/files/autoconf-2.73.patch
> new file mode 100644
> index 00000000000..2247ebe5b2b
> --- /dev/null
> +++ b/meta/recipes-extended/man-db/files/autoconf-2.73.patch
> @@ -0,0 +1,15 @@
> +Upstream-Status: Inappropriate
> +
> +Index: findutils-4.9.0/gl/m4/largefile.m4
> +===================================================================
> +--- findutils-4.9.0.orig/gl/m4/largefile.m4
> ++++ findutils-4.9.0/gl/m4/largefile.m4
> +@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
> + # with _TIME_BITS.  Also, work around a problem in autoconf <= 2.69:
> + # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
> + # or configures them incorrectly in some cases.
> +-m4_version_prereq([2.70], [], [
> ++m4_version_prereq([2.73], [], [
> + 
> + # _AC_SYS_LARGEFILE_TEST_INCLUDES
> + # -------------------------------
> diff --git a/meta/recipes-extended/man-db/man-db_2.11.2.bb b/meta/recipes-extended/man-db/man-db_2.11.2.bb
> index ca0cb1a0e12..3884a531a6a 100644
> --- a/meta/recipes-extended/man-db/man-db_2.11.2.bb
> +++ b/meta/recipes-extended/man-db/man-db_2.11.2.bb
> @@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \
>  SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/man-db/man-db-${PV}.tar.xz \
>             file://99_mandb \
>             file://0001-man-Move-local-variable-declaration-to-function-scop.patch \
> +           file://autoconf-2.73.patch \
>             file://man_db.conf-avoid-multilib-install-file-conflict.patch"
>  SRC_URI[sha256sum] = "cffa1ee4e974be78646c46508e6dd2f37e7c589aaab2938cc1064f058fef9f8d"
>  
> diff --git a/meta/recipes-extended/parted/files/autoconf-2.73.patch b/meta/recipes-extended/parted/files/autoconf-2.73.patch
> new file mode 100644
> index 00000000000..23abc2fc6b6
> --- /dev/null
> +++ b/meta/recipes-extended/parted/files/autoconf-2.73.patch
> @@ -0,0 +1,13 @@
> +Upstream-Status: Inappropriate
> +
> +--- a/m4/largefile.m4
> ++++ b/m4/largefile.m4
> +@@ -27,7 +27,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
> + # Work around a problem in autoconf <= 2.69:
> + # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
> + # or configures them incorrectly in some cases.
> +-m4_version_prereq([2.70], [], [
> ++m4_version_prereq([2.73], [], [
> + 
> + # _AC_SYS_LARGEFILE_TEST_INCLUDES
> + # -------------------------------
> diff --git a/meta/recipes-extended/parted/parted_3.6.bb b/meta/recipes-extended/parted/parted_3.6.bb
> index a755e1c148b..a537ef74dba 100644
> --- a/meta/recipes-extended/parted/parted_3.6.bb
> +++ b/meta/recipes-extended/parted/parted_3.6.bb
> @@ -9,6 +9,7 @@ DEPENDS = "ncurses util-linux virtual/libiconv"
>  SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.xz \
>             file://fix-doc-mandir.patch \
>             file://0001-fs-Add-libuuid-to-linker-flags-for-libparted-fs-resi.patch \
> +           file://autoconf-2.73.patch \
>             file://run-ptest \
>             "
>  
> diff --git a/meta/recipes-support/apr/apr/autoconf-2.73.patch b/meta/recipes-support/apr/apr/autoconf-2.73.patch
> new file mode 100644
> index 00000000000..7ddb7668bd0
> --- /dev/null
> +++ b/meta/recipes-support/apr/apr/autoconf-2.73.patch
> @@ -0,0 +1,23 @@
> +Upstream-Status: Pending
> +
> +Index: apr-1.7.2/configure.in
> +===================================================================
> +--- apr-1.7.2.orig/configure.in
> ++++ apr-1.7.2/configure.in
> +@@ -430,6 +430,8 @@ if test "$host" = "i586-pc-beos"; then
> +   ) dnl
> + fi
> + 
> ++APR_CHECK_DEFINE(LOCK_EX, sys/file.h)
> ++
> + # this is the place to put specific options for platform/compiler
> + # combinations
> + case "$host:$CC" in
> +@@ -2384,7 +2386,6 @@ AC_MSG_RESULT([$msg])
> + AC_SUBST(have_union_semun)
> + 
> + dnl Checks for libraries.
> +-APR_CHECK_DEFINE(LOCK_EX, sys/file.h)
> + APR_CHECK_DEFINE(F_SETLK, fcntl.h)
> + APR_CHECK_DEFINE(SEM_UNDO, sys/sem.h)
> + 
> diff --git a/meta/recipes-support/apr/apr_1.7.4.bb b/meta/recipes-support/apr/apr_1.7.4.bb
> index e5714693416..5ac7f4b93f7 100644
> --- a/meta/recipes-support/apr/apr_1.7.4.bb
> +++ b/meta/recipes-support/apr/apr_1.7.4.bb
> @@ -22,6 +22,7 @@ SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.bz2 \
>             file://libtoolize_check.patch \
>             file://0001-Add-option-to-disable-timed-dependant-tests.patch \
>             file://0001-configure-Remove-runtime-test-for-mmap-that-can-map-.patch \
> +           file://autoconf-2.73.patch \
>             "
>  
>  SRC_URI[sha256sum] = "fc648de983f3a2a6c9e78dea1f180639bd2fad6c06d556d4367a701fe5c35577"
> -- 
> 2.41.0
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#184163): https://lists.openembedded.org/g/openembedded-core/message/184163
> Mute This Topic: https://lists.openembedded.org/mt/100090408/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


      parent reply	other threads:[~2023-07-17 12:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-11 23:41 [PATCH 1/3] autoconf: Test 2.72c Khem Raj
2023-07-11 23:41 ` [PATCH 2/3] autoconf_2.72c.bb: Backport fixes Khem Raj
2023-07-11 23:41 ` [PATCH 3/3] Revert "site: merged common-glibc from OE" Khem Raj
2023-07-12 10:31   ` [OE-core] " Ross Burton
2023-07-17 12:50 ` Alexandre Belloni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230717125033a8cb025c@mail.local \
    --to=alexandre.belloni@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.