mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 21:57:52 +03:00
powerdns: redact configure flags from version output to reduce closure size
This commit is contained in:
parent
e85e545dbd
commit
fc49bc19ed
@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
|
|||||||
url = "https://downloads.powerdns.com/releases/pdns-${version}.tar.bz2";
|
url = "https://downloads.powerdns.com/releases/pdns-${version}.tar.bz2";
|
||||||
sha256 = "sha256-eRKxSIfWKEUYX3zktH21gOqnuLiX3LHJVV3+D6xe+uM=";
|
sha256 = "sha256-eRKxSIfWKEUYX3zktH21gOqnuLiX3LHJVV3+D6xe+uM=";
|
||||||
};
|
};
|
||||||
|
# redact configure flags from version output to reduce closure size
|
||||||
|
patches = [ ./version.patch ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
13
pkgs/servers/dns/powerdns/version.patch
Normal file
13
pkgs/servers/dns/powerdns/version.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/pdns/version.cc b/pdns/version.cc
|
||||||
|
index d8f5d40..1368481 100644
|
||||||
|
--- a/pdns/version.cc
|
||||||
|
+++ b/pdns/version.cc
|
||||||
|
@@ -155,7 +155,7 @@ void showBuildConfiguration()
|
||||||
|
#ifdef PDNS_CONFIG_ARGS
|
||||||
|
#define double_escape(s) #s
|
||||||
|
#define escape_quotes(s) double_escape(s)
|
||||||
|
- g_log<<Logger::Warning<<"Configured with: "<<escape_quotes(PDNS_CONFIG_ARGS)<<endl;
|
||||||
|
+ g_log<<Logger::Warning<<"Configured with: "<<"redacted"<<endl;
|
||||||
|
#undef escape_quotes
|
||||||
|
#undef double_escape
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user