tools/automake: update to 1.18

Update to the latest stable release
with the new API versions for binaries.

The temporary patching of shebangs is no longer necessary
since the whitespace check has been changed to a warning.

Part of a patch was upstreamed and therefore removed.

Manually adjusted patch:
 - 000-relocatable.patch
 - 101-do-not-require-files.patch

All other patches are automatically refreshed.

Link: https://lists.gnu.org/archive/html/autotools-announce/2025-05/msg00001.html
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Michael Pratt 2025-06-01 19:08:12 -04:00 committed by Robert Marko
parent da541f7acd
commit d7d0205940
6 changed files with 17 additions and 38 deletions

View File

@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=automake PKG_NAME:=automake
PKG_CPE_ID:=cpe:/a:gnu:automake PKG_CPE_ID:=cpe:/a:gnu:automake
PKG_VERSION:=1.17 PKG_VERSION:=1.18
PKG_API_VERSION:=$(word 2,$(subst ., ,$(PKG_VERSION))) PKG_API_VERSION:=$(word 2,$(subst ., ,$(PKG_VERSION)))
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/automake PKG_SOURCE_URL:=@GNU/automake
PKG_HASH:=397767d4db3018dd4440825b60c64258b636eaf6bf99ac8b0897f06c89310acd PKG_HASH:=af6043a5d4b3beef0c48161f4a6936259321cd101a34c1ab0768328515626c8a
include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/host-build.mk
@ -21,7 +21,7 @@ HOST_CONFIGURE_ARGS += \
--disable-silent-rules --disable-silent-rules
HOST_CONFIGURE_VARS += \ HOST_CONFIGURE_VARS += \
# temporary patch alternative for PERL="/usr/bin/env perl" PERL="/usr/bin/env perl"
define Host/Configure define Host/Configure
(cd $(HOST_BUILD_DIR); $(AM_TOOL_PATHS) STAGING_DIR_HOST="" ./bootstrap) (cd $(HOST_BUILD_DIR); $(AM_TOOL_PATHS) STAGING_DIR_HOST="" ./bootstrap)

View File

@ -1,6 +1,6 @@
--- a/lib/Automake/Config.in --- a/lib/Automake/Config.in
+++ b/lib/Automake/Config.in +++ b/lib/Automake/Config.in
@@ -34,7 +34,7 @@ our $PACKAGE = '@PACKAGE@'; @@ -32,7 +32,7 @@ our $PACKAGE = '@PACKAGE@';
our $PACKAGE_BUGREPORT = '@PACKAGE_BUGREPORT@'; our $PACKAGE_BUGREPORT = '@PACKAGE_BUGREPORT@';
our $VERSION = '@VERSION@'; our $VERSION = '@VERSION@';
our $RELEASE_YEAR = '@RELEASE_YEAR@'; our $RELEASE_YEAR = '@RELEASE_YEAR@';
@ -11,15 +11,9 @@
# We need at least this version for CLONE support. # We need at least this version for CLONE support.
--- a/bin/aclocal.in --- a/bin/aclocal.in
+++ b/bin/aclocal.in +++ b/bin/aclocal.in
@@ -1,4 +1,4 @@ @@ -21,9 +21,11 @@
-#!@PERL@
+#!/usr/bin/env perl use 5.006; use strict; use warnings;
# aclocal - create aclocal.m4 by scanning configure.ac -*- perl -*-
# @configure_input@
# Copyright (C) 1996-2024 Free Software Foundation, Inc.
@@ -23,9 +23,11 @@ use 5.006;
use strict;
use warnings FATAL => 'all';
+$^W = 1; +$^W = 1;
+ +
@ -30,7 +24,7 @@
unless $ENV{AUTOMAKE_UNINSTALLED}; unless $ENV{AUTOMAKE_UNINSTALLED};
} }
@@ -65,8 +67,8 @@ $perl_threads = 0; @@ -63,8 +65,8 @@ $perl_threads = 0;
# --aclocal-path option/ACLOCAL_PATH environment variable, and reset # --aclocal-path option/ACLOCAL_PATH environment variable, and reset
# with the '--system-acdir' option. # with the '--system-acdir' option.
my @user_includes = (); my @user_includes = ();
@ -43,15 +37,9 @@
# Whether we should copy M4 file in $user_includes[0]. # Whether we should copy M4 file in $user_includes[0].
--- a/bin/automake.in --- a/bin/automake.in
+++ b/bin/automake.in +++ b/bin/automake.in
@@ -1,4 +1,4 @@ @@ -24,9 +24,11 @@ package Automake;
-#!@PERL@
+#!/usr/bin/env perl use 5.006; use strict; use warnings;
# automake - create Makefile.in from Makefile.am -*- perl -*-
# @configure_input@
# Copyright (C) 1994-2024 Free Software Foundation, Inc.
@@ -26,9 +26,11 @@ use 5.006;
use strict;
use warnings FATAL => 'all';
+$^W = 1; +$^W = 1;
+ +

