Unfortunately, I got distracted from reporting back on this again.  Sorting 
AUXLIBS is also needed to make things reproducible:

Index: postfix/makedefs
===================================================================
--- postfix.orig/makedefs
+++ postfix/makedefs
@@ -215,7 +215,7 @@ echo "#---------------------------------
 echo "# Start of summary of user-configurable 'make makefiles' options."
 echo "# CCARGS=$CCARGS"
 echo "# AUXLIBS=$AUXLIBS"
-env | grep '^AUXLIBS_' | sed 's/^/# /'
+env | grep '^AUXLIBS_' | sed 's/^/# /' | sort
 echo "# shared=$shared"
 echo "# dynamicmaps=$dynamicmaps"
 echo "# pie=$pie"

It would be great if you could apply this in a future release.

Thanks,

Scott K

On Tuesday, January 30, 2024 9:14:09 AM EDT Wietse Venema via Postfix-users 
wrote:
> Scott Kitterman via Postfix-users:
> > In case anyone is unfamiliar, you can read about reproducible builds here:
> > reproducible-builds.org
> > 
> > It looks like Postfix as shipped is very close to being reproducible.  We
> > got positive results on reproducibility with the patch below added.  Is
> > this something you could include in a future release?
> 
> I have "LC_ALL=C" at the top of many shell files, but forgot the
> makedefs script. Can you confirm that this fixes the problem?
> 
> Doing "LC_ALL=C" in the middle of one command means we can re-introduce
> the problem again with some other change.
> 
>       Wietse
> 
> --- /var/tmp/postfix-3.9-20240129/makedefs    2024-01-04 12:50:28.000000000
> -0500 +++ ./makedefs  2024-01-30 09:05:47.198434044 -0500
> @@ -184,6 +184,8 @@
>  #    New York, NY 10011, USA
>  #--
> 
> +LC_ALL=C; export LC_ALL
> +
>  # By now all shells must have functions.
> 
>  error() {
> 
> > Scott K
> > 
> > diff --git a/makedefs b/makedefs
> > index d9dc529..2b376b3 100644
> > --- a/makedefs
> > +++ b/makedefs
> > @@ -211,7 +211,7 @@ echo
> > "#----------------------------------------------------------------"
> > 
> >  echo "# Start of summary of user-configurable 'make makefiles' options."
> >  echo "# CCARGS=$CCARGS"
> >  echo "# AUXLIBS=$AUXLIBS"
> > 
> > -env | grep '^AUXLIBS_' | sed 's/^/# /'
> > +env | grep '^AUXLIBS_' | sed 's/^/# /' | LC_ALL=C sort
> > 
> >  echo "# shared=$shared"
> >  echo "# dynamicmaps=$dynamicmaps"
> >  echo "# pie=$pie"
> > 
> > _______________________________________________
> > Postfix-users mailing list -- postfix-users@postfix.org
> > To unsubscribe send an email to postfix-users-le...@postfix.org
> 
> _______________________________________________
> Postfix-users mailing list -- postfix-users@postfix.org
> To unsubscribe send an email to postfix-users-le...@postfix.org




_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to