GNU bug report logs - #49246
[PATCH] libtool with mingw hangs in func_convert_core_msys_to_w32

Previous Next

Package: libtool;

Reported by: Brian Inglis <Brian.Inglis <at> SystematicSW.ab.ca>

Date: Sun, 27 Jun 2021 23:09:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 49246 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-libtool <at> gnu.org:
bug#49246; Package libtool. (Sun, 27 Jun 2021 23:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brian Inglis <Brian.Inglis <at> SystematicSW.ab.ca>:
New bug report received and forwarded. Copy sent to bug-libtool <at> gnu.org. (Sun, 27 Jun 2021 23:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Brian Inglis <Brian.Inglis <at> SystematicSW.ab.ca>
To: bug-libtool <at> gnu.org,
	Libtool Patches <libtool-patches <at> gnu.org>
Subject: [PATCH] libtool with mingw hangs in func_convert_core_msys_to_w32
Date: Sun, 27 Jun 2021 14:19:45 -0600
[Message part 1 (text/plain, inline)]
Problem reported by a downstream Cygwin user inadvertently
misconfiguring a package cross-build with mingw toolchain:

libtool with mingw hangs building openocd in
func_convert_core_msys_to_w32:

	https://cygwin.com/pipermail/cygwin/2021-June/248791.html

The issue exists in libtool build-aux/ltmain.in line 963 in
func_convert_core_msys_to_w32 Windows subshell command:

	( cmd //c echo "$1" )

see:

https://git.savannah.gnu.org/cgit/libtool.git/tree/build-aux/ltmain.in#n963

where the switch char "/" is duplicated, so instead of executing one
command in the Windows subshell context, a subshell is spawned and hangs
until manually exited e.g.:

$ cmd //c echo "$1"
Microsoft Windows [Version 10.0.19042.985]
(c) Microsoft Corporation. All rights reserved.

C:\...>exit
$

The patch merely removes the extraneous duplicated switch char "/".

As the patch is trivial, no copyright assignemnt should be required.

---
 build-aux/ltmain.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

[0001-libtool-with-mingw-hangs-in-func_convert_core_msys_to_w32.patch (text/x-patch, attachment)]

Information forwarded to bug-libtool <at> gnu.org:
bug#49246; Package libtool. (Mon, 28 Jun 2021 12:33:02 GMT) Full text and rfc822 format available.

Message #8 received at 49246 <at> debbugs.gnu.org (full text, mbox):

From: Brian Inglis <Brian.Inglis <at> SystematicSw.ab.ca>
To: 49246 <at> debbugs.gnu.org
Subject: re: [PATCH] libtool with mingw hangs in func_convert_core_msys_to_w32
Date: Mon, 28 Jun 2021 06:31:59 -0600
I can now see what may be a prior duplicate report under:

    https://debbugs.gnu.org/cgi/bugreport.cgi?bug=10949

responding that //c is deliberate so MSYS does not try to convert a 
posix path, such that in the Cygwin Mingw build case, the response may 
be "Don't Do That"!

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

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]




This bug report was last modified 2 years and 301 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.