Merged from trunk 6085:6088
authorFabian Groffen <grobian@gentoo.org>
Tue, 27 Feb 2007 16:52:33 +0000 (16:52 -0000)
committerFabian Groffen <grobian@gentoo.org>
Tue, 27 Feb 2007 16:52:33 +0000 (16:52 -0000)
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

bin/ecompress
bin/ecompressdir
man/make.conf.5

index 81451c9c821cc950374d5d3c13f6fd4edd388332..6bd752818135232e3c9f9a27329e19b3ae919c94 100755 (executable)
@@ -14,7 +14,7 @@ source "${PORTAGE_BIN_PATH:-${EPREFIX}/usr/lib/portage/bin}"/isolated-functions.
 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
 
index 243a6832cbf4470a18ef85fd4cf6cbb6705ac6b3..62d9af5e0c878855839f436c99d2231bd0d706dd 100755 (executable)
@@ -32,8 +32,9 @@ funk_up_dir() {
        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}" \
index 168523efa3955238c6ea607e4c668bcf1795d1e9..088a54ab20987b37e279865c135e06526075e514 100644 (file)
@@ -329,7 +329,7 @@ the host that creates the binary packages and not to the root of the \fBPKGDIR\f
 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