This variable has been apparently added in autoconf 2.60 which would explain why it's not in PMS. The idea is that datadir is the directory where program expects to find its own data while datarootdir is the one where 'global' data files are installed (l10n, desktop files, manpages etc.) Passing it normally wouldn't make a difference. It would for packages where we are overriding --prefix and that are installing datarootdir files other than info/man. So it's mostly a change for consistency rather than actual gain.
The value passed would be the same as for --datadir, i.e. "${EPREFIX}/usr/share"?
Yes.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/pms.git/commit/?id=5001b56490c821aa8e77f67f9e9bb62e804fa129 commit 5001b56490c821aa8e77f67f9e9bb62e804fa129 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2019-12-24 09:46:26 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2021-06-05 08:55:38 +0000 EAPI 8 has econf passing --datarootdir Bug: https://bugs.gentoo.org/651958 Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org> eapi-differences.tex | 3 ++- pkg-mgr-commands.tex | 17 +++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-)