php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23286 cvsclean deletes pear/PEAR directory
Submitted: 2003-04-20 09:51 UTC Modified: 2003-04-28 02:31 UTC
From: tater at potatoe dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: PHP 4.3.2-RC OS: OS X 10.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tater at potatoe dot com
New email:
PHP Version: OS:

 

 [2003-04-20 09:51 UTC] tater at potatoe dot com
This is only relevant on case-insensitive OS's like OS X.
If cvsclean in build/build.mk is run - because of a version of autoconf more recent than 2.13, for instance - it ends
up deleting the pear/PEAR directory, because pear/.cvsignore
contains "pear". The easiest way to fix the immediate problem would be to add a 'grep -v pear', but this is an attempt to solve the general problem of matching case:

Index: build.mk
===================================================================
RCS file: /repository/php4/build/build.mk,v
retrieving revision 1.18
diff -u -r1.18 build.mk
--- build.mk    21 Oct 2002 15:11:19 -0000      1.18
+++ build.mk    20 Apr 2003 14:48:52 -0000
@@ -67,7 +67,7 @@
 
 cvsclean:
        @for i in `find . -name .cvsignore`; do \
-               (cd `dirname $$i` 2>/dev/null && rm -rf `cat .cvsignore | grep -v config.nice` *.o *.a .libs || true); \
+               (cd `dirname $$i` 2>/dev/null && cat .cvsignore | grep -v config.nice | xargs -n1 find . -maxdepth 1 -name | xargs -n1 rm -rfv && rm -rfv *.o *.a .libs || true); \
        done
 
 .PHONY: $(ALWAYS) snapshot cvsclean

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-28 02:24 UTC] sniper@php.net
This applies to PHP4 too..

 [2003-04-28 02:31 UTC] sniper@php.net
Better not touch the build/build.mk just because of this.
(the pear entry in pear/.cvsignore was bogus)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 01:01:35 2025 UTC