|
|
8ba9e1 |
From e6f7c9d4c2af1cda7760ca8155166bb5d4d541d0 Mon Sep 17 00:00:00 2001
|
|
|
8ba9e1 |
From: Alexander Scheel <ascheel@redhat.com>
|
|
|
8ba9e1 |
Date: Wed, 8 May 2019 12:58:02 -0400
|
|
|
8ba9e1 |
Subject: [PATCH] Don't generate certificates in reproducible builds
|
|
|
8ba9e1 |
|
|
|
8ba9e1 |
Signed-off-by: Alexander Scheel <ascheel@redhat.com>
|
|
|
8ba9e1 |
---
|
|
|
8ba9e1 |
Make.inc.in | 5 +++++
|
|
|
8ba9e1 |
configure | 4 ++++
|
|
|
8ba9e1 |
configure.ac | 3 +++
|
|
|
8ba9e1 |
raddb/all.mk | 4 ++++
|
|
|
8ba9e1 |
4 files changed, 16 insertions(+)
|
|
|
8ba9e1 |
|
|
|
8ba9e1 |
diff --git a/Make.inc.in b/Make.inc.in
|
|
|
8ba9e1 |
index 0b2cd74de8..8c623cf95c 100644
|
|
|
8ba9e1 |
--- a/Make.inc.in
|
|
|
8ba9e1 |
+++ b/Make.inc.in
|
|
|
8ba9e1 |
@@ -173,3 +173,8 @@ else
|
|
|
8ba9e1 |
TESTBINDIR = ./$(BUILD_DIR)/bin
|
|
|
8ba9e1 |
TESTBIN = ./$(BUILD_DIR)/bin
|
|
|
8ba9e1 |
endif
|
|
|
8ba9e1 |
+
|
|
|
8ba9e1 |
+#
|
|
|
8ba9e1 |
+# With reproducible builds, do not generate certificates during installation
|
|
|
8ba9e1 |
+#
|
|
|
8ba9e1 |
+ENABLE_REPRODUCIBLE_BUILDS = @ENABLE_REPRODUCIBLE_BUILDS@
|
|
|
8ba9e1 |
diff --git a/configure b/configure
|
|
|
8ba9e1 |
index c2c599c92b..3d4403a844 100755
|
|
|
8ba9e1 |
--- a/configure
|
|
|
8ba9e1 |
+++ b/configure
|
|
|
8ba9e1 |
@@ -655,6 +655,7 @@ RUSERS
|
|
|
8ba9e1 |
SNMPWALK
|
|
|
8ba9e1 |
SNMPGET
|
|
|
8ba9e1 |
PERL
|
|
|
8ba9e1 |
+ENABLE_REPRODUCIBLE_BUILDS
|
|
|
8ba9e1 |
openssl_version_check_config
|
|
|
8ba9e1 |
WITH_DHCP
|
|
|
8ba9e1 |
modconfdir
|
|
|
8ba9e1 |
@@ -5586,6 +5587,7 @@ else
|
|
|
8ba9e1 |
fi
|
|
|
8ba9e1 |
|
|
|
8ba9e1 |
|
|
|
8ba9e1 |
+ENABLE_REPRODUCIBLE_BUILDS=yes
|
|
|
8ba9e1 |
# Check whether --enable-reproducible-builds was given.
|
|
|
8ba9e1 |
if test "${enable_reproducible_builds+set}" = set; then :
|
|
|
8ba9e1 |
enableval=$enable_reproducible_builds; case "$enableval" in
|
|
|
8ba9e1 |
@@ -5597,6 +5599,7 @@ $as_echo "#define ENABLE_REPRODUCIBLE_BUILDS 1" >>confdefs.h
|
|
|
8ba9e1 |
;;
|
|
|
8ba9e1 |
*)
|
|
|
8ba9e1 |
reproducible_builds=no
|
|
|
8ba9e1 |
+ ENABLE_REPRODUCIBLE_BUILDS=no
|
|
|
8ba9e1 |
esac
|
|
|
8ba9e1 |
|
|
|
8ba9e1 |
fi
|
|
|
8ba9e1 |
@@ -5604,6 +5607,7 @@ fi
|
|
|
8ba9e1 |
|
|
|
8ba9e1 |
|
|
|
8ba9e1 |
|
|
|
8ba9e1 |
+
|
|
|
8ba9e1 |
CHECKRAD=checkrad
|
|
|
8ba9e1 |
# Extract the first word of "perl", so it can be a program name with args.
|
|
|
8ba9e1 |
set dummy perl; ac_word=$2
|
|
|
8ba9e1 |
diff --git a/configure.ac b/configure.ac
|
|
|
8ba9e1 |
index a7abf0025a..35b013f4af 100644
|
|
|
8ba9e1 |
--- a/configure.ac
|
|
|
8ba9e1 |
+++ b/configure.ac
|
|
|
8ba9e1 |
@@ -619,6 +619,7 @@ AC_SUBST([openssl_version_check_config])
|
|
|
8ba9e1 |
dnl #
|
|
|
8ba9e1 |
dnl # extra argument: --enable-reproducible-builds
|
|
|
8ba9e1 |
dnl #
|
|
|
8ba9e1 |
+ENABLE_REPRODUCIBLE_BUILDS=yes
|
|
|
8ba9e1 |
AC_ARG_ENABLE(reproducible-builds,
|
|
|
8ba9e1 |
[AS_HELP_STRING([--enable-reproducible-builds],
|
|
|
8ba9e1 |
[ensure the build does not change each time])],
|
|
|
8ba9e1 |
@@ -630,8 +631,10 @@ AC_ARG_ENABLE(reproducible-builds,
|
|
|
8ba9e1 |
;;
|
|
|
8ba9e1 |
*)
|
|
|
8ba9e1 |
reproducible_builds=no
|
|
|
8ba9e1 |
+ ENABLE_REPRODUCIBLE_BUILDS=no
|
|
|
8ba9e1 |
esac ]
|
|
|
8ba9e1 |
)
|
|
|
8ba9e1 |
+AC_SUBST(ENABLE_REPRODUCIBLE_BUILDS)
|
|
|
8ba9e1 |
|
|
|
8ba9e1 |
|
|
|
8ba9e1 |
dnl #############################################################
|
|
|
8ba9e1 |
diff --git a/raddb/all.mk b/raddb/all.mk
|
|
|
8ba9e1 |
index c966edd657..c8e976a499 100644
|
|
|
8ba9e1 |
--- a/raddb/all.mk
|
|
|
8ba9e1 |
+++ b/raddb/all.mk
|
|
|
8ba9e1 |
@@ -124,7 +124,11 @@ $(R)$(raddbdir)/users: $(R)$(modconfdir)/files/authorize
|
|
|
8ba9e1 |
ifneq "$(LOCAL_CERT_PRODUCTS)" ""
|
|
|
8ba9e1 |
$(LOCAL_CERT_PRODUCTS):
|
|
|
8ba9e1 |
@echo BOOTSTRAP raddb/certs/
|
|
|
8ba9e1 |
+ifeq "$(ENABLE_REPRODUCIBLE_BUILDS)" "yes"
|
|
|
8ba9e1 |
+ @$(MAKE) -C $(R)$(raddbdir)/certs/ passwords.mk
|
|
|
8ba9e1 |
+else
|
|
|
8ba9e1 |
@$(MAKE) -C $(R)$(raddbdir)/certs/
|
|
|
8ba9e1 |
+endif
|
|
|
8ba9e1 |
|
|
|
8ba9e1 |
# Bootstrap is special
|
|
|
8ba9e1 |
$(R)$(raddbdir)/certs/bootstrap: | raddb/certs/bootstrap $(LOCAL_CERT_PRODUCTS)
|
|
|
8ba9e1 |
--
|
|
|
8ba9e1 |
2.21.0
|
|
|
8ba9e1 |
|