+2005-11-02 Paul Varner <fuzzyray@gentoo.org>
+ * revdep-rebuild: Fix to work with findutils-4.2.25 (Bug 111203)
+
2005-10-18 Paul Varner <fuzzyray@gentoo.org>
* equery: Make equery look at both DEPEND and RDEPEND for dependencies
* gentoolkit: Fix _parse_deps to understand || syntax (Bug 101377)
set_trap "$LIST.1_*"
- find $SEARCH_DIRS -type f \( -perm +u+x -o -name '*.so' -o -name '*.so.*' \) 2>/dev/null | sort | uniq >$LIST.0_files
+ # Hack for broken versions of find. I'm using a case statement in case I have to add more
+ find_version=$(find --version 2>/dev/null | awk '/find/ {print $NF}')
+ case "$find_version" in
+ 4.2.25 )
+ find $SEARCH_DIRS -type f \( -perm /u+x -o -name '*.so' -o -name '*.so.*' \) 2>/dev/null | sort | uniq >$LIST.0_files
+ ;;
+ * )
+ find $SEARCH_DIRS -type f \( -perm +u+x -o -name '*.so' -o -name '*.so.*' \) 2>/dev/null | sort | uniq >$LIST.0_files
+ ;;
+ esac
# Remove files that match SEARCH_DIR_MASK
for dir in $SEARCH_DIRS_MASK