GNU bug report logs - #36762
libtool.m4 bug (spaces detection in compiler's output after -L/-R)

Previous Next

Package: libtool;

Reported by: Igor Rondarev <d_garry <at> mail.ru>

Date: Mon, 22 Jul 2019 14:04:02 UTC

Severity: normal

Done: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36762 in the body.
You can then email your comments to 36762 AT debbugs.gnu.org in the normal way.

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#36762; Package libtool. (Mon, 22 Jul 2019 14:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Igor Rondarev <d_garry <at> mail.ru>:
New bug report received and forwarded. Copy sent to bug-libtool <at> gnu.org. (Mon, 22 Jul 2019 14:04:02 GMT) Full text and rfc822 format available.

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

From: Igor Rondarev <d_garry <at> mail.ru>
To: bug-libtool <at> gnu.org
Subject: libtool.m4 bug (spaces detection in compiler's output after -L/-R)
Date: Mon, 22 Jul 2019 16:53:34 +0300
Hi!

There is probaby a bug in 'm4/libtool.m4' that prevents correct 
detection of all the library paths provided by compiler (comparison is 
always FALSE). Here is a small patch:

> diff -ruN orig/m4/libtool.m4 patched/m4/libtool.m4
> --- orig/m4/libtool.m4   2019-04-18 16:57:12.487507441 +0300
> +++ patched/m4/libtool.m4        2019-04-18 16:57:29.503424063 +0300
> @@ -7537,8 +7537,8 @@
>      -L* | -R* | -l*)
>         # Some compilers place space between "-{L,R}" and the path.
>         # Remove the space.
> -       if test x-L = "$p" ||
> -          test x-R = "$p"; then
> +       if test x-L = "x$p" ||
> +          test x-R = "x$p"; then
>          prev=$p
>          continue
>         fi
Regards,
Igor.






Information forwarded to bug-libtool <at> gnu.org:
bug#36762; Package libtool. (Wed, 24 Jul 2019 07:17:02 GMT) Full text and rfc822 format available.

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

From: Thomas Jahns <jahns <at> dkrz.de>
To: bug-libtool <at> gnu.org
Subject: Re: bug#36762: libtool.m4 bug (spaces detection in compiler's output
 after -L/-R)
Date: Wed, 24 Jul 2019 09:16:13 +0200
[Message part 1 (text/plain, inline)]
Hi,

since it might take too long until a libtool release for some, I'll 
contribute the m4 code to patch the bug from autoconf:

m4_if(m4_cmp(m4_version_compare(LT_PACKAGE_VERSION,[2.4.6]),1),-1,
     [m4_pushdef([_LT_SYS_HIDDEN_LIBDEPS],m4_bpatsubst(m4_dquote(
        m4_defn([_LT_SYS_HIDDEN_LIBDEPS])),[test x-\([LR]\) = "\$p"],
          [test x-\1 = x"$p"]))])dnl
LT_INIT
m4_if(m4_cmp(m4_version_compare(LT_PACKAGE_VERSION,[2.4.6]),1),-1,
  [m4_popdef([_LT_SYS_HIDDEN_LIBDEPS])])dnl

Regards, Thomas

On 7/22/19 3:53 PM, Igor Rondarev via Bug-libtool wrote:
> Hi!
> 
> There is probaby a bug in 'm4/libtool.m4' that prevents correct 
> detection of all the library paths provided by compiler (comparison is 
> always FALSE). Here is a small patch:
> 
>> diff -ruN orig/m4/libtool.m4 patched/m4/libtool.m4
>> --- orig/m4/libtool.m4   2019-04-18 16:57:12.487507441 +0300
>> +++ patched/m4/libtool.m4        2019-04-18 16:57:29.503424063 +0300
>> @@ -7537,8 +7537,8 @@
>>      -L* | -R* | -l*)
>>         # Some compilers place space between "-{L,R}" and the path.
>>         # Remove the space.
>> -       if test x-L = "$p" ||
>> -          test x-R = "$p"; then
>> +       if test x-L = "x$p" ||
>> +          test x-R = "x$p"; then
>>          prev=$p
>>          continue
>>         fi
> Regards,
> Igor.
> 
> 
> 
> 
> 
> _______________________________________________
> Bug-libtool mailing list
> Bug-libtool <at> gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-libtool

[smime.p7s (application/pkcs7-signature, attachment)]

Reply sent to Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>:
You have taken responsibility. (Tue, 22 Oct 2024 17:51:02 GMT) Full text and rfc822 format available.

Notification sent to Igor Rondarev <d_garry <at> mail.ru>:
bug acknowledged by developer. (Tue, 22 Oct 2024 17:51:02 GMT) Full text and rfc822 format available.

Message #13 received at 36762-done <at> debbugs.gnu.org (full text, mbox):

From: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
To: 36762-done <at> debbugs.gnu.org
Cc: Igor Rondarev <d_garry <at> mail.ru>
Subject: bug#36762: libtool.m4 bug (spaces detection in compiler's output
 after -L/-R)
Date: Tue, 22 Oct 2024 20:49:07 +0300
[Message part 1 (text/plain, inline)]
Thank you for your bug report and patch. A separate set of patches have
been applied to libtool.

https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=4da5b57531bc2db0131bb26ad017792688674890
https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=fb617e2ba0809218486323823b74f706cedd9aac

-- 
Ileana Dumitrescu

GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354

[OpenPGP_0x6570EA01146F7354.asc (application/pgp-keys, attachment)]
[OpenPGP_signature.asc (application/pgp-signature, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 20 Nov 2024 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 88 days ago.

Previous Next


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