#44443 [NEW]: cvsclean fails on Darwin 9

From: Date: Sat, 15 Mar 2008 16:50:38 +0000
Subject: #44443 [NEW]: cvsclean fails on Darwin 9
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-123339@lists.php.net to get a copy of this message
From:             gwynne@php.net
Operating system: Darwin 9
PHP version:      6CVS-2008-03-15 (CVS)
PHP Bug Type:     *Compile Issues
Bug description:  cvsclean fails on Darwin 9

Description:
------------
Darwin 9's sed is broken, causing ./cvsclean to remove a bunch of bogus
file names. Occurs in 5.2, 5.3, and HEAD. Specifically, when catting
.cvsignore, cvsclean gets a list like this:
Makefile.objects Makefile.f agme ts Makefile acco fig.h aclocal.m4
autom4te.cache bsd_co ve ted buildmk.stamp buildco f.stamp co fig.h.i  co
fig.cache co fig.log co fig.status co fig_va s.mk co figu atio -pa se .c co
figu atio -pa se .h co figu atio <and so on>

Patch that fixes in all three:

Index: build/build.mk
===================================================================
RCS file: /repository/php-src/build/build.mk,v
retrieving revision 1.29
diff -u -r1.29 build.mk
--- build/build.mk	15 Feb 2007 20:43:19 -0000	1.29
+++ build/build.mk	15 Mar 2008 16:43:33 -0000
@@ -67,7 +67,7 @@
 
 cvsclean-work:
 	@for i in find . -name .cvsignore; do \
-		(cd dirname $$i 2>/dev/null && rm -rf `cat .cvsignore | grep -v
config.nice | sed 's/[\r\n]/ /g'` *.o *.a .libs || true); \
+		(cd dirname $$i 2>/dev/null && rm -rf `cat .cvsignore | grep -v
config.nice | sed 's/[[:space:]]/ /g'` *.o *.a .libs || true); \
 	done
 
 .PHONY: $(ALWAYS) snapshot

Reproduce code:
---------------
$ ls -l config*
$ ./cvsclean
$ ls -l config*

Expected result:
----------------
-rw-r--r--  1 gwynne  gwynne    43499 Nov 29  2005 config.guess
-rw-r--r--  1 gwynne  gwynne    31743 Nov 29  2005 config.sub
-rwxr-xr-x  1 gwynne  gwynne  2872089 Mar 10 10:21 configure
-rw-r--r--  1 gwynne  gwynne    41352 Mar 10 11:17 configure.in

-rw-r--r--  1 gwynne  gwynne    43499 Nov 29  2005 config.guess
-rw-r--r--  1 gwynne  gwynne    31743 Nov 29  2005 config.sub
-rw-r--r--  1 gwynne  gwynne    41352 Mar 10 11:17 configure.in


Actual result:
--------------
-rw-r--r--  1 gwynne  gwynne    43499 Nov 29  2005 config.guess
-rw-r--r--  1 gwynne  gwynne    31743 Nov 29  2005 config.sub
-rwxr-xr-x  1 gwynne  gwynne  2872089 Mar 10 10:21 configure
-rw-r--r--  1 gwynne  gwynne    41352 Mar 10 11:17 configure.in

-rw-r--r--  1 gwynne  gwynne    43499 Nov 29  2005 config.guess
-rw-r--r--  1 gwynne  gwynne    31743 Nov 29  2005 config.sub
-rwxr-xr-x  1 gwynne  gwynne  2872089 Mar 10 10:21 configure
-rw-r--r--  1 gwynne  gwynne    41352 Mar 10 11:17 configure.in


-- 
Edit bug report at http://bugs.php.net/?id=44443&edit=1
-- 
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44443&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44443&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44443&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44443&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=44443&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44443&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44443&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44443&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44443&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44443&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=44443&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=44443&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44443&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44443&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44443&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44443&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44443&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44443&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44443&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44443&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#123339) next »