Re: dash 0.5.13 configure config.status truncated running under dash 0.5.13

Brian Inglis <[email protected]> Fri, 3 Oct 2025 21:19:39 -0600
Newsgroups org.kernel.vger.dash
Organization Systematic Software
Message-ID <[email protected]>
On 2025-10-03 01:29, Herbert Xu wrote:
> On Thu, Oct 02, 2025 at 03:56:47PM -0600, Brian Inglis wrote:
>>
>> As config files are not distributed in the repo, it appears to be caused by
>> autoreconfig 2.72 as I cannot even build 0.5.12 without your packaged config
>> scripts, so I have already raised an autoconf issue!
> 
> Hang on, but you previously said that dash 0.5.12 was able to build
> dash 0.5.13, is this not the case?
> 
> I have tried building dash 0.5.13 with 2.72 and it works fine.
> So I suspect there is something specific to Cygwin that is causing
> this failure.

Likely the autoreconfig with recently updated automake 1.18 using existing
/usr/share/autoconf/autoconf/status.m4 stanza:

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
[/@[a-zA-Z_][a-zA-Z_0-9]*@/!b]
dnl configure_input is a somewhat special, so we don't call AC_SUBST_TRACE.
dnl Note if you change the s||| delimiter here, don't forget to adjust
dnl ac_sed_conf_input accordingly.  Using & is a bad idea if & appears in
dnl the replacement string.
s|@configure_input@|$ac_sed_conf_input|;t t
dnl During the transition period, this is a special case:
s&@top_builddir@&$ac_top_builddir_sub&;t t[]AC_SUBST_TRACE([top_builddir])
dnl For this substitution see the witness macro _AC_HAVE_TOP_BUILD_PREFIX above.
s&@top_build_prefix@&$ac_top_build_prefix&;t t[]AC_SUBST_TRACE([top_build_prefix])
m4_map_args_sep([$0_ADJUST_DIR(], [)], [
], [srcdir], [abs_srcdir], [top_srcdir], [abs_top_srcdir],
    [builddir], [abs_builddir],
    [abs_top_builddir]AC_PROVIDE_IFELSE([AC_PROG_INSTALL],
      [, [INSTALL]])AC_PROVIDE_IFELSE([AC_PROG_MKDIR_P], [, [MKDIR_P]]))
m4_ifndef([AC_DATAROOTDIR_CHECKED], [$ac_datarootdir_hack
])dnl
"

to generate config.status ending with an unterminated string where that _ACEOF 
line appears.

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry