2019-05-08 17:58:05 +00:00
|
|
|
From e6f7c9d4c2af1cda7760ca8155166bb5d4d541d0 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Alexander Scheel <ascheel@redhat.com>
|
|
|
|
Date: Wed, 8 May 2019 12:58:02 -0400
|
|
|
|
Subject: [PATCH] Don't generate certificates in reproducible builds
|
|
|
|
|
|
|
|
Signed-off-by: Alexander Scheel <ascheel@redhat.com>
|
|
|
|
---
|
|
|
|
Make.inc.in | 5 +++++
|
2022-07-19 14:39:00 +00:00
|
|
|
configure | 3 +++
|
2019-05-08 17:58:05 +00:00
|
|
|
configure.ac | 3 +++
|
|
|
|
raddb/all.mk | 4 ++++
|
2022-07-19 14:39:00 +00:00
|
|
|
4 files changed, 15 insertions(+)
|
2019-05-08 17:58:05 +00:00
|
|
|
|
|
|
|
diff --git a/Make.inc.in b/Make.inc.in
|
|
|
|
index 0b2cd74de8..8c623cf95c 100644
|
|
|
|
--- a/Make.inc.in
|
|
|
|
+++ b/Make.inc.in
|
2021-06-04 15:12:24 +00:00
|
|
|
@@ -174,6 +174,10 @@ else
|
2019-05-08 17:58:05 +00:00
|
|
|
TESTBIN = ./$(BUILD_DIR)/bin
|
|
|
|
endif
|
2021-06-04 15:12:24 +00:00
|
|
|
|
2019-05-08 17:58:05 +00:00
|
|
|
+#
|
|
|
|
+# With reproducible builds, do not generate certificates during installation
|
|
|
|
+#
|
|
|
|
+ENABLE_REPRODUCIBLE_BUILDS = @ENABLE_REPRODUCIBLE_BUILDS@
|
2021-06-04 15:12:24 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# For creating documentation via doc/all.mk
|
2019-05-08 17:58:05 +00:00
|
|
|
diff --git a/configure b/configure
|
2023-10-24 12:16:56 +00:00
|
|
|
index 5041ca264f..ed01ee2bdd 100755
|
2019-05-08 17:58:05 +00:00
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
2023-10-24 12:16:56 +00:00
|
|
|
@@ -679,6 +679,7 @@ AUTOCONF
|
2022-07-19 14:39:00 +00:00
|
|
|
ACLOCAL
|
2021-06-04 15:12:24 +00:00
|
|
|
RUSERS
|
2019-05-08 17:58:05 +00:00
|
|
|
SNMPWALK
|
|
|
|
+ENABLE_REPRODUCIBLE_BUILDS
|
2022-07-19 14:39:00 +00:00
|
|
|
SNMPGET
|
2019-05-08 17:58:05 +00:00
|
|
|
openssl_version_check_config
|
|
|
|
WITH_DHCP
|
2023-10-24 12:16:56 +00:00
|
|
|
@@ -6976,6 +6977,7 @@ fi
|
|
|
|
|
2019-05-08 17:58:05 +00:00
|
|
|
|
|
|
|
# Check whether --enable-reproducible-builds was given.
|
2023-10-24 12:16:56 +00:00
|
|
|
+ENABLE_REPRODUCIBLE_BUILDS=yes
|
|
|
|
if test ${enable_reproducible_builds+y}
|
|
|
|
then :
|
2022-10-17 11:25:03 +00:00
|
|
|
enableval=$enable_reproducible_builds; case "$enableval" in
|
2023-10-24 12:16:56 +00:00
|
|
|
@@ -6987,6 +6989,7 @@ printf "%s\n" "#define ENABLE_REPRODUCIBLE_BUILDS 1" >>confdefs.h
|
2019-05-08 17:58:05 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
reproducible_builds=no
|
|
|
|
+ ENABLE_REPRODUCIBLE_BUILDS=no
|
|
|
|
esac
|
|
|
|
|
|
|
|
fi
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
2021-09-30 10:30:36 +00:00
|
|
|
index ce4d9b0ae5..790cbf02a0 100644
|
2019-05-08 17:58:05 +00:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2021-09-30 10:30:36 +00:00
|
|
|
@@ -697,6 +697,7 @@ AC_SUBST([openssl_version_check_config])
|
2019-05-08 17:58:05 +00:00
|
|
|
dnl #
|
|
|
|
dnl # extra argument: --enable-reproducible-builds
|
|
|
|
dnl #
|
|
|
|
+ENABLE_REPRODUCIBLE_BUILDS=yes
|
|
|
|
AC_ARG_ENABLE(reproducible-builds,
|
|
|
|
[AS_HELP_STRING([--enable-reproducible-builds],
|
|
|
|
[ensure the build does not change each time])],
|
2021-09-30 10:30:36 +00:00
|
|
|
@@ -708,8 +709,10 @@ AC_ARG_ENABLE(reproducible-builds,
|
2019-05-08 17:58:05 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
reproducible_builds=no
|
|
|
|
+ ENABLE_REPRODUCIBLE_BUILDS=no
|
|
|
|
esac ]
|
|
|
|
)
|
|
|
|
+AC_SUBST(ENABLE_REPRODUCIBLE_BUILDS)
|
|
|
|
|
2021-09-30 10:30:36 +00:00
|
|
|
dnl #
|
|
|
|
dnl # Enable the -fsanitize=fuzzer and link in the address sanitizer
|
|
|
|
|
|
|
|
|
2019-05-08 17:58:05 +00:00
|
|
|
|
|
|
|
dnl #############################################################
|
|
|
|
diff --git a/raddb/all.mk b/raddb/all.mk
|
|
|
|
index c966edd657..c8e976a499 100644
|
|
|
|
--- a/raddb/all.mk
|
|
|
|
+++ b/raddb/all.mk
|
|
|
|
@@ -124,7 +124,11 @@ $(R)$(raddbdir)/users: $(R)$(modconfdir)/files/authorize
|
|
|
|
ifneq "$(LOCAL_CERT_PRODUCTS)" ""
|
|
|
|
$(LOCAL_CERT_PRODUCTS):
|
|
|
|
@echo BOOTSTRAP raddb/certs/
|
|
|
|
+ifeq "$(ENABLE_REPRODUCIBLE_BUILDS)" "yes"
|
|
|
|
+ @$(MAKE) -C $(R)$(raddbdir)/certs/ passwords.mk
|
|
|
|
+else
|
|
|
|
@$(MAKE) -C $(R)$(raddbdir)/certs/
|
|
|
|
+endif
|
|
|
|
|
|
|
|
# Bootstrap is special
|
|
|
|
$(R)$(raddbdir)/certs/bootstrap: | raddb/certs/bootstrap $(LOCAL_CERT_PRODUCTS)
|
|
|
|
--
|
|
|
|
2.21.0
|
|
|
|
|