summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/automake
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/automake')
-rw-r--r--meta/recipes-devtools/automake/automake.inc4
-rw-r--r--meta/recipes-devtools/automake/automake/0001-Drop-ar-u-argument.patch35
-rw-r--r--meta/recipes-devtools/automake/automake/0001-automake-Update-for-python.m4-to-respect-libdir.patch83
-rw-r--r--meta/recipes-devtools/automake/automake/automake-replace-w-option-in-shebangs-with-modern-use-warnings.patch60
-rw-r--r--meta/recipes-devtools/automake/automake/buildtest.patch2
-rw-r--r--meta/recipes-devtools/automake/automake/python-libdir.patch88
-rw-r--r--meta/recipes-devtools/automake/automake_1.16.2.bb43
-rw-r--r--meta/recipes-devtools/automake/automake_1.16.5.bb43
8 files changed, 164 insertions, 194 deletions
diff --git a/meta/recipes-devtools/automake/automake.inc b/meta/recipes-devtools/automake/automake.inc
index 87cedc9838..9946c73c71 100644
--- a/meta/recipes-devtools/automake/automake.inc
+++ b/meta/recipes-devtools/automake/automake.inc
@@ -1,7 +1,7 @@
1SUMMARY = "A GNU tool for automatically generating Makefiles" 1SUMMARY = "A GNU tool for automatically generating Makefiles"
2DESCRIPTION = "Automake is a tool for automatically generating `Makefile.in' files compliant with the GNU Coding \ 2DESCRIPTION = "Automake is a tool for automatically generating `Makefile.in' files compliant with the GNU Coding \
3Standards. Automake requires the use of Autoconf." 3Standards. Automake requires the use of Autoconf."
4LICENSE = "GPLv2" 4LICENSE = "GPL-2.0-only"
5HOMEPAGE = "http://www.gnu.org/software/automake/" 5HOMEPAGE = "http://www.gnu.org/software/automake/"
6SECTION = "devel" 6SECTION = "devel"
7 7
@@ -18,4 +18,4 @@ do_configure() {
18 18
19export AUTOMAKE = "${@bb.utils.which('automake', d.getVar('PATH'))}" 19export AUTOMAKE = "${@bb.utils.which('automake', d.getVar('PATH'))}"
20 20
21FILES_${PN} += "${datadir}/automake* ${datadir}/aclocal*" 21FILES:${PN} += "${datadir}/automake* ${datadir}/aclocal*"
diff --git a/meta/recipes-devtools/automake/automake/0001-Drop-ar-u-argument.patch b/meta/recipes-devtools/automake/automake/0001-Drop-ar-u-argument.patch
new file mode 100644
index 0000000000..f72788c3a6
--- /dev/null
+++ b/meta/recipes-devtools/automake/automake/0001-Drop-ar-u-argument.patch
@@ -0,0 +1,35 @@
1From bed646918bc67e9e2151ccbda03aae34717821fe Mon Sep 17 00:00:00 2001
2From: Andrei Gherzan <andrei.gherzan@huawei.com>
3Date: Wed, 20 Apr 2022 14:57:14 +0200
4Subject: [PATCH] Drop ar 'u' argument
5
6binutils/ar is configured in deterministic mode by default making the
7'u' argument irrelevant while leading to warning massages similar to:
8
9| ar: `u' modifier ignored since `D' is the default (see `U')
10
11We also add 'D' flag explicitely to not rely in the default configuration
12for reproducible archives.
13
14Upstream-Status: Inappropriate [OE specific]
15Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
16---
17 bin/automake.in | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/bin/automake.in b/bin/automake.in
21index 92bcebe..0f2b84b 100644
22--- a/bin/automake.in
23+++ b/bin/automake.in
24@@ -2678,7 +2678,7 @@ sub handle_libraries ()
25 }
26
27 define_variable ('AR', 'ar', INTERNAL);
28- define_variable ('ARFLAGS', 'cru', INTERNAL);
29+ define_variable ('ARFLAGS', 'crD', INTERNAL);
30 define_verbose_tagvar ('AR');
31
32 foreach my $pair (@liblist)
33--
342.25.1
35
diff --git a/meta/recipes-devtools/automake/automake/0001-automake-Update-for-python.m4-to-respect-libdir.patch b/meta/recipes-devtools/automake/automake/0001-automake-Update-for-python.m4-to-respect-libdir.patch
new file mode 100644
index 0000000000..d28045618e
--- /dev/null
+++ b/meta/recipes-devtools/automake/automake/0001-automake-Update-for-python.m4-to-respect-libdir.patch
@@ -0,0 +1,83 @@
1From dff74c5b19935cc11b30116a7ae9c8affdff246b Mon Sep 17 00:00:00 2001
2From: Kumar Gala <galak@kernel.crashing.org>
3Date: Thu, 11 Aug 2011 01:26:33 -0500
4Subject: [PATCH] automake: Update for python.m4 to respect libdir
5
6Upstream-Status: Inappropriate [embedded specific]
7
8Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
9
10Updated for automake-1.12.6
11
12Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
13Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
14---
15 m4/python.m4 | 24 ++++++------------------
16 1 file changed, 6 insertions(+), 18 deletions(-)
17
18diff --git a/m4/python.m4 b/m4/python.m4
19index 4e7de9427..40fc5b396 100644
20--- a/m4/python.m4
21+++ b/m4/python.m4
22@@ -96,6 +96,8 @@ AC_DEFUN([AM_PATH_PYTHON],
23 [am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[[:2]])"`])
24 AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
25
26+ AC_SUBST([PYTHON_LIB_PREFIX], ['${libdir}'])
27+
28 dnl At times, e.g., when building shared libraries, you may want
29 dnl to know which OS platform Python thinks this is.
30 dnl
31@@ -251,14 +253,7 @@ except ImportError:
32 else
33 am_py_prefix=$am_cv_python_prefix
34 fi
35- am_cv_python_pythondir=`$PYTHON -c "
36-$am_python_setup_sysconfig
37-if can_use_sysconfig:
38- sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
39-else:
40- from distutils import sysconfig
41- sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
42-sys.stdout.write(sitedir)"`
43+ am_cv_python_pythondir=`echo "$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages"`
44 #
45 case $am_cv_python_pythondir in
46 $am_py_prefix*)
47@@ -268,7 +263,7 @@ sys.stdout.write(sitedir)"`
48 *)
49 case $am_py_prefix in
50 /usr|/System*) ;;
51- *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
52+ *) am_cv_python_pythondir=$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages
53 ;;
54 esac
55 ;;
56@@ -293,14 +288,7 @@ sys.stdout.write(sitedir)"`
57 else
58 am_py_exec_prefix=$am_cv_python_exec_prefix
59 fi
60- am_cv_python_pyexecdir=`$PYTHON -c "
61-$am_python_setup_sysconfig
62-if can_use_sysconfig:
63- sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
64-else:
65- from distutils import sysconfig
66- sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
67-sys.stdout.write(sitedir)"`
68+ am_cv_python_pyexecdir=`echo "$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages"`
69 #
70 case $am_cv_python_pyexecdir in
71 $am_py_exec_prefix*)
72@@ -310,7 +298,7 @@ sys.stdout.write(sitedir)"`
73 *)
74 case $am_py_exec_prefix in
75 /usr|/System*) ;;
76- *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
77+ *) am_cv_python_pyexecdir=$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages
78 ;;
79 esac
80 ;;
81--
822.20.1
83
diff --git a/meta/recipes-devtools/automake/automake/automake-replace-w-option-in-shebangs-with-modern-use-warnings.patch b/meta/recipes-devtools/automake/automake/automake-replace-w-option-in-shebangs-with-modern-use-warnings.patch
deleted file mode 100644
index 0e84c4bf86..0000000000
--- a/meta/recipes-devtools/automake/automake/automake-replace-w-option-in-shebangs-with-modern-use-warnings.patch
+++ /dev/null
@@ -1,60 +0,0 @@
1From 857c843d4bcf576467b505eb05a47f3e7d32caaa Mon Sep 17 00:00:00 2001
2From: Serhii Popovych <spopovyc@cisco.com>
3Date: Wed, 10 Feb 2016 17:07:32 +0000
4Subject: [PATCH] perl: Replace -w option in shebangs with modern "use
5 warnings" In some builds we might provide ac_cv_path_PERL as /usr/bin/env
6 perl to use newer version of the perl from users PATH rather than older from
7 standard system path.
8
9However using /usr/bin/env perl -w from shebang line isn't
10possible because it translates to something like
11/usr/bin/env -w perl and env complains about illegal option.
12
13To address this we can remove -w option from perl shebang
14line and add "use warnings" statement.
15
16Upstream-Status: Pending
17Signed-off-by: Serhii Popovych <spopovyc@cisco.com>
18Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
19
20---
21 bin/aclocal.in | 3 ++-
22 bin/automake.in | 3 ++-
23 2 files changed, 4 insertions(+), 2 deletions(-)
24
25diff --git a/bin/aclocal.in b/bin/aclocal.in
26index 9a20325..bd185d4 100644
27--- a/bin/aclocal.in
28+++ b/bin/aclocal.in
29@@ -1,4 +1,4 @@
30-#!@PERL@ -w
31+#!@PERL@
32 # aclocal - create aclocal.m4 by scanning configure.ac -*- perl -*-
33 # @configure_input@
34 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
35@@ -26,6 +26,7 @@ BEGIN
36 }
37
38 use strict;
39+use warnings;
40
41 use Automake::Config;
42 use Automake::General;
43diff --git a/bin/automake.in b/bin/automake.in
44index 5ed404a..d387b8e 100644
45--- a/bin/automake.in
46+++ b/bin/automake.in
47@@ -1,4 +1,4 @@
48-#!@PERL@ -w
49+#!@PERL@
50 # automake - create Makefile.in from Makefile.am -*- perl -*-
51 # @configure_input@
52 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
53@@ -23,6 +23,7 @@
54 package Automake;
55
56 use strict;
57+use warnings;
58
59 BEGIN
60 {
diff --git a/meta/recipes-devtools/automake/automake/buildtest.patch b/meta/recipes-devtools/automake/automake/buildtest.patch
index b88b9e8693..c43a4ac8f3 100644
--- a/meta/recipes-devtools/automake/automake/buildtest.patch
+++ b/meta/recipes-devtools/automake/automake/buildtest.patch
@@ -36,7 +36,7 @@ index e0db651..de137fa 100644
36-check-TESTS: $(TESTS) 36-check-TESTS: $(TESTS)
37+AM_RECURSIVE_TARGETS += buildtest runtest 37+AM_RECURSIVE_TARGETS += buildtest runtest
38+ 38+
39+buildtest-TESTS: $(TESTS) 39+buildtest-TESTS: $(TESTS) $(check_PROGRAMS)
40+ 40+
41+check-TESTS: buildtest-TESTS 41+check-TESTS: buildtest-TESTS
42+ $(MAKE) $(AM_MAKEFLAGS) runtest-TESTS 42+ $(MAKE) $(AM_MAKEFLAGS) runtest-TESTS
diff --git a/meta/recipes-devtools/automake/automake/python-libdir.patch b/meta/recipes-devtools/automake/automake/python-libdir.patch
deleted file mode 100644
index ee1f725f76..0000000000
--- a/meta/recipes-devtools/automake/automake/python-libdir.patch
+++ /dev/null
@@ -1,88 +0,0 @@
1From a80dacd5124d0713cf2c986b28d736e78dc6b0ca Mon Sep 17 00:00:00 2001
2From: Kumar Gala <galak@kernel.crashing.org>
3Date: Thu, 11 Aug 2011 01:26:33 -0500
4Subject: [PATCH] automake: Update for python.m4 to respect libdir
5
6Upstream-Status: Inappropriate [embedded specific]
7
8Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
9
10Updated for automake-1.12.6
11
12Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
13Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
14
15---
16 m4/python.m4 | 27 +++++++--------------------
17 1 file changed, 7 insertions(+), 20 deletions(-)
18
19diff --git a/m4/python.m4 b/m4/python.m4
20index 63c0a0e..7bbd2d2 100644
21--- a/m4/python.m4
22+++ b/m4/python.m4
23@@ -94,12 +94,13 @@ AC_DEFUN([AM_PATH_PYTHON],
24 [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
25 AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
26
27- dnl Use the values of $prefix and $exec_prefix for the corresponding
28- dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
29+ dnl Use the values of $prefix, $libdir and $exec_prefix for the corresponding
30+ dnl values of PYTHON_PREFIX PYTHON_LIB_PREFIX, and PYTHON_EXEC_PREFIX. These are made
31 dnl distinct variables so they can be overridden if need be. However,
32 dnl general consensus is that you shouldn't need this ability.
33
34 AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
35+ AC_SUBST([PYTHON_LIB_PREFIX], ['${libdir}'])
36 AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
37
38 dnl At times (like when building shared libraries) you may want
39@@ -144,14 +145,7 @@ except ImportError:
40 else
41 am_py_prefix=$prefix
42 fi
43- am_cv_python_pythondir=`$PYTHON -c "
44-$am_python_setup_sysconfig
45-if can_use_sysconfig:
46- sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
47-else:
48- from distutils import sysconfig
49- sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
50-sys.stdout.write(sitedir)"`
51+ am_cv_python_pythondir=`echo "$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages"`
52 case $am_cv_python_pythondir in
53 $am_py_prefix*)
54 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
55@@ -161,7 +155,7 @@ sys.stdout.write(sitedir)"`
56 case $am_py_prefix in
57 /usr|/System*) ;;
58 *)
59- am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
60+ am_cv_python_pythondir=$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages
61 ;;
62 esac
63 ;;
64@@ -186,14 +180,7 @@ sys.stdout.write(sitedir)"`
65 else
66 am_py_exec_prefix=$exec_prefix
67 fi
68- am_cv_python_pyexecdir=`$PYTHON -c "
69-$am_python_setup_sysconfig
70-if can_use_sysconfig:
71- sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
72-else:
73- from distutils import sysconfig
74- sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
75-sys.stdout.write(sitedir)"`
76+ am_cv_python_pyexecdir=`echo "$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages"`
77 case $am_cv_python_pyexecdir in
78 $am_py_exec_prefix*)
79 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
80@@ -203,7 +190,7 @@ sys.stdout.write(sitedir)"`
81 case $am_py_exec_prefix in
82 /usr|/System*) ;;
83 *)
84- am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
85+ am_cv_python_pyexecdir=$PYTHON_LIB_PREFIX/python$PYTHON_VERSION/site-packages
86 ;;
87 esac
88 ;;
diff --git a/meta/recipes-devtools/automake/automake_1.16.2.bb b/meta/recipes-devtools/automake/automake_1.16.2.bb
deleted file mode 100644
index 08ec034626..0000000000
--- a/meta/recipes-devtools/automake/automake_1.16.2.bb
+++ /dev/null
@@ -1,43 +0,0 @@
1require automake.inc
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
4DEPENDS_class-native = "autoconf-native"
5
6NAMEVER = "${@oe.utils.trim_version("${PV}", 2)}"
7
8RDEPENDS_${PN} += "\
9 autoconf \
10 perl \
11 perl-module-bytes \
12 perl-module-data-dumper \
13 perl-module-strict \
14 perl-module-text-parsewords \
15 perl-module-thread-queue \
16 perl-module-threads \
17 perl-module-vars "
18
19RDEPENDS_${PN}_class-native = "autoconf-native hostperl-runtime-native"
20
21SRC_URI += "file://python-libdir.patch \
22 file://buildtest.patch \
23 file://performance.patch \
24 file://new_rt_path_for_test-driver.patch \
25 file://automake-replace-w-option-in-shebangs-with-modern-use-warnings.patch \
26 file://0001-automake-Add-default-libtool_tag-to-cppasm.patch \
27 file://0001-build-fix-race-in-parallel-builds.patch \
28 "
29
30SRC_URI[md5sum] = "f1a14f2ab2b0fb861a011e1d94e589e0"
31SRC_URI[sha256sum] = "b2f361094b410b4acbf4efba7337bdb786335ca09eb2518635a09fb7319ca5c1"
32
33PERL = "${USRBINPATH}/perl"
34PERL_class-native = "${USRBINPATH}/env perl"
35PERL_class-nativesdk = "${USRBINPATH}/env perl"
36
37CACHED_CONFIGUREVARS += "ac_cv_path_PERL='${PERL}'"
38
39do_install_append () {
40 install -d ${D}${datadir}
41}
42
43BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-devtools/automake/automake_1.16.5.bb b/meta/recipes-devtools/automake/automake_1.16.5.bb
new file mode 100644
index 0000000000..469fcd69f7
--- /dev/null
+++ b/meta/recipes-devtools/automake/automake_1.16.5.bb
@@ -0,0 +1,43 @@
1require automake.inc
2LICENSE = "GPL-2.0-only"
3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
4DEPENDS:class-native = "autoconf-native"
5
6NAMEVER = "${@oe.utils.trim_version("${PV}", 2)}"
7
8RDEPENDS:${PN} += "\
9 autoconf \
10 perl \
11 perl-module-bytes \
12 perl-module-data-dumper \
13 perl-module-strict \
14 perl-module-text-parsewords \
15 perl-module-thread-queue \
16 perl-module-threads \
17 perl-module-vars "
18
19RDEPENDS:${PN}:class-native = "autoconf-native hostperl-runtime-native"
20
21SRC_URI += "\
22 file://0001-automake-Update-for-python.m4-to-respect-libdir.patch \
23 file://buildtest.patch \
24 file://performance.patch \
25 file://new_rt_path_for_test-driver.patch \
26 file://0001-automake-Add-default-libtool_tag-to-cppasm.patch \
27 file://0001-build-fix-race-in-parallel-builds.patch \
28 file://0001-Drop-ar-u-argument.patch \
29 "
30
31SRC_URI[sha256sum] = "07bd24ad08a64bc17250ce09ec56e921d6343903943e99ccf63bbf0705e34605"
32
33PERL = "${USRBINPATH}/perl"
34PERL:class-native = "${USRBINPATH}/env perl"
35PERL:class-nativesdk = "${USRBINPATH}/env perl"
36
37CACHED_CONFIGUREVARS += "ac_cv_path_PERL='${PERL}'"
38
39do_install:append () {
40 install -d ${D}${datadir}
41}
42
43BBCLASSEXTEND = "native nativesdk"