On Fri, Feb 11, 2005, Matthias Kurz wrote:
>
>Hi.
>
>Some quick notes.
>
>1. Using /tmp under Solaris for tempfiles can be problematic. I recommend
>   to override this in /opkg/etc/rc.conf. This may be good for the wiki,
>   i would prefer a README.openpkg in $prefix/share/pkg/doc for such things,
>   though. Also for the hints/recommendations that are displayed after
>   building/installing some commands (the text boxes after installing e.g.
>   openpkg or mysql etc., you know ?). I prefer to have such things
>   "local".

I sent the attached patch quite a while ago, but it hasn't been
incorporated in the CURRENT version of findutils.  Without the
patch, the locate/updatedb.sh script ignores the TMPDIR
environment variable.  The rc.findutils sets it properly, but it
has no effect.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

Intaxication: Euphoria at getting a refund from the IRS, which lasts until
you realize it was your money to start with.
diff -uNr ../findutils-4.1.20.orig/locate/updatedb.sh ./locate/updatedb.sh
--- ../findutils-4.1.20.orig/locate/updatedb.sh 2004-08-02 14:48:30.000000000 
-0700
+++ ./locate/updatedb.sh        2004-08-02 14:52:20.000000000 -0700
@@ -70,14 +70,16 @@
 : [EMAIL PROTECTED]@}
 
 # Directory to hold intermediate files.
-if test -d /var/tmp; then
-  : ${TMPDIR=/var/tmp}
-elif test -d /usr/tmp; then
-  : ${TMPDIR=/usr/tmp}
-else
-  : ${TMPDIR=/tmp}
+if test -z "$TMPDIR" ; then
+       if test -d /var/tmp; then
+         : ${TMPDIR=/var/tmp}
+       elif test -d /usr/tmp; then
+         : ${TMPDIR=/usr/tmp}
+       else
+         : ${TMPDIR=/tmp}
+       fi
+       export TMPDIR
 fi
-export TMPDIR
 
 # The user to search network directories as.
 : ${NETUSER=daemon}

Reply via email to