diff options
author | jmmv <jmmv@pkgsrc.org> | 2004-04-18 17:11:08 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2004-04-18 17:11:08 +0000 |
commit | 0024f4a6f3313d23cc1772913915c225dc9521a0 (patch) | |
tree | 12ebbcd493d208fc6a6d5a934d5eba9972f88413 /sysutils/fam/Makefile | |
parent | e1265b39b5bbc3e65532281c1149bb1437aa8169 (diff) | |
download | pkgsrc-0024f4a6f3313d23cc1772913915c225dc9521a0.tar.gz |
Fix location of temporary files, as they were beeing created under / instead
of /tmp! If you have been using GNOME, you may want to 'rm -f /.fam*' to
clean them up.
The problem is caused by two different issues, related to a call to tempnam:
- The code uses a HAVE_UNSETENV define to check if the unsetenv function
is available; however, the configure script does not check for it, so
unsetenv is never used. Fix the configure script to check for unsetenv.
- If unsetenv is not available, it does putenv("TMPDIR=") before calling
tempnam. The code expects that this call *unsets* the variable from the
environment (which happens in Linux), but instead it is *set* to an empty
value, causing the creation of files in the root directory. Fix this by
explicitly setting TMPDIR to /tmp.
Bump PKGREVISION to 1.
Diffstat (limited to 'sysutils/fam/Makefile')
-rw-r--r-- | sysutils/fam/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysutils/fam/Makefile b/sysutils/fam/Makefile index 01578d93911..4c62df4cc7d 100644 --- a/sysutils/fam/Makefile +++ b/sysutils/fam/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.14 2004/04/14 20:53:08 adam Exp $ +# $NetBSD: Makefile,v 1.15 2004/04/18 17:11:08 jmmv Exp $ # DISTNAME= fam-2.7.0 +PKGREVISION= 1 CATEGORIES= sysutils devel MASTER_SITES= ftp://oss.sgi.com/projects/fam/download/stable/ \ ftp://ftp.tuwien.ac.at/opsys/linux/gentoo/distfiles/ \ |