lrzsz: fix random build failures by really disabling autofoo
authorPetr Štetiar <ynezz@true.cz>
Thu, 12 Dec 2024 20:19:04 +0000 (20:19 +0000)
committerTianling Shen <cnsztl@gmail.com>
Wed, 18 Dec 2024 15:20:56 +0000 (23:20 +0800)
commit49ebe6a057e404083cffcc6a4808287ed434cdcf
tree4ac4837ff1ea68f84d8e5cc04c432d3f222dd882
parent8bf3f985dc6964fc8d153cde7cb38ef68494a03c
lrzsz: fix random build failures by really disabling autofoo

Currently we're seeing random build failures, caused by autofoo being
called on very ancient bundled autofoo:

  cd . && aclocal
  aclocal.real: warning: autoconf input should be named 'configure.ac', not 'configure.in'
  acinclude.m4:2: warning: underquoted definition of AC_REPLACE_GNU_GETOPT
  acinclude.m4:2:   run info Automake 'Extending aclocal'
  acinclude.m4:2:   or see https://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
  configure.in:106: error: automatic de-ANSI-fication support has been removed

For some reason that `touch` based neutralization introduced in commit
6d6c4b21b5e2 ("lrzsz: update to v0.12.21rc and fix a CVE") doesn't
always work.

So lets fix it by removing the autofoo bits from the bundled Makefile.in
and while at it remove processing of man and testsuite subdirs to save
some computing cycles.

Fixes: #25543
Fixes: 6d6c4b21b5e2 ("lrzsz: update to v0.12.21rc and fix a CVE")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 3e612586041d40ebfafadb65eaa6fc34b2061ee8)
utils/lrzsz/Makefile
utils/lrzsz/patches/300-neutralize-autofoo.patch [new file with mode: 0644]