Nick Cao
2025-12-27 10:14:17 -05:00
parent 5704f5a44e
commit 27d0a43177
2 changed files with 7 additions and 9 deletions
+3 -3
View File
@@ -24,11 +24,11 @@
stdenv.mkDerivation (finalAttrs: {
pname = "pdns";
version = "4.9.8";
version = "5.0.0";
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-${finalAttrs.version}.tar.bz2";
hash = "sha256-GAtmrjMtMWaWjgE7/3y/bwxyhp1r5pfbdKAt86xuipE=";
hash = "sha256-DczjVdl6mazvwdRdY8EX2VIUmGfceYMjb378ngQbCjA=";
};
# redact configure flags from version output to reduce closure size
patches = [ ./version.patch ];
@@ -57,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.enableFeature stdenv.hostPlatform.is32bit "experimental-64bit-time_t-support-on-glibc")
(lib.enableFeature false "silent-rules")
(lib.enableFeature true "dns-over-tls")
(lib.enableFeature true "unit-tests")
(lib.enableFeature finalAttrs.finalPackage.doCheck "unit-tests")
(lib.enableFeature true "reproducible")
(lib.enableFeature true "tools")
(lib.enableFeature true "ixfrdist")
+4 -6
View File
@@ -1,13 +1,11 @@
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
@@ -180,7 +180,7 @@ string getBuildConfiguration()
#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;
// NOLINTEND(cppcoreguidelines-macro-usage)
- ret << "Configured with: " << escape_quotes(PDNS_CONFIG_ARGS) << endl;
+ ret << "Configured with: " << "redacted to reduce closure size" << endl;
#undef escape_quotes
#undef double_escape
#endif