Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 651958

Summary: [Future EAPI] econf should pass --datarootdir
Product: Gentoo Hosted Projects Reporter: Michał Górny <mgorny>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Status: RESOLVED FIXED    
Severity: enhancement CC: esigra, pacho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/portage/pull/637
Whiteboard: in-eapi-8
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174380    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-03-30 03:03:49 UTC
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.
Comment 1 Ulrich Müller gentoo-dev 2019-03-04 08:15:35 UTC
The value passed would be the same as for --datadir, i.e. "${EPREFIX}/usr/share"?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-03-04 09:59:43 UTC
Yes.
Comment 3 Larry the Git Cow gentoo-dev 2021-06-13 19:19:02 UTC
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(-)