Bug 9685

Summary: cleanlinks gives warning about '-depth'
Product: xorg Reporter: Tejing <tejing2001>
Component: Build/MonolithicAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: trivial    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard: 2011BRB_Reviewed
i915 platform: i915 features:

Description Tejing 2007-01-17 00:56:29 UTC
line 26 of the 'cleanlinks' script uses find to remove empty directories, but my
version of find gives a warning unless global options like -depth are put before
any tests or actions. so the line:
find . -type d -depth -empty -print -exec rmdir {} \;
should become:
find . -depth -type d -empty -print -exec rmdir {} \;
to avoid the warning.

I'm using Gentoo Linux, with version 1.0.2 of x11-misc/imake and version 4.3.2
of sys-apps/findutils.
Comment 1 Daniel Stone 2007-02-27 01:35:48 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 2 Steve Long 2007-09-21 07:29:09 UTC
Hi this is still happening in Gentoo, the change proposed above fixes it.

http://bugs.gentoo.org/show_bug.cgi?id=192756
Comment 3 Fabio Correa 2007-12-31 07:28:17 UTC
Please check bug #10019 for a suggested cleanlinks script.
Comment 4 Adam Jackson 2018-06-12 19:09:24 UTC
Mass closure: This bug has been untouched for more than six years, and is not
obviously still valid. Please reopen this bug or file a new report if you continue to experience issues with current releases.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.