From unknown Thu Aug 14 18:36:30 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#47000 <47000@debbugs.gnu.org> To: bug#47000 <47000@debbugs.gnu.org> Subject: Status: git libtool compiler flag handling busted on HP-UX Reply-To: bug#47000 <47000@debbugs.gnu.org> Date: Fri, 15 Aug 2025 01:36:30 +0000 retitle 47000 git libtool compiler flag handling busted on HP-UX reassign 47000 libtool submitter 47000 Nick Bowler severity 47000 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 07 23:15:23 2021 Received: (at submit) by debbugs.gnu.org; 8 Mar 2021 04:15:23 +0000 Received: from localhost ([127.0.0.1]:41866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJ7Ig-0002Kz-SP for submit@debbugs.gnu.org; Sun, 07 Mar 2021 23:15:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:38280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJ7Ie-0002Kr-AO for submit@debbugs.gnu.org; Sun, 07 Mar 2021 23:15:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJ7Id-0005Sc-5G for bug-libtool@gnu.org; Sun, 07 Mar 2021 23:15:19 -0500 Received: from mail-yb1-xb2d.google.com ([2607:f8b0:4864:20::b2d]:41333) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJ7IX-00089A-CR for bug-libtool@gnu.org; Sun, 07 Mar 2021 23:15:18 -0500 Received: by mail-yb1-xb2d.google.com with SMTP id m9so8787585ybk.8 for ; Sun, 07 Mar 2021 20:15:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=draconx-ca.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=mIo4v+06sJdYh1ESi9UnQ4OPRNo666Q48aUgzQnVW3M=; b=OJqGxHFZvNREGNekjndpwCKIDOpxhb2ZYazu2DAjdk7IzXrfhPZIxVwRQZKEtPZgXs jISB/Sv73fMYkK2B7amLPh6N8AKYt95FLbAyYuJRuPsJqnMv4qSc1ib+poZuRy8UkGsu 1ru/yw5MSoYbM9chVaakFYhqWB9KS1fLXVMGENbZArUNxmkTHUYIuYU0ru4cFeIOMYM5 qFHm+YInMOd1HuZcGJ/MCsWV8BOHnsg+IyzWbUp3fUwCvS19bvmmMcnQrFI26elDMnpl pVPjKjUdue0IJiG900sl/x/6Qqo0s2MRD1wiOokhdCM7MzikGKhc0Pjq7trlxC34CDIi BOKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=mIo4v+06sJdYh1ESi9UnQ4OPRNo666Q48aUgzQnVW3M=; b=JSLX7fl6ClFKyVyVBNBAYTvusEfxqAon+AQGF5v0FUZaej5TXlZqbVUCjAw9geKJ8Z UCTEONiEBky280LGVb42CwjUniuJG9H/i2uDvfvDES1j4L1MyqNInnMzxdrGydfHMYTz /+jm0eS/b13DzAM+uE89H8EdAzOkQGSUab4sZ7rfM0pIIQqX7M7ALY5E0P9NrcGxPRSI 6e884BNQLfgTUFTFffKh53pyPhuMFWfxUYBELDPaF5hIsMv9Fme7KHYA2ikQ1Ul/tfPG +FouarVVs20Z1ATbHRlSw6pYtG/II+Z0mn4gEdiRYEFxEZ0V1VC4aZ8zBgsY2/nFnimJ IkYA== X-Gm-Message-State: AOAM532k92dWG4/7ZZOEtzxHFw2sHOv82xFc8UfwxXnf8V28ese7diZI Df8PxCtEk/c60clB5/ie7riW3ZshMz4pToMDlvQOD8DbrEtjaeW4 X-Google-Smtp-Source: ABdhPJz4bRpsBuHfUajekkfiOgd+c+dtBEZZ4vAVqWj3RZPs1nJBpPvNlImU9BfV3w/ftvty6PMElq9A2tou0GXED/g= X-Received: by 2002:a25:c603:: with SMTP id k3mr31521842ybf.196.1615176911292; Sun, 07 Mar 2021 20:15:11 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a5b:8ca:0:0:0:0:0 with HTTP; Sun, 7 Mar 2021 20:15:10 -0800 (PST) X-Originating-IP: [24.53.240.163] From: Nick Bowler Date: Sun, 7 Mar 2021 23:15:10 -0500 Message-ID: Subject: git libtool compiler flag handling busted on HP-UX To: bug-libtool@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: none client-ip=2607:f8b0:4864:20::b2d; envelope-from=nbowler@draconx.ca; helo=mail-yb1-xb2d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: Pavel Raiskup X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [resending to correct address] Hi, I've been doing some portability testing recently and I've noticed what appears to be an issue in the current libtool development sources... On HP-UX 11.11, with libtool 2.4.6, things seem to work OK: % cat >test.c <<'EOF' #include int main(void) { printf("%s\n", TESTMACRO); return 0; } EOF % libtool --version libtool (GNU libtool) 2.4.6 [...] % libtool --tag=CC --mode=compile cc -c -DTESTMACRO=\"test\" test.c libtool: compile: cc -c -DTESTMACRO=\"test\" test.c +Z -DPIC -o .libs/test.o libtool: compile: cc -c -DTESTMACRO=\"test\" test.c -o test.o >/dev/null 2>&1 However, with git master, the -DTESTMACRO=\"test\" option seems to get messed up: % libtool --version libtool (GNU libtool) 2.4.6.44-b9b4 [...] % libtool --tag=CC --mode=compile cc -c -DTESTMACRO=\"test\" test.c libtool: compile: cc -c "" test.c +Z -DPIC -o .libs/test.o cc: "test.c", line 3: error 1588: "TESTMACRO" undefined. Most options seem to work OK, but as soon as the double quotes appear in the macro definition then I see this problem. I have tested and found that the first commit to exhibit this behaviour is: 32f0df9835ac ("libtool: mitigate the $set_quote_subst slowdown") 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 This behaviour causes the state machine to just throw away all the input on the very first transition out of the start state, so I think these shell loops will simply never work in this environment. Looking into this further, the HP-UX shell derives from ksh88 and this does not appear to be the only ksh88 derivative with this problem. For example, I tested libtool using heirloom-sh on a GNU/Linux system and I observe identical behaviour. So I think it's fair to say that setting IFS='\' is not portable. As an aside, Gentoo has backported this patch into their libtool-2.4.6 package, which means that if you prepare a release bundle on Gentoo you will get this failure in your own packages, even though upstream libtool-2.4.6 would work just fine. Oops... Cheers, Nick From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 24 18:27:19 2021 Received: (at submit) by debbugs.gnu.org; 24 Oct 2021 22:27:19 +0000 Received: from localhost ([127.0.0.1]:41231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1melxX-0000jg-3F for submit@debbugs.gnu.org; Sun, 24 Oct 2021 18:27:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:48178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1melxV-0000jZ-5d for submit@debbugs.gnu.org; Sun, 24 Oct 2021 18:27:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1melxU-0008B8-Um for bug-libtool@gnu.org; Sun, 24 Oct 2021 18:27:16 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:51172) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1melxR-0008Pr-PM for bug-libtool@gnu.org; Sun, 24 Oct 2021 18:27:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635114431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Pwbtmu1ZDCXBWE369aW9lIZbjyJKrIqzkcwBLHPLo84=; b=JZRN9TslUyJvgXNVPqeE6rrnPKUee3ibNuCNQJ0LQnIwBjK5yb+8PtW2bPQcBsVpr5uvKE 3U0wS4cz/H2T3AWXSTAJUPiSlyohXdjosEnADPToyjUMoGpyHqLIBer5EeW5a4UT8uotl4 k07LJ/Mgg4e+si5DkF3p8GkZUW+Gg9Y= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-231-6IbEjiO0NueTfbZljqj5Jg-1; Sun, 24 Oct 2021 18:27:08 -0400 X-MC-Unique: 6IbEjiO0NueTfbZljqj5Jg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 19E548026AD; Sun, 24 Oct 2021 22:27:07 +0000 (UTC) Received: from raiskup.localnet (unknown [10.40.208.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id 63122100763D; Sun, 24 Oct 2021 22:27:06 +0000 (UTC) From: Pavel Raiskup To: bug-libtool@gnu.org, Nick Bowler Subject: Re: git libtool compiler flag handling busted on HP-UX Date: Mon, 25 Oct 2021 00:27:05 +0200 Message-ID: <6554239.MhkbZ0Pkbq@raiskup> Organization: Red Hat, Inc. In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=praiskup@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: pass client-ip=216.205.24.124; envelope-from=praiskup@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi Nick, On Monday, March 8, 2021 5:13:23 AM CEST Nick Bowler wrote: > I've been doing some portability testing recently and I've noticed what > appears to be an issue in the current libtool development sources... > > On HP-UX 11.11, with libtool 2.4.6, things seem to work OK: > > % cat >test.c <<'EOF' > #include > int main(void) > { > printf("%s\n", TESTMACRO); > return 0; > } > EOF > % libtool --version > libtool (GNU libtool) 2.4.6 > [...] > % libtool --tag=CC --mode=compile cc -c -DTESTMACRO=\"test\" test.c > libtool: compile: cc -c -DTESTMACRO=\"test\" test.c +Z -DPIC -o .libs/test.o > libtool: compile: cc -c -DTESTMACRO=\"test\" test.c -o test.o >/dev/null 2>&1 > > However, with git master, the -DTESTMACRO=\"test\" option seems to get > messed up: > > % libtool --version > libtool (GNU libtool) 2.4.6.44-b9b4 > [...] > % libtool --tag=CC --mode=compile cc -c -DTESTMACRO=\"test\" test.c > libtool: compile: cc -c "" test.c +Z -DPIC -o .libs/test.o > cc: "test.c", line 3: error 1588: "TESTMACRO" undefined. > > Most options seem to work OK, but as soon as the double quotes appear > in the macro definition then I see this problem. > > I have tested and found that the first commit to exhibit this behaviour is: > > 32f0df9835ac ("libtool: mitigate the $set_quote_subst slowdown") > > 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 Libtool would inherit that change, once merged. 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. Pavel > This behaviour causes the state machine to just throw away all the > input on the very first transition out of the start state, so I think > these shell loops will simply never work in this environment. > > Looking into this further, the HP-UX shell derives from ksh88 and this > does not appear to be the only ksh88 derivative with this problem. For > example, I tested libtool using heirloom-sh on a GNU/Linux system and I > observe identical behaviour. So I think it's fair to say that setting > IFS='\' is not portable. > > As an aside, Gentoo has backported this patch into their libtool-2.4.6 > package, which means that if you prepare a release bundle on Gentoo you > will get this failure in your own packages, even though upstream > libtool-2.4.6 would work just fine. Oops... > > Cheers, > Nick > > From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 25 16:45:16 2021 Received: (at 47000) by debbugs.gnu.org; 25 Oct 2021 20:45:16 +0000 Received: from localhost ([127.0.0.1]:44467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mf6qK-0002Nv-33 for submit@debbugs.gnu.org; Mon, 25 Oct 2021 16:45:16 -0400 Received: from mail-wm1-f41.google.com ([209.85.128.41]:40714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mf6qG-0002Nb-EA for 47000@debbugs.gnu.org; Mon, 25 Oct 2021 16:45:14 -0400 Received: by mail-wm1-f41.google.com with SMTP id g201-20020a1c20d2000000b00327775075f7so526971wmg.5 for <47000@debbugs.gnu.org>; Mon, 25 Oct 2021 13:45:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=draconx-ca.20210112.gappssmtp.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MHaQHXyAMSQ35iq2/1U+chNEyXWIVObFSwdU26YcSTg=; b=HWjEOcDrR3UXw9amX0RFKNpi10imPhrrj3Ax9q88fqfIiV1k+Yh1EI5tRLyz42GaNJ 2qqMAQGUOTeagRDiOh6oXF6/rDEFzZrfai1X64q3ug0OW6L8aYTSKRuqwWiBGmVysFmJ gvYtbMMBKmJmqadeP5XywV/OAQXzwRKhZICo4WIS0DJU7deveSmcHWV41vtlvWfpPZgp fuWKlfXdKrlgvzXZl5I5X1EO/UzcNXXvNZ8S8yvzSj/YpOLc42/6an/deRgkI6dJpDtN arag7SabY0qjWy6xWqYSG6K0lB9Pzp7bwqFgdpN6ExpCWtgOkr8vXYEbnNvGFq4OBtPM BiLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MHaQHXyAMSQ35iq2/1U+chNEyXWIVObFSwdU26YcSTg=; b=MJBKH2ApxKGPH6hhli06ig4WE755kP2JxuIiRG1laHB/o+JI/SdxSC5qxoqpw1YrCk DCKdHalAG2y3b11OJE8NyUAg2wPWsmLRHw7YXe9AEEPSX0H0lDYFq2i/SXdivDiBiydz sIIy1RKuXwcHH9Wy2NHHr2P7zpb1850P+3Owft2ZAyyYfB+WuCQr1k5yUV7hLI3zNcRS KkZ9QPbDiXhAq+2Va/FTAmCT7N0v1CJXHxI15HWeh5b457coixfc+eZinrjRZPNeSyaY 0F1lasY9GLYbhFdkj2Y8qiGcgXiDntIKcqM2o9uUJtPFtKtLmlmCvHsiSQyD/RXV78DV sXog== X-Gm-Message-State: AOAM532S4ZIPW8jE0C3shdWh67ETMckkz+k0j2OlkxcUx5QKLDAHNn7F g3ERM5p23Kt/FokeSlcQ8srOcAcP5Lltc0tM0cLubjj3B8pWfNU0 X-Google-Smtp-Source: ABdhPJy11tbWQXJIaLPR109UYLONBfmqq3jt7lF2NeZ1h/jW0YhrROJ5dGII+cuLE/QGHiLaVNCf4MFSIaObpUuYji8= X-Received: by 2002:a7b:c744:: with SMTP id w4mr52061500wmk.51.1635194706215; Mon, 25 Oct 2021 13:45:06 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6000:11:0:0:0:0 with HTTP; Mon, 25 Oct 2021 13:45:05 -0700 (PDT) X-Originating-IP: [24.53.240.163] In-Reply-To: <6554239.MhkbZ0Pkbq@raiskup> References: <6554239.MhkbZ0Pkbq@raiskup> From: Nick Bowler Date: Mon, 25 Oct 2021 16:45:05 -0400 Message-ID: Subject: Re: bug#47000: git libtool compiler flag handling busted on HP-UX To: Pavel Raiskup Content-Type: multipart/mixed; boundary="0000000000009a6d6505cf336f6c" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 47000 Cc: 47000@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000009a6d6505cf336f6c Content-Type: text/plain; charset="UTF-8" Hi Pavel, On 2021-10-24, Pavel Raiskup 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 --0000000000009a6d6505cf336f6c Content-Type: application/x-gzip; name="test.log.gz" Content-Disposition: attachment; filename="test.log.gz" Content-Transfer-Encoding: base64 X-Attachment-Id: file0 H4sICAMVd2EAA3Rlc3QubG9nAO1XwXKbMBA9J1+xIUyJM0PcZnqpUyftb9TjcYSQbcUgiBCpUzf5 9q4ENLaLjNxeemAywQt6+7SSdveBYoUqhgqv4bwUNOFR+Fhmil0Vy9HpeAyyFIKLBXABwTDiYrgq lgGMx6evt6AdZgYN7IkkI4hIwekICERAWwFFTigr6t/6qkh0gv+teJbm6nlG5GIEAK2IRZJFSHgJ V5cwIeGPr+G39+Gn2RTu4LXV4YlITqJER+ETQsDfRFH0Ap6/oZS+gB/Hsdcey5omJCWKZyJMiVyh /xmc+XDWilY8idkIvNd2sgL3NGHVVmMkAQkg8DGQoB29ZEkSYuQ66A/gfwH/EpiIkcRvdaBZmiec EsXikKYxbpNkOZ7KLQxFljOZwufG2vXXe713mFbA/hqCwAqNszLagnqeZ4XWG/dqBZAUwy6IwFW9 s4JyniPJT+v4Y4kZjydZHeQ80QVwZ0XrJAsjSeiKqQY9wUyb2vdGp/ZOntsXTKJRexFsge7xRFNc 8z2ac5IUDJoHVhf/ooYMtL3jNLDHzVJOsyQTI7gB42OF1unoVkNbfnweqiUTIUNyfVdNcwP6YWPr scaecyvVnGNSSRZzySgeDKPLDJuPSfLQZPn1m20loaRgYaFSVZngm6ajG57nDeogboAMIJLZCkPE G1YQaufDPWYC2UrB1rxQaMO5fQn4sLrCxQA28ALnUDwLRdbApMzkfnmvc5P52522OoPYgtwvvepP 95o/OlPt0TRpgBOoTtQCFNgJmyWOmn3zN+bXxSe8xngqNx1S7WgLa7sEqqwz+Cr37ve1KmZzUiaq ap29YPWC1QtWL1i9YPWC9d8Ilnr78spy06RzTFAmO7+8JhPISpWXCuiS0RVMp4DHg+sPQ2y7+aHx mEXlwgGno4IH9nAE5REuGjo+nt3RxUCPpXbldSY8AFRYpw48XTCz4U5MLlATdNU/XZfYhVaudJ1A Bc5UXchODjuAdM9/AFK9Y3YzHIZV/TN25DkELJaZVN08HTAzTEtXooNIg3AuXDe01izwjM4aE6Vw zRV8dCibv3BFGI/xHXaGw/8ytTuPZEo/ay3nQ+MiU79VzY5r9ngfbV7O55mEwMjXE77eon4F2xPU z45Do/V9ievGW0fHpiE103V+Bfbi2YtnL569ePbi2YtnL5674vkLF1w0owwcAAA= --0000000000009a6d6505cf336f6c-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 16 08:24:47 2021 Received: (at 47000-done) by debbugs.gnu.org; 16 Nov 2021 13:24:47 +0000 Received: from localhost ([127.0.0.1]:57510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmyS7-0005mg-GD for submit@debbugs.gnu.org; Tue, 16 Nov 2021 08:24:47 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:47373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmyS5-0005mT-6E for 47000-done@debbugs.gnu.org; Tue, 16 Nov 2021 08:24:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637069084; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7u8V0tO+6vRpSdrv3s9tC67/uTpQcFBaTZ18LXtWgCQ=; b=Q7o+NrakZRpP56La1a6joqUF3kg9QG2J3YZHSXdOKjVtAOCXt+PhRBQlX286mMdRjY3mUP CsCPKth0jdEE7NbxdA9WsttcvbFX673qej4xmusJZ487Erh5B0Qf1d+peVAXQH8QB437y8 Z35EJyXxnhI1+Xh/FjfYwUiN8Ns9K68= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-109-iHxsJtBTPoOT2FZfeVUtcg-1; Tue, 16 Nov 2021 08:24:42 -0500 X-MC-Unique: iHxsJtBTPoOT2FZfeVUtcg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 37F518799F0; Tue, 16 Nov 2021 13:24:41 +0000 (UTC) Received: from raiskup.localnet (unknown [10.40.208.6]) by smtp.corp.redhat.com (Postfix) with ESMTP id 846A91F418; Tue, 16 Nov 2021 13:24:40 +0000 (UTC) From: Pavel Raiskup To: Nick Bowler Subject: Re: bug#47000: git libtool compiler flag handling busted on HP-UX Date: Tue, 16 Nov 2021 14:24:39 +0100 Message-ID: <6253318.K2JlShyGXD@raiskup> Organization: Red Hat, Inc. In-Reply-To: References: <6554239.MhkbZ0Pkbq@raiskup> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=praiskup@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 47000-done Cc: 47000-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Version: 2.4.6.47-fc77 On Monday, October 25, 2021 10:45:05 PM CET Nick Bowler wrote: > Hi Pavel, > > On 2021-10-24, Pavel Raiskup 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: I tried to update the commit message(s) a but. And I believe this is fixed now (merged to libtool): https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=fc7779d7d8edfec83ce74c39f197ae2f1225873a Thank you for testing! Pavel > % var='a::b'; IFS=':'; set dummy $var > % printf '%s\n' "$#" "$2" "$3" "$4" > 4 > a > > b > > Thanks, > Nick From unknown Thu Aug 14 18:36:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 15 Dec 2021 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator