groff: Fix reproducibility issue
PATCH 1/1 groff: Fix reproducibility issue
groff chooses a default papersize depending on the value from /etc/papersize and failing that, the search domain in /etc/resolv.conf based on the comment in configure:
"""
If the top-level domain is two letters and it's not 'us' or 'ca' then they probably use A4 paper.
"""
Oddly, my system sets to "a4" in /etc/papersize which means it defaults to "letter" since its != "A4".
These defaults ripple through to cause the output of man-db to change depending on which default value was selected.
To resolve this, set a default of "A4" since that covers the larger population of the two default values.
--- meta/recipes-extended/groff/groff_1.22.4.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/groff/groff_1.22.4.bb +1 -1
@@ -28,7 +28,7 @@ MULTILIB_SCRIPTS = "${PN}:${bindir}/gpinyin ${PN}:${bindir}/groffer ${PN}:${bind EXTRA_OECONF = "--without-x --without-doc" PARALLEL_MAKE = "" -CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl' ac_cv_path_BASH_PROG='no'" +CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl' ac_cv_path_BASH_PROG='no' PAGE=A4" do_install_append() { # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location
Signature · 1 line
2.27.0
Quoted 10 lines · Richard Purdie
groff chooses a default papersize depending on the value from
/etc/papersizeand failing that, the search domain in/etc/resolv.confbased on the comment in configure:"""
If the top-level domain is two letters and it's not 'us' or 'ca' then they probably use A4 paper.
"""
Quoted 5 lines
Oddly, my system sets to "a4" in
/etc/papersizewhich means it defaults to "letter" since its != "A4".These defaults ripple through to cause the output of man-db to change depending on which default value was selected.
Nice catch! I just ran into the man-db reproducibility error this morning while testing dunfell world reproducibility. Now I can remove man-db from the exclusion list :-)
Steve
Quoted 27 lines
To resolve this, set a default of "A4" since that covers the larger population of the two default values.
Signed-off-by Richard Purdie <[email protected]>--- meta/recipes-extended/groff/groff_1.22.4.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-extended/groff/groff_1.22.4.bb +1
-2@@ -28,7 +28,7 @@ MULTILIB_SCRIPTS = "${PN}:${bindir}/gpinyin ${PN}:${bindir}/groffer ${PN}:${bind EXTRA_OECONF = "--without-x --without-doc" PARALLEL_MAKE = "" -CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl' ac_cv_path_BASH_PROG='no'" +CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl' ac_cv_path_BASH_PROG='no' PAGE=A4" do_install_append() { # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location --2.27.0