Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/languages In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv14774
Modified Files: llvm-gcc42.patch Log Message: hardcode path for xargs and find in build_gcc script Index: llvm-gcc42.patch =================================================================== RCS file: /cvsroot/fink/dists/10.7/stable/main/finkinfo/languages/llvm-gcc42.patch,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- llvm-gcc42.patch 27 Sep 2013 18:25:49 -0000 1.8 +++ llvm-gcc42.patch 29 Sep 2013 14:42:43 -0000 1.9 @@ -621,8 +621,8 @@ +# libexec +cd $DIR/dst-$BUILD-$BUILD$DEST_ROOT/lib/llvm-gcc42/gcc/$BUILD-apple-darwin$DARWIN_VERS/$VERS \ + || exit 1 -+LIBEXEC_FILES=`find . -type f -print || exit 1` -+LIBEXEC_DIRS=`find . -type d -print || exit 1` ++LIBEXEC_FILES=`/usr/bin/find . -type f -print || exit 1` ++LIBEXEC_DIRS=`/usr/bin/find . -type d -print || exit 1` +cd $DEST_DIR || exit 1 +for t in $TARGETS ; do + DL=$DEST_ROOT/lib/llvm-gcc42/gcc/$t-apple-darwin$DARWIN_VERS/$VERS @@ -880,36 +880,36 @@ +rm -rf * || exit 1 + +# Generate .dSYM files -+find $DEST_DIR -perm -0111 \! -name fixinc.sh \ -+ \! -name mkheaders -type f -print | xargs -n 1 ${DSYMUTIL} ++/usr/bin/find $DEST_DIR -perm -0111 \! -name fixinc.sh \ ++ \! -name mkheaders -type f -print | /usr/bin/xargs -n 1 ${DSYMUTIL} + +# Save .dSYM files and .a archives +cd $DEST_DIR || exit 1 -+find . \( -path \*.dSYM/\* -or -name \*.a \) -print \ ++/usr/bin/find . \( -path \*.dSYM/\* -or -name \*.a \) -print \ + | cpio -pdml $SYM_DIR || exit 1 +# Save source files. +mkdir $SYM_DIR/src || exit 1 +cd $DIR || exit 1 -+find obj-* -name \*.\[chy\] -print | cpio -pdml $SYM_DIR/src || exit 1 ++/usr/bin/find obj-* -name \*.\[chy\] -print | cpio -pdml $SYM_DIR/src || exit 1 + +######################################## +# Remove debugging information from DEST_DIR. + +if [ "x$LLVM_DEBUG" != "x1" ]; then + # LLVM LOCAL begin - don't strip dSYM objects -+ find $DEST_DIR -perm -0111 \! -path '*DWARF*' \! -name \*.dylib \ ++ /usr/bin/find $DEST_DIR -perm -0111 \! -path '*DWARF*' \! -name \*.dylib \ + \! -name fixinc.sh \! -name mkheaders \! -name libstdc++.dylib \ + -type f -print \ -+ | xargs ${STRIP} || exit 1 ++ | /usr/bin/xargs ${STRIP} || exit 1 + # LLVM LOCAL begin - Strip with -Sx instead of -SX + # Ignore errors from this next one due to possible issues on Tiger -+ find $DEST_DIR \! -path '*DWARF*' \( -name \*.a -or -name \*.dylib \) \ ++ /usr/bin/find $DEST_DIR \! -path '*DWARF*' \( -name \*.a -or -name \*.dylib \) \ + \! -name libgcc_s.10.*.dylib \! -name libstdc++.dylib -type f \ + -print \ -+ | xargs ${STRIP} -SX ++ | /usr/bin/xargs ${STRIP} -SX + # LLVM LOCAL end - Strip with -Sx instead of -SX -+ find $DEST_DIR \! -path '*DWARF*' -name \*.a -type f -print \ -+ | xargs ${RANLIB} || exit 1 ++ /usr/bin/find $DEST_DIR \! -path '*DWARF*' -name \*.a -type f -print \ ++ | /usr/bin/xargs ${RANLIB} || exit 1 + # LLVM LOCAL end - don't strip dSYM objects +fi + @@ -946,7 +946,7 @@ + +# Remove unwind.h from the install directory for > 10.6 +if [ $DARWIN_VERS -gt 10 ]; then -+ find $DEST_DIR -name "unwind.h" -print | xargs rm || exit 1 ++ /usr/bin/find $DEST_DIR -name "unwind.h" -print | /usr/bin/xargs rm || exit 1 +fi + +# Install libLTO.dylib @@ -971,11 +971,11 @@ + +# Remove lto.h from the install directory; clang will supply. +# Also remove ppc_intrinsics.h. Note that this breaks PPC support. -+find $DEST_DIR \( -name lto.h -o -name ppc_intrinsics.h \) -delete -print || exit 1 ++/usr/bin/find $DEST_DIR \( -name lto.h -o -name ppc_intrinsics.h \) -delete -print || exit 1 + +# LLVM LOCAL end + -+find $DEST_DIR -name \*.dSYM -print | xargs rm -r || exit 1 ++/usr/bin/find $DEST_DIR -name \*.dSYM -print | /usr/bin/xargs rm -r || exit 1 +# chgrp -h -R wheel $DEST_DIR +# chgrp -R wheel $DEST_DIR + ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs