[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
OpenCDK, temporary files and $TMPDIR
From: |
Ludovic Courtès |
Subject: |
OpenCDK, temporary files and $TMPDIR |
Date: |
Tue, 08 Apr 2008 23:19:19 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Hi,
When building and testing GnuTLS on NixOS (http://nixos.org/) in a
chroot, `tests/openpgp/keyring.c' fails. More precisely
`gnutls_openpgp_keyring_import ()' returns `GNUTLS_E_FILE_ERROR'.
The reason is that the chroot doesn't have a writable `/tmp', and
`cdk_stream_tmp_from_mem ()' (called from `cdk_keydb_new_from_mem ()')
tries to create a file with `tmpfile ()', which does not honor $TMPDIR
($TMPDIR is set to a writable temporary directory in the NixOS chroot).
Two remarks:
1. Why the hell does it have to create a file when all it does is
decode a keyring from memory? :-)
2. Too bad $TMPDIR is not honored. This can surely be fixed using
`getenv' and Gnulib's `tempname' module.
Thanks,
Ludovic.
- OpenCDK, temporary files and $TMPDIR,
Ludovic Courtès <=