From 69a298a775af26dbf8aab2c9defce9fccc9eb983 Mon Sep 17 00:00:00 2001 From: Colton Willey Date: Tue, 27 Jan 2026 13:39:57 -0800 Subject: [PATCH 1/4] debian/rules: Add --enable-seed-src to configure Enable seed-src support in the debian package build by adding --enable-seed-src to both configure paths in override_dh_auto_configure. Co-Authored-By: Claude Opus 4.5 --- debian/rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index c4751089..86fd1b59 100755 --- a/debian/rules +++ b/debian/rules @@ -57,9 +57,9 @@ override_dh_auto_configure: # ensure only our .pc dirs are searched: \ PKG_CONFIG_DIR= PKG_CONFIG_PATH= \ PKG_CONFIG_LIBDIR="$(PKG_CONFIG_LIBDIR)" \ - dh_auto_configure -- $(DEBUG_FLAG); \ + dh_auto_configure -- $(DEBUG_FLAG) --enable-seed-src; \ else \ - ./configure $(DEBUG_FLAG); \ + ./configure $(DEBUG_FLAG) --enable-seed-src; \ fi override_dh_auto_build: From 628787cfaba7ba939ceb055d0eeef011f9228267 Mon Sep 17 00:00:00 2001 From: Colton Willey Date: Tue, 27 Jan 2026 14:39:29 -0800 Subject: [PATCH 2/4] Fix unused variable warning in wp_seed_src.c Wrap g_seed_cb_registered declaration in #ifdef WC_RNG_SEED_CB since the variable is only used when that macro is defined. This fixes the -Werror build failure due to unused-variable warning. Co-Authored-By: Claude Opus 4.5 --- src/wp_seed_src.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp_seed_src.c b/src/wp_seed_src.c index c6704c2d..fd4b3dad 100644 --- a/src/wp_seed_src.c +++ b/src/wp_seed_src.c @@ -71,7 +71,9 @@ static XFILE g_urandom_file = XBADFILE; /* * Flag indicating whether the seed callback has been registered. */ +#ifdef WC_RNG_SEED_CB static int g_seed_cb_registered = 0; +#endif /** * wolfSSL seed callback that uses the cached /dev/urandom file. From e31cb207edd5c1b8258661df6f264d858b6d6732 Mon Sep 17 00:00:00 2001 From: Colton Willey Date: Mon, 16 Feb 2026 13:30:19 -0800 Subject: [PATCH 3/4] debian/rules: Enable debug-silent by default for debug builds Debug builds now use --enable-debug-silent so logging is compiled in but silent by default. Users can activate logging at runtime via WOLFPROV_LOG_LEVEL and WOLFPROV_LOG_COMPONENTS environment variables. Co-Authored-By: Claude Opus 4.6 --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 86fd1b59..4107443f 100755 --- a/debian/rules +++ b/debian/rules @@ -37,7 +37,7 @@ ifeq ($(WOLFPROV_DEBUG),1) VARIANT := $(VARIANT)-debug VARIANT_DESC := $(VARIANT_DESC) with debug logs VERSION := $(VERSION)-debug - DEBUG_FLAG := --enable-debug + DEBUG_FLAG := --enable-debug --enable-debug-silent endif ifeq ($(DEB_CFLAGS_APPEND),) From cd4a1348ff65e6a58861461c01f8d4c94c0e5437 Mon Sep 17 00:00:00 2001 From: Colton Willey Date: Mon, 16 Feb 2026 14:51:36 -0800 Subject: [PATCH 4/4] install-wolfprov.sh: Pass WOLFPROV_DEBUG through to dpkg-buildpackage Without -eWOLFPROV_DEBUG, the debug flag was not visible to debian/rules during package build, so debug variants were never produced. Co-Authored-By: Claude Opus 4.6 --- debian/install-wolfprov.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/install-wolfprov.sh b/debian/install-wolfprov.sh index 99432df8..c0857841 100755 --- a/debian/install-wolfprov.sh +++ b/debian/install-wolfprov.sh @@ -100,6 +100,7 @@ wolfprov_build() { WOLFSSL_ISFIPS=${WOLFSSL_ISFIPS:-0} dpkg-buildpackage -us -uc \ -eWOLFSSL_ISFIPS \ + -eWOLFPROV_DEBUG \ -eCC -eCXX \ -eCCACHE_DIR -eCCACHE_BASEDIR -eCCACHE_NOHASHDIR -eCCACHE_COMPILERCHECK