3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/build-support
aszlig f83af95f8a
build-support: Use mktemp -d in nix-prefetch-*.
Instead of relying on $$ to not collide with an existing path.

Quoting the Bash manual about $$:

> Expands to the process ID of the shell. In a () subshell, it expands
> to the process ID of the current shell, not the subshell.

So, this is different from $BASHPID:

> Expands to the process ID of the current bash process. This differs
> from $$ under certain circumstances, such as subshells that do not
> require bash to be re-initialized.

But even $BASHPID is prone to race conditions if the process IDs wrap
around, so to be on the safe side, we're using mktemp here.

Closes #3784.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-08-25 15:28:55 +02:00
..
build-fhs-chrootenv fhs-chrootenv: use -l to umount for the rbind mount 2014-05-22 22:18:30 +02:00
buildenv buildEnv to support passthru 2014-07-10 16:41:02 +02:00
builder-defs Use find instead of cp for installFonts. 2014-05-07 03:52:21 -04:00
cabal cabal: enable multi-threaded builds with GHC 7.8.x or later 2014-08-17 00:20:12 +02:00
clang-wrapper Partially merge gcc-wrapper and clang-wrapper 2014-07-02 20:10:40 +02:00
dotnetenv
fetchbower Add fetchbower function to go along with bower2nix 2014-01-06 08:20:22 -05:00
fetchbzr build-support: Use mktemp -d in nix-prefetch-*. 2014-08-25 15:28:55 +02:00
fetchcvs
fetchdarcs fetchbzr, fetchdarcs, fetchhg: use rev attr 2014-06-28 21:06:10 +02:00
fetchfile
fetchgit build-support: Use mktemp -d in nix-prefetch-*. 2014-08-25 15:28:55 +02:00
fetchgitrevision
fetchhg build-support: Use mktemp -d in nix-prefetch-*. 2014-08-25 15:28:55 +02:00
fetchmtn Fix a few typos 2013-08-11 10:55:53 +00:00
fetchpatch Merge #2630: add and use fetchpatch 2014-05-17 07:31:03 +02:00
fetchsvn build-support: Use mktemp -d in nix-prefetch-*. 2014-08-25 15:28:55 +02:00
fetchsvnrevision
fetchsvnssh
fetchurl Add http mirror for postgresql. 2014-08-14 19:17:26 +02:00
fetchzip require gnused for all prefetch scripts 2014-06-23 01:25:40 -04:00
gcc-cross-wrapper Merge pull request #1928 from 'cross-win-osx'. 2014-04-21 10:00:35 +02:00
gcc-wrapper Fix SNAFU using $NIX_LDFLAGS_AFTER 2014-07-02 14:55:44 +02:00
grsecurity grsecurity: update stable/testing kernels, refactoring 2014-06-22 22:29:10 -05:00
kdewrapper Another attempt to eradicate ensureDir 2014-06-30 14:56:10 +02:00
kernel Document paths-from-graph.pl somewhat. 2014-06-28 20:44:22 -05:00
libredirect hipchat: Fix access to /usr/share/X11/xkb 2014-05-27 01:06:54 +02:00
make-desktopitem
make-startupitem Another attempt to eradicate ensureDir 2014-06-30 14:56:10 +02:00
make-symlinks
mono-dll-fixer
native-darwin-cctools-wrapper
nuke-references
release Make ant-build canonicalize the jars it produces so that we produce byte-for-byte identical jars (they normally contain timestamps and nondeterministic ordering of metadata lines) 2014-08-14 01:20:44 -04:00
setup-hooks Don't hardcode shell, use $SHELL instead 2014-05-26 14:48:39 +01:00
src-only
substitute
upstream-updater Filter out broken-completely links 2014-07-18 17:42:00 +04:00
vm debian: Update to 6.0.10 2014-08-10 15:17:00 +02:00
vsenv
build-pecl.nix Simplify php-packages.nix 2014-07-03 11:01:19 -04:00
replace-dependency.nix replace-dependency: Eelco has ruled, lowerCamelCase > dash-case :( 2013-01-13 11:15:01 -05:00
source-from-head-fun.nix
trivial-builders.nix build-support: Add writeTextDir 2014-03-23 10:05:38 +00:00