]> code.ossystems Code Review - openembedded-core.git/commitdiff
groff: Fix reproducibility issue
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Dec 2020 17:11:52 +0000 (17:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Dec 2020 22:29:08 +0000 (22:29 +0000)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/groff/groff_1.22.4.bb

index e39847834969b52cd009690eca986278487a80dd..0867452ce7b00885aba9fd6b9066e8583db25774 100644 (file)
@@ -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