bug#47000: git libtool compiler flag handling busted on HP-UX

Nick Bowler <[email protected]>
Newsgroups gmane.comp.gnu.libtool.bugs
Message-ID <CADyTPEzTJJ_LwQC-juVkVu=DP7wJfFC7NZ-FYh6q4MWKVii9nw@mail.gmail.com>
Hi Pavel,

On 2021-10-24, Pavel Raiskup <[email protected]> wrote:
> On Monday, March 8, 2021 5:13:23 AM CEST Nick Bowler wrote:
>> On HP-UX 11.11, with libtool 2.4.6,
[...]
>> On investigation, it appears this problem occurs because the func_quote
>> function in libtool attempts to split on backslashes by setting IFS='\'
>> but this procedure appears ineffective on the HP-UX shell.  For example:
>>
>> % IFS='\'
>> % hello='foo\bar\baz'
>> % printf '%s\n' "$hello" $hello
>> foo\bar\baz
>> foo\bar\baz
>
> Thank you for the report!  And sorry for the delay.
>
> Would you mind testing 'make check' from this PR on the affected system?
>
>     https://github.com/gnulib-modules/bootstrap/pull/25

As the Makefile uses the GNU-specific $(shell ...) construction,
"make check" does not work out of the box on HP-UX.  I worked around
the problem by running

  % make abs_aux_dir=$PWD/build-aux abs_srcdir=$PWD/tests check

> I hope I fixed there the problem with IFS='\' (even though it is just a poor
> fallback to the slower SED variant, anyone is welcome to provide better
> solution).
>
> Perhaps there are other problems so it would be nice to see the testsuite
> results.

The output (attached, gzipped) is not entirely obvious to me but I
assume this means everything passed?  As a point of comparison, without
your changes there are many errors reported.

For the record, the empty field bug described in the change log (which
is observed with heirloom-sh and presumably also Solaris 10 /bin/sh)
regarding empty fields does not appear to be a problem on HP-UX 11:

  % var='a::b'; IFS=':'; set dummy $var
  % printf '%s\n' "$#" "$2" "$3" "$4"
  4
  a

  b

Thanks,
  Nick

_______________________________________________
Bug-libtool mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-libtool
test.log.gz (application/x-gzip, 902 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.