3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #686 from ocharles/postgres92

Disable exec symlink resolution for PostgreSQL 9.2
This commit is contained in:
Michael Raskin 2013-11-07 02:53:37 -08:00
commit 2b8cdc8434
2 changed files with 16 additions and 0 deletions

View file

@ -16,6 +16,8 @@ stdenv.mkDerivation rec {
makeFlags = [ "world" ];
patches = [ ./disable-resolve_symlinks.patch ];
installTargets = [ "install-world" ];
LC_ALL = "C";

View file

@ -0,0 +1,14 @@
diff --git a/src/port/exec.c b/src/port/exec.c
index c79e8ba..42c4091 100644
--- a/src/port/exec.c
+++ b/src/port/exec.c
@@ -216,6 +216,9 @@ find_my_exec(const char *argv0, char *retpath)
static int
resolve_symlinks(char *path)
{
+ // On NixOS we *want* stuff relative to symlinks.
+ return 0;
+
#ifdef HAVE_READLINK
struct stat buf;
char orig_wd[MAXPGPATH],