1 diff -Naur a/configure b/configure
2 --- a/configure 2021-06-10 16:49:17.000000000 +0200
3 +++ b/configure 2021-08-19 11:14:56.964232407 +0200
8 +ENABLE_REPRODUCIBLE_BUILDS
9 openssl_version_check_config
16 +ENABLE_REPRODUCIBLE_BUILDS=yes
17 # Check whether --enable-reproducible-builds was given.
18 if test "${enable_reproducible_builds+set}" = set; then :
19 enableval=$enable_reproducible_builds; case "$enableval" in
23 reproducible_builds=no
24 + ENABLE_REPRODUCIBLE_BUILDS=no
28 diff -Naur a/configure.ac b/configure.ac
29 --- a/configure.ac 2021-06-10 16:49:17.000000000 +0200
30 +++ b/configure.ac 2021-08-19 11:17:10.786259778 +0200
33 dnl # extra argument: --enable-reproducible-builds
35 +ENABLE_REPRODUCIBLE_BUILDS=yes
36 AC_ARG_ENABLE(reproducible-builds,
37 [AS_HELP_STRING([--enable-reproducible-builds],
38 [ensure the build does not change each time])],
42 reproducible_builds=no
43 + ENABLE_REPRODUCIBLE_BUILDS=no
46 +AC_SUBST(ENABLE_REPRODUCIBLE_BUILDS)
49 dnl #############################################################
50 diff -Naur a/Make.inc.in b/Make.inc.in
51 --- a/Make.inc.in 2021-06-10 16:49:17.000000000 +0200
52 +++ b/Make.inc.in 2021-08-19 10:56:52.236404050 +0200
54 TESTBIN = ./$(BUILD_DIR)/bin
58 +# With reproducible builds, do not generate certificates during installation
60 +ENABLE_REPRODUCIBLE_BUILDS = @ENABLE_REPRODUCIBLE_BUILDS@
63 # For creating documentation via doc/all.mk
64 diff -Naur a/raddb/all.mk b/raddb/all.mk
65 --- a/raddb/all.mk 2021-06-10 16:49:17.000000000 +0200
66 +++ b/raddb/all.mk 2021-08-19 11:18:58.640674802 +0200
68 ifneq "$(LOCAL_CERT_PRODUCTS)" ""
69 $(LOCAL_CERT_PRODUCTS):
70 @echo BOOTSTRAP raddb/certs/
71 +ifeq "$(ENABLE_REPRODUCIBLE_BUILDS)" "yes"
72 + @$(MAKE) -C $(R)$(raddbdir)/certs/ passwords.mk
74 @$(MAKE) -C $(R)$(raddbdir)/certs/
77 # Bootstrap is special
78 $(R)$(raddbdir)/certs/bootstrap: | raddb/certs/bootstrap $(LOCAL_CERT_PRODUCTS)