Re: bug#14706: Mac OS X gcc and bogus warnings about *.dSYM, directories

Stefano Lattarini <[email protected]>
Newsgroups gmane.comp.sysutils.automake.patches
Message-ID <[email protected]>
severity 14706 minor
tags 14706 + patch
close 14706

On 07/24/2013 03:32 PM, Hanspeter Niederstrasser wrote:
> The patch mentioned above does fix the issue about the dSYM directory when
> using Apple's rm.  However, if a user has the GNU coreutils package
> installed, GNU rm generates a different error text and then the test fails.
> 
> With Apple's rm, this is the 'rm' feedback which is dealt with correctly:
> 
> rm: conftest.dSYM: is a directory
> 
> With GNU rm, this is the 'rm' feedback which causes depcomp2.sh to fail:
> 
> rm: cannot remove 'conftest.dSYM': Is a directory
> 
> Hanspeter
> 
Thanks for the further report (and sorry for the shameful delay).  The
attached patch should finally take care of the issue.  If it doesn't work
for you, feel free to reopen this bug.

Best regards,
  Stefano
0001-tests-fix-a-spurious-failure-on-Mac-OS-X.patch (text/x-patch, 1 KB)
From 09cbe67d3a5fea8774d529f41577e32b4b1ba81c Mon Sep 17 00:00:00 2001
Message-Id: <09cbe67d3a5fea8774d529f41577e32b4b1ba81c.1388073353.git.stefano.lattarini@gmail.com>
From: Stefano Lattarini <[email protected]>
Date: Thu, 26 Dec 2013 16:52:06 +0100
Subject: [PATCH] tests: fix a spurious failure on Mac OS X

This change fixes bug#14706.

* lib/depcomp2.sh: Also cater to spurious diagnostic from GNU rm,
not only from Apple's rm.

Signed-off-by: Stefano Lattarini <[email protected]>
---
 t/depcomp2.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/depcomp2.sh b/t/depcomp2.sh
index 3eba12d..3baaebf 100644
--- a/t/depcomp2.sh
+++ b/t/depcomp2.sh
@@ -47,7 +47,7 @@ $AUTOCONF
 cat stderr >&2
 # Ignore warning messages sometimes seen on Mac OS X; they are
 # not automake's fault anyway, but either autoconf's or Mac's.
-sed '/rm:.* conftest\.dSYM/d' stderr >stderr2
+sed '/rm:.*conftest\.dSYM/d' stderr >stderr2
 test -s stderr2 && { cat stderr2; exit 1; }
 
 :
-- 
1.8.5.rc0.335.g7794a68
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.