View File

@ -1,6 +1,6 @@
--- a/bin/aclocal.in --- a/bin/aclocal.in
+++ b/bin/aclocal.in +++ b/bin/aclocal.in
@@ -372,6 +372,12 @@ sub scan_m4_dirs ($$@) @@ -370,6 +370,12 @@ sub scan_m4_dirs ($$@)
foreach my $m4dir (@dirlist) foreach my $m4dir (@dirlist)
{ {

View File

@ -1,15 +1,6 @@
--- a/bin/automake.in --- a/bin/automake.in
+++ b/bin/automake.in +++ b/bin/automake.in
@@ -4552,7 +4552,7 @@ sub handle_gettext () @@ -5700,7 +5700,7 @@ sub check_gnu_standards ()
&& grep ($_ eq 'intl', @subdirs));
}
- require_file ($ac_gettext_location, GNU, 'ABOUT-NLS');
+ require_file ($ac_gettext_location, GNITS, 'ABOUT-NLS');
}
# Emit makefile footer.
@@ -5677,7 +5677,7 @@ sub check_gnu_standards ()
# otherwise require non-.md. # otherwise require non-.md.
my $required my $required
= (! -f $file && -f "$file.md") ? "$file.md" : $file; = (! -f $file && -f "$file.md") ? "$file.md" : $file;
@ -18,7 +9,7 @@
} }
# Accept one of these three licenses; default to COPYING. # Accept one of these three licenses; default to COPYING.
@@ -5691,7 +5691,7 @@ sub check_gnu_standards () @@ -5714,7 +5714,7 @@ sub check_gnu_standards ()
last; last;
} }
} }

View File

@ -1,6 +1,6 @@
--- a/lib/Automake/Variable.pm --- a/lib/Automake/Variable.pm
+++ b/lib/Automake/Variable.pm +++ b/lib/Automake/Variable.pm
@@ -1259,8 +1259,15 @@ sub output_variables () @@ -1258,8 +1258,15 @@ sub output_variables ()
foreach my $var (@vars) foreach my $var (@vars)
{ {
my $v = rvar $var; my $v = rvar $var;
@ -16,7 +16,7 @@
$res .= $v->output ($cond) $res .= $v->output ($cond)
if $v->rdef ($cond)->owner == VAR_AUTOMAKE; if $v->rdef ($cond)->owner == VAR_AUTOMAKE;
} }
@@ -1270,8 +1277,15 @@ sub output_variables () @@ -1269,8 +1276,15 @@ sub output_variables ()
foreach my $var (@vars) foreach my $var (@vars)
{ {
my $v = rvar $var; my $v = rvar $var;

View File

@ -1,6 +1,6 @@
--- a/bin/automake.in --- a/bin/automake.in
+++ b/bin/automake.in +++ b/bin/automake.in
@@ -4745,12 +4745,42 @@ sub handle_clean @@ -4760,12 +4760,42 @@ sub handle_clean
if var ('CLEANFILES'); if var ('CLEANFILES');
$clean_files{'$(DISTCLEANFILES)'} = DIST_CLEAN $clean_files{'$(DISTCLEANFILES)'} = DIST_CLEAN
if var ('DISTCLEANFILES'); if var ('DISTCLEANFILES');