aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichael Pratt <mcpratt@pm.me>2023-03-29 17:00:18 -0400
committerChristian Marangi <ansuelsmth@gmail.com>2023-05-04 06:07:28 +0200
commit89a8269c109b56364bc5c7a63afb8e2888ba9143 (patch)
treeb0013710c1b527edbe1ad2702f43ca5642aad3dd /tools
parentd39c6cd29b212a6ad5d864893c7687f976600dd4 (diff)
downloadupstream-89a8269c109b56364bc5c7a63afb8e2888ba9143.tar.gz
upstream-89a8269c109b56364bc5c7a63afb8e2888ba9143.tar.bz2
upstream-89a8269c109b56364bc5c7a63afb8e2888ba9143.zip
tools/automake: move file requirements to higher strictness
GNU standards requires certain files at the top-level directory of a package that automake is used with, mostly documentation. If one of these files happens to be missing, autoreconf would fail. Move these file requirements to the more strict 'GNITS' setting. Link: https://www.gnu.org/software/automake/manual/html_node/Strictness.html Signed-off-by: Michael Pratt <mcpratt@pm.me>
Diffstat (limited to 'tools')
-rw-r--r--tools/automake/patches/101-do-not-require-files.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/automake/patches/101-do-not-require-files.patch b/tools/automake/patches/101-do-not-require-files.patch
new file mode 100644
index 0000000000..3a8c9fcb47
--- /dev/null
+++ b/tools/automake/patches/101-do-not-require-files.patch
@@ -0,0 +1,29 @@
+--- a/bin/automake.in
++++ b/bin/automake.in
+@@ -4513,7 +4513,7 @@ sub handle_gettext ()
+ && grep ($_ eq 'intl', @subdirs));
+ }
+
+- require_file ($ac_gettext_location, GNU, 'ABOUT-NLS');
++ require_file ($ac_gettext_location, GNITS, 'ABOUT-NLS');
+ }
+
+ # Emit makefile footer.
+@@ -5641,7 +5641,7 @@ sub check_gnu_standards ()
+ # otherwise require non-.md.
+ my $required
+ = (! -f $file && -f "$file.md") ? "$file.md" : $file;
+- require_file ("$am_file.am", GNU, $required);
++ require_file ("$am_file.am", GNITS, $required);
+ }
+
+ # Accept one of these three licenses; default to COPYING.
+@@ -5655,7 +5655,7 @@ sub check_gnu_standards ()
+ last;
+ }
+ }
+- require_file ("$am_file.am", GNU, 'COPYING')
++ require_file ("$am_file.am", GNITS, 'COPYING')
+ unless $license;
+ }
+