Received: (at 11895) by debbugs.gnu.org; 10 Jul 2012 11:25:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 10 07:25:16 2012
Received: from localhost ([127.0.0.1]:59499 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.72)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1SoYZ9-0000VU-UV
for submit <at> debbugs.gnu.org; Tue, 10 Jul 2012 07:25:16 -0400
Received: from wp256.webpack.hosteurope.de ([80.237.133.25]:55312)
by debbugs.gnu.org with esmtp (Exim 4.72)
(envelope-from <max@HIDDEN>) id 1SoYZ8-0000VN-GK
for 11895 <at> debbugs.gnu.org; Tue, 10 Jul 2012 07:25:15 -0400
Received: from dhcp181.math.nat.tu-bs.de ([134.169.53.181]); authenticated
by wp256.webpack.hosteurope.de running ExIM with esmtpsa
(TLS1.0:RSA_AES_128_CBC_SHA1:16)
id 1SoYTx-0004uD-1w; Tue, 10 Jul 2012 13:19:53 +0200
From: Max Horn <max@HIDDEN>
Mime-Version: 1.0 (Apple Message framework v1280)
Content-Type: multipart/mixed;
boundary="Apple-Mail=_B9E32629-FA8C-4E5A-A22D-C5E4BCB2C3D8"
Subject: Re: bug#11895: Acknowledgement (libtool 2.4.2: Several tests trigger
spurious output on OS X due to conftest.dSYM dir)
Date: Tue, 10 Jul 2012 13:19:52 +0200
In-Reply-To: <handler.11895.B.1341918742794.ack <at> debbugs.gnu.org>
To: 11895 <at> debbugs.gnu.org
References: <71F0B46D-6A4A-4FA0-9C94-9BFBDF0D9CBC@HIDDEN>
<handler.11895.B.1341918742794.ack <at> debbugs.gnu.org>
Message-Id: <E68297CA-1509-4D8B-9FB1-3BEB19E95BFF@HIDDEN>
X-Mailer: Apple Mail (2.1280)
X-bounce-key: webpack.hosteurope.de;max@HIDDEN;1341919194;2002fb40;
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 11895
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)
--Apple-Mail=_B9E32629-FA8C-4E5A-A22D-C5E4BCB2C3D8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
Sorry, I just realized that there are far more than three places where =
this problem occurs. The attached revised patch tries to address that.
Note that I did not attempt to unify the use of $RM vs. "rm -f", as I =
don't know whether there is any logic behind the current seemingly =
random switching between the two. And there are some instances left in =
autoconf, too. Will report those separately.
Cheers,
Max
--Apple-Mail=_B9E32629-FA8C-4E5A-A22D-C5E4BCB2C3D8
Content-Disposition: attachment;
filename=libtool-2.4.2-dSYM-fix.diff
Content-Type: application/octet-stream;
name="libtool-2.4.2-dSYM-fix.diff"
Content-Transfer-Encoding: 7bit
diff -ru libtool-2.4.2/libltdl/m4/libtool.m4 libtool-2.4.2-patched/libltdl/m4/libtool.m4
--- libtool-2.4.2/libltdl/m4/libtool.m4 2011-10-17 12:17:05.000000000 +0200
+++ libtool-2.4.2-patched/libltdl/m4/libtool.m4 2012-07-10 13:17:07.000000000 +0200
@@ -934,7 +934,7 @@
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
-$RM conftest*
+$RM -r conftest*
])# _LT_COMPILER_BOILERPLATE
@@ -1530,7 +1530,7 @@
$2=yes
fi
fi
- $RM conftest*
+ $RM -r conftest*
])
if test x"[$]$2" = xyes; then
@@ -2005,14 +2005,13 @@
fi
fi
chmod u+w . 2>&AS_MESSAGE_LOG_FD
- $RM conftest*
+ $RM -r conftest*
# SGI C++ compiler will create directory out/ii_files/ for
# template instantiation
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
$RM out/* && rmdir out
cd ..
- $RM -r conftest
- $RM conftest*
+ $RM -r conftest*
])
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
[Does compiler simultaneously support -c and -o options?])
@@ -2032,7 +2031,7 @@
# do not overwrite the value of need_locks provided by the user
AC_MSG_CHECKING([if we can lock with hard links])
hard_links=yes
- $RM conftest*
+ $RM -r conftest*
ln conftest.a conftest.b 2>/dev/null && hard_links=no
touch conftest.a
ln conftest.a conftest.b 2>&5 || hard_links=no
@@ -3482,7 +3481,7 @@
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
fi
- rm -f conftest*])
+ rm -rf conftest*])
])# LT_PATH_NM
# Old names:
@@ -3546,7 +3545,7 @@
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
lt_cv_path_mainfest_tool=yes
fi
- rm -f conftest*])
+ rm -rf conftest*])
if test "x$lt_cv_path_mainfest_tool" != xyes; then
MANIFEST_TOOL=:
fi
@@ -3722,7 +3721,7 @@
# Check to see that the pipe works correctly.
pipe_works=no
- rm -f conftest*
+ rm -rf conftest*
cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
@@ -5614,7 +5613,7 @@
# to ld, don't add -lc before -lgcc.
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
- [$RM conftest*
+ [$RM -r conftest*
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
@@ -5641,7 +5640,7 @@
else
cat conftest.err 1>&5
fi
- $RM conftest*
+ $RM -r conftest*
])
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
;;
--Apple-Mail=_B9E32629-FA8C-4E5A-A22D-C5E4BCB2C3D8
Content-Disposition: attachment;
filename=libtool-git-dSYM-fix.diff
Content-Type: application/octet-stream;
name="libtool-git-dSYM-fix.diff"
Content-Transfer-Encoding: 7bit
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index a8ecbc3..9e9a6c7 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -931,7 +931,7 @@ ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
-$RM conftest*
+$RM -r conftest*
])# _LT_COMPILER_BOILERPLATE
@@ -1534,7 +1534,7 @@ AC_CACHE_CHECK([$1], [$2],
$2=yes
fi
fi
- $RM conftest*
+ $RM -r conftest*
])
if test yes = "[$]$2"; then
@@ -1840,7 +1840,7 @@ _LT_EOF
$3
fi
fi
-rm -fr conftest*
+rm -rf conftest*
])# _LT_TRY_DLOPEN_SELF
@@ -2010,14 +2010,13 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
fi
fi
chmod u+w . 2>&AS_MESSAGE_LOG_FD
- $RM conftest*
+ $RM -r conftest*
# SGI C++ compiler will create directory out/ii_files/ for
# template instantiation
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
$RM out/* && rmdir out
cd ..
- $RM -r conftest
- $RM conftest*
+ $RM -r conftest*
])
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
[Does compiler simultaneously support -c and -o options?])
@@ -2037,7 +2036,7 @@ if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_loc
# do not overwrite the value of need_locks provided by the user
AC_MSG_CHECKING([if we can lock with hard links])
hard_links=yes
- $RM conftest*
+ $RM -r conftest*
ln conftest.a conftest.b 2>/dev/null && hard_links=no
touch conftest.a
ln conftest.a conftest.b 2>&5 || hard_links=no
@@ -3472,7 +3471,7 @@ AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
fi
- rm -f conftest*])
+ rm -rf conftest*])
])# LT_PATH_NM
# Old names:
@@ -3536,7 +3535,7 @@ AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
lt_cv_path_mainfest_tool=yes
fi
- rm -f conftest*])
+ rm -rf conftest*])
if test yes != "$lt_cv_path_mainfest_tool"; then
MANIFEST_TOOL=:
fi
@@ -3712,7 +3711,7 @@ for ac_symprfx in "" "_"; do
# Check to see that the pipe works correctly.
pipe_works=no
- rm -f conftest*
+ rm -rf conftest*
cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
@@ -5620,7 +5619,7 @@ x|xyes)
# to ld, don't add -lc before -lgcc.
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
- [$RM conftest*
+ [$RM -r conftest*
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
@@ -5647,7 +5646,7 @@ x|xyes)
else
cat conftest.err 1>&5
fi
- $RM conftest*
+ $RM -r conftest*
])
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
;;
--Apple-Mail=_B9E32629-FA8C-4E5A-A22D-C5E4BCB2C3D8--
bug-libtool@HIDDEN:bug#11895; Package libtool.
Full text available.
Received: (at submit) by debbugs.gnu.org; 10 Jul 2012 11:12:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 10 07:12:22 2012
Received: from localhost ([127.0.0.1]:59480 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.72)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1SoYMg-0000Cl-Jn
for submit <at> debbugs.gnu.org; Tue, 10 Jul 2012 07:12:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46487)
by debbugs.gnu.org with esmtp (Exim 4.72)
(envelope-from <max@HIDDEN>) id 1SoYMe-0000Ce-9C
for submit <at> debbugs.gnu.org; Tue, 10 Jul 2012 07:12:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from <max@HIDDEN>) id 1SoYHN-0000D2-VV
for submit <at> debbugs.gnu.org; Tue, 10 Jul 2012 07:06:59 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level:
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI
autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:35479)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from <max@HIDDEN>) id 1SoYHN-0000Co-Jp
for submit <at> debbugs.gnu.org; Tue, 10 Jul 2012 07:06:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40855)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from <max@HIDDEN>) id 1SoYHH-0000oB-6s
for bug-libtool@HIDDEN; Tue, 10 Jul 2012 07:06:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from <max@HIDDEN>) id 1SoYH6-0000A4-UC
for bug-libtool@HIDDEN; Tue, 10 Jul 2012 07:06:46 -0400
Received: from wp256.webpack.hosteurope.de ([80.237.133.25]:55694)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from <max@HIDDEN>) id 1SoYH6-00009j-LG
for bug-libtool@HIDDEN; Tue, 10 Jul 2012 07:06:36 -0400
Received: from dhcp181.math.nat.tu-bs.de ([134.169.53.181]); authenticated
by wp256.webpack.hosteurope.de running ExIM with esmtpsa
(TLS1.0:RSA_AES_128_CBC_SHA1:16)
id 1SoYH4-0008GK-Eh; Tue, 10 Jul 2012 13:06:34 +0200
From: Max Horn <max@HIDDEN>
Content-Type: multipart/mixed;
boundary="Apple-Mail=_F804187C-C39D-42F9-A68F-7AB804B63A04"
Subject: libtool 2.4.2: Several tests trigger spurious output on OS X due to
conftest.dSYM dir
Date: Tue, 10 Jul 2012 13:06:34 +0200
Message-Id: <71F0B46D-6A4A-4FA0-9C94-9BFBDF0D9CBC@HIDDEN>
To: bug-libtool@HIDDEN
Mime-Version: 1.0 (Apple Message framework v1280)
X-Mailer: Apple Mail (2.1280)
X-bounce-key: webpack.hosteurope.de;max@HIDDEN;1341918396;3f138038;
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)
--Apple-Mail=_F804187C-C39D-42F9-A68F-7AB804B63A04
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
Hi there,
there is a problem in libtool 2.4.2 that causes several libtool autoconf =
tests to generate spurious output on Mac OS X, like this:
[...]
checking for archiver @FILE support... rm: cannot remove =
`conftest.dSYM': Is a directory
no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from cc object... rm: =
cannot remove `conftest.dSYM': Is a directory
ok
[...]
It is well-known that the Mac OS X compilers generated "conftest.dSYM" =
directories with debug information under certain circumstances. See also =
this libtool discussion from 2007: =
<http://old.nabble.com/Mac-OS-X-Leopard-and-conftest.dSYM-directories-td13=
681269.html>
Now libtool already worked around this OS X behavior by changing =
instances
rm -f conftest*
to
rm -rf conftest*
However, it appears that three instances of this in libtool.m4 where =
overlooked or crept in at a later date. The attached patchs (one for =
2.4.2, one for git) corrects that. Without this patch, the spurious =
autoconf output can lead to various issues; e.g. it causes hard test =
suite errors in automake 1.12.x.
Since this affects many, many projects out there using libtool, it would =
be nice if this could be fixed in a released version of libtool.=20
Thanks,
Max
--Apple-Mail=_F804187C-C39D-42F9-A68F-7AB804B63A04
Content-Disposition: attachment;
filename=libtool-2.4.2-dSYM-fix.diff
Content-Type: application/octet-stream;
name="libtool-2.4.2-dSYM-fix.diff"
Content-Transfer-Encoding: 7bit
diff -ru libtool-2.4.2/libltdl/m4/libtool.m4 libtool-2.4.2-patched/libltdl/m4/libtool.m4
--- libtool-2.4.2/libltdl/m4/libtool.m4 2011-10-17 12:17:05.000000000 +0200
+++ libtool-2.4.2-patched/libltdl/m4/libtool.m4 2012-07-10 13:02:28.000000000 +0200
@@ -3482,7 +3482,7 @@
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
fi
- rm -f conftest*])
+ rm -rf conftest*])
])# LT_PATH_NM
# Old names:
@@ -3546,7 +3546,7 @@
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
lt_cv_path_mainfest_tool=yes
fi
- rm -f conftest*])
+ rm -rf conftest*])
if test "x$lt_cv_path_mainfest_tool" != xyes; then
MANIFEST_TOOL=:
fi
@@ -3722,7 +3722,7 @@
# Check to see that the pipe works correctly.
pipe_works=no
- rm -f conftest*
+ rm -rf conftest*
cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
--Apple-Mail=_F804187C-C39D-42F9-A68F-7AB804B63A04
Content-Disposition: attachment;
filename=libtool-git-dSYM-fix.diff
Content-Type: application/octet-stream;
name="libtool-git-dSYM-fix.diff"
Content-Transfer-Encoding: 7bit
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index a8ecbc3..50ddc27 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -3472,7 +3472,7 @@ AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
fi
- rm -f conftest*])
+ rm -rf conftest*])
])# LT_PATH_NM
# Old names:
@@ -3536,7 +3536,7 @@ AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
lt_cv_path_mainfest_tool=yes
fi
- rm -f conftest*])
+ rm -rf conftest*])
if test yes != "$lt_cv_path_mainfest_tool"; then
MANIFEST_TOOL=:
fi
@@ -3712,7 +3712,7 @@ for ac_symprfx in "" "_"; do
# Check to see that the pipe works correctly.
pipe_works=no
- rm -f conftest*
+ rm -rf conftest*
cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
--Apple-Mail=_F804187C-C39D-42F9-A68F-7AB804B63A04--
Max Horn <max@HIDDEN>:bug-libtool@HIDDEN.
Full text available.bug-libtool@HIDDEN:bug#11895; Package libtool.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.