For compatibility with older findutils, don't use the -L predicate (bug
#168432).
For bug #168267, use add --force to the default PORTAGE_COMPRESS_FLAGS
so that hardlinks are automatically broken.
svn path=/main/branches/prefix/; revision=6090
PORTAGE_COMPRESS=${PORTAGE_COMPRESS:-bzip2}
if [[ -z ${PORTAGE_COMPRESS_FLAGS} ]] ; then
case ${PORTAGE_COMPRESS} in
- bzip2|gzip) PORTAGE_COMPRESS_FLAGS="-9";;
+ bzip2|gzip) PORTAGE_COMPRESS_FLAGS="-f9";;
esac
fi
find "${dir}" -type f ${negate} -iname '*.'${suffix} -print0 | ${XARGS} -0 ${binary}
((ret+=$?))
- find -L "${dir}" -type l | \
- while read brokenlink ; do
+ find "${dir}" -type l -print0 | \
+ while read -d $'\0' brokenlink ; do
+ [[ -e ${brokenlink} ]] && continue
olddest=$(readlink "${brokenlink}")
[[ ${act} == "compress" ]] \
&& newdest="${olddest}${suffix}" \
This variable contains the command used to compress documentation during the
install phase.
.TP
-\fBPORTAGE_COMPRESS_FLAGS\fR = \fI"\-9"\fR
+\fBPORTAGE_COMPRESS_FLAGS\fR = \fI"\-f9"\fR
This variable contains flags for the \fBPORTAGE_COMPRESS\fR command.
.TP
.B PORTAGE_ELOG_CLASSES