Revert "fix: Build static postgrest with GSSAPI support"
This reverts commit c94aa9ccd9.
This commit is contained in:
@@ -26,7 +26,6 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- #2815, Build static executable with GSSAPI support - @wolfgangwalther
|
|
||||||
- #3237, Dump media handlers and timezones with --dump-schema - @wolfgangwalther
|
- #3237, Dump media handlers and timezones with --dump-schema - @wolfgangwalther
|
||||||
- #3323, #3324, Don't hide error on LISTEN channel failure - @steve-chavez
|
- #3323, #3324, Don't hide error on LISTEN channel failure - @steve-chavez
|
||||||
- #3330, Incorrect admin server `/ready` response on slow schema cache loads - @steve-chavez
|
- #3330, Incorrect admin server `/ready` response on slow schema cache loads - @steve-chavez
|
||||||
|
|||||||
+1
-9
@@ -10,7 +10,6 @@
|
|||||||
, lib
|
, lib
|
||||||
, openssl
|
, openssl
|
||||||
, zlib
|
, zlib
|
||||||
, libkrb5
|
|
||||||
, postgresql
|
, postgresql
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, tzdata
|
, tzdata
|
||||||
@@ -24,14 +23,13 @@ stdenv.mkDerivation {
|
|||||||
"--without-gssapi"
|
"--without-gssapi"
|
||||||
"--without-icu"
|
"--without-icu"
|
||||||
"--without-readline"
|
"--without-readline"
|
||||||
"--with-gssapi"
|
|
||||||
"--with-openssl"
|
"--with-openssl"
|
||||||
"--with-system-tzdata=${tzdata}/share/zoneinfo"
|
"--with-system-tzdata=${tzdata}/share/zoneinfo"
|
||||||
"--sysconfdir=/etc/postgresql"
|
"--sysconfdir=/etc/postgresql"
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config tzdata ];
|
nativeBuildInputs = [ pkg-config tzdata ];
|
||||||
buildInputs = [ libkrb5 openssl zlib ];
|
buildInputs = [ openssl zlib ];
|
||||||
|
|
||||||
buildFlags = [ "submake-libpq" "submake-libpgport" ];
|
buildFlags = [ "submake-libpq" "submake-libpgport" ];
|
||||||
|
|
||||||
@@ -49,12 +47,6 @@ stdenv.mkDerivation {
|
|||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# To avoid linking errors in the static build with gssapi
|
|
||||||
postInstall = ''
|
|
||||||
substituteInPlace $out/lib/pkgconfig/libpq.pc\
|
|
||||||
--replace "Requires.private:" "Requires.private: krb5-gssapi,"
|
|
||||||
'';
|
|
||||||
|
|
||||||
outputs = [ "out" ];
|
outputs = [ "out" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|||||||
+1
-13
@@ -29,19 +29,7 @@ let
|
|||||||
# derivation is built with static libraries anyway.
|
# derivation is built with static libraries anyway.
|
||||||
libraryPkgconfigDepends = [ pkgsCross.libpq ];
|
libraryPkgconfigDepends = [ pkgsCross.libpq ];
|
||||||
}).overrideAttrs (_: prevAttrs: {
|
}).overrideAttrs (_: prevAttrs: {
|
||||||
buildInputs = prevAttrs.buildInputs ++ [
|
buildInputs = prevAttrs.buildInputs ++ [ pkgsStatic.openssl ];
|
||||||
(pkgsStatic.libkrb5.overrideAttrs (_: prevAttrs: {
|
|
||||||
configureFlags = prevAttrs.configureFlags ++ [
|
|
||||||
"--sysconfdir=/etc"
|
|
||||||
# disable keyutils dependency, to avoid linking errors
|
|
||||||
"--without-keyutils"
|
|
||||||
];
|
|
||||||
|
|
||||||
postInstall = prevAttrs.postInstall + ''
|
|
||||||
${pkgsStatic.pkgsBuildHost.removeReferencesTo}/bin/remove-references-to -t $out $out/lib/*.a
|
|
||||||
'';
|
|
||||||
}))
|
|
||||||
];
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user