diff options
| author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-03-27 18:03:39 +0000 |
|---|---|---|
| committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-03-27 18:03:39 +0000 |
| commit | 5995f80395907d5252bf7df032fc70526e4ad0d3 (patch) | |
| tree | e0f1170d5bbe754dabd207b77b4732addcddfea6 | |
| parent | svn path=/nixpkgs/branches/purity-test/; revision=11311 (diff) | |
| download | nixpkgs-origin/purity-test.tar.gz | |
* Doh.origin/purity-test
svn path=/nixpkgs/branches/purity-test/; revision=11312
| -rw-r--r-- | pkgs/development/tools/misc/binutils/ar-purity.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/binutils/ar-purity.patch b/pkgs/development/tools/misc/binutils/ar-purity.patch new file mode 100644 index 000000000000..f2a315ca4d18 --- /dev/null +++ b/pkgs/development/tools/misc/binutils/ar-purity.patch @@ -0,0 +1,19 @@ +diff -rc binutils-2.18/bfd/archive.c binutils-2.18-new/bfd/archive.c +*** binutils-2.18/bfd/archive.c 2007-08-06 21:59:14.000000000 +0200 +--- binutils-2.18-new/bfd/archive.c 2008-03-27 13:17:55.000000000 +0100 +*************** +*** 1383,1388 **** +--- 1383,1395 ---- + return NULL; + } + ++ char * envvar = getenv("NIX_AR_FORCE_PURITY"); ++ if (envvar && strcmp(envvar, "1") == 0) { ++ status.st_mtime = 0; ++ status.st_uid = 0; ++ status.st_gid = 0; ++ } ++ + amt = sizeof (struct ar_hdr) + sizeof (struct areltdata); + ared = bfd_zalloc (abfd, amt); + if (ared == NULL) |
