Skip to content

Commit d7d0205

Browse files
mcpratrobimarko
authored andcommitted
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 <[email protected]> Link: openwrt/openwrt#16522 Signed-off-by: Robert Marko <[email protected]>
1 parent da541f7 commit d7d0205

File tree

6 files changed

+17
-38
lines changed

6 files changed

+17
-38
lines changed

tools/automake/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ include $(TOPDIR)/rules.mk
88

99
PKG_NAME:=automake
1010
PKG_CPE_ID:=cpe:/a:gnu:automake
11-
PKG_VERSION:=1.17
11+
PKG_VERSION:=1.18
1212
PKG_API_VERSION:=$(word 2,$(subst ., ,$(PKG_VERSION)))
1313

1414
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1515
PKG_SOURCE_URL:=@GNU/automake
16-
PKG_HASH:=397767d4db3018dd4440825b60c64258b636eaf6bf99ac8b0897f06c89310acd
16+
PKG_HASH:=af6043a5d4b3beef0c48161f4a6936259321cd101a34c1ab0768328515626c8a
1717

1818
include $(INCLUDE_DIR)/host-build.mk
1919

2020
HOST_CONFIGURE_ARGS += \
2121
--disable-silent-rules
2222

2323
HOST_CONFIGURE_VARS += \
24-
# temporary patch alternative for PERL="/usr/bin/env perl"
24+
PERL="/usr/bin/env perl"
2525

2626
define Host/Configure
2727
(cd $(HOST_BUILD_DIR); $(AM_TOOL_PATHS) STAGING_DIR_HOST="" ./bootstrap)

tools/automake/patches/000-relocatable.patch

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/lib/Automake/Config.in
22
+++ b/lib/Automake/Config.in
3-
@@ -34,7 +34,7 @@ our $PACKAGE = '@PACKAGE@';
3+
@@ -32,7 +32,7 @@ our $PACKAGE = '@PACKAGE@';
44
our $PACKAGE_BUGREPORT = '@PACKAGE_BUGREPORT@';
55
our $VERSION = '@VERSION@';
66
our $RELEASE_YEAR = '@RELEASE_YEAR@';
@@ -11,15 +11,9 @@
1111
# We need at least this version for CLONE support.
1212
--- a/bin/aclocal.in
1313
+++ b/bin/aclocal.in
14-
@@ -1,4 +1,4 @@
15-
-#!@PERL@
16-
+#!/usr/bin/env perl
17-
# aclocal - create aclocal.m4 by scanning configure.ac -*- perl -*-
18-
# @configure_input@
19-
# Copyright (C) 1996-2024 Free Software Foundation, Inc.
20-
@@ -23,9 +23,11 @@ use 5.006;
21-
use strict;
22-
use warnings FATAL => 'all';
14+
@@ -21,9 +21,11 @@
15+
16+
use 5.006; use strict; use warnings;
2317

2418
+$^W = 1;
2519
+
@@ -30,7 +24,7 @@
3024
unless $ENV{AUTOMAKE_UNINSTALLED};
3125
}
3226

33-
@@ -65,8 +67,8 @@ $perl_threads = 0;
27+
@@ -63,8 +65,8 @@ $perl_threads = 0;
3428
# --aclocal-path option/ACLOCAL_PATH environment variable, and reset
3529
# with the '--system-acdir' option.
3630
my @user_includes = ();
@@ -43,15 +37,9 @@
4337
# Whether we should copy M4 file in $user_includes[0].
4438
--- a/bin/automake.in
4539
+++ b/bin/automake.in
46-
@@ -1,4 +1,4 @@
47-
-#!@PERL@
48-
+#!/usr/bin/env perl
49-
# automake - create Makefile.in from Makefile.am -*- perl -*-
50-
# @configure_input@
51-
# Copyright (C) 1994-2024 Free Software Foundation, Inc.
52-
@@ -26,9 +26,11 @@ use 5.006;
53-
use strict;
54-
use warnings FATAL => 'all';
40+
@@ -24,9 +24,11 @@ package Automake;
41+
42+
use 5.006; use strict; use warnings;
5543

5644
+$^W = 1;
5745
+

tools/automake/patches/100-aclocal-skip-not-existing-directories.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/bin/aclocal.in
22
+++ b/bin/aclocal.in
3-
@@ -372,6 +372,12 @@ sub scan_m4_dirs ($$@)
3+
@@ -370,6 +370,12 @@ sub scan_m4_dirs ($$@)
44

55
foreach my $m4dir (@dirlist)
66
{

tools/automake/patches/101-do-not-require-files.patch

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
--- a/bin/automake.in
22
+++ b/bin/automake.in
3-
@@ -4552,7 +4552,7 @@ sub handle_gettext ()
4-
&& grep ($_ eq 'intl', @subdirs));
5-
}
6-
7-
- require_file ($ac_gettext_location, GNU, 'ABOUT-NLS');
8-
+ require_file ($ac_gettext_location, GNITS, 'ABOUT-NLS');
9-
}
10-
11-
# Emit makefile footer.
12-
@@ -5677,7 +5677,7 @@ sub check_gnu_standards ()
3+
@@ -5700,7 +5700,7 @@ sub check_gnu_standards ()
134
# otherwise require non-.md.
145
my $required
156
= (! -f $file && -f "$file.md") ? "$file.md" : $file;
@@ -18,7 +9,7 @@
189
}
1910

2011
# Accept one of these three licenses; default to COPYING.
21-
@@ -5691,7 +5691,7 @@ sub check_gnu_standards ()
12+
@@ -5714,7 +5714,7 @@ sub check_gnu_standards ()
2213
last;
2314
}
2415
}

tools/automake/patches/300-output-TRUE-cond-first.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/lib/Automake/Variable.pm
22
+++ b/lib/Automake/Variable.pm
3-
@@ -1259,8 +1259,15 @@ sub output_variables ()
3+
@@ -1258,8 +1258,15 @@ sub output_variables ()
44
foreach my $var (@vars)
55
{
66
my $v = rvar $var;
@@ -16,7 +16,7 @@
1616
$res .= $v->output ($cond)
1717
if $v->rdef ($cond)->owner == VAR_AUTOMAKE;
1818
}
19-
@@ -1270,8 +1277,15 @@ sub output_variables ()
19+
@@ -1269,8 +1276,15 @@ sub output_variables ()
2020
foreach my $var (@vars)
2121
{
2222
my $v = rvar $var;

tools/automake/patches/310-maintainer-clean-built_sources.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/bin/automake.in
22
+++ b/bin/automake.in
3-
@@ -4745,12 +4745,42 @@ sub handle_clean
3+
@@ -4760,12 +4760,42 @@ sub handle_clean
44
if var ('CLEANFILES');
55
$clean_files{'$(DISTCLEANFILES)'} = DIST_CLEAN
66
if var ('DISTCLEANFILES');

0 commit comments

Comments
 (0)