mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
powerdns: redact configure flags from version output to reduce closure size
This commit is contained in:
parent
e85e545dbd
commit
fc49bc19ed
2 changed files with 15 additions and 0 deletions
|
@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
|
|||
url = "https://downloads.powerdns.com/releases/pdns-${version}.tar.bz2";
|
||||
sha256 = "sha256-eRKxSIfWKEUYX3zktH21gOqnuLiX3LHJVV3+D6xe+uM=";
|
||||
};
|
||||
# redact configure flags from version output to reduce closure size
|
||||
patches = [ ./version.patch ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
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 a new issue