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

Bug 575890

Summary: Cleanup XDG_ environment variables as xdg-utils.eclass do in eapi7 and newer
Product: Gentoo Hosted Projects Reporter: Pacho Ramos <pacho>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gnome
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=567192
Whiteboard:
Package list:
Runtime testing required: ---

Description Pacho Ramos gentoo-dev 2016-02-28 11:11:08 UTC
We would like to finally get this variables cleaned by PM instead of needing to find by try&error the failing packages and make then use xdg eclasses manually

In summary, we need to get this run before compiling:
        # Prepare XDG base directories
        export XDG_DATA_HOME="${HOME}/.local/share"
        export XDG_CONFIG_HOME="${HOME}/.config"
        export XDG_CACHE_HOME="${HOME}/.cache"
        export XDG_RUNTIME_DIR="${T}/run"
        mkdir -p "${XDG_DATA_HOME}" "${XDG_CONFIG_HOME}" "${XDG_CACHE_HOME}" \
                "${XDG_RUNTIME_DIR}" || die
        # This directory needs to be owned by the user, and chmod 0700
        # http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
        chmod 0700 "${XDG_RUNTIME_DIR}" || die

        unset DBUS_SESSION_BUS_ADDRESS

Thanks
Comment 1 Ulrich Müller gentoo-dev 2016-02-28 13:10:34 UTC

*** This bug has been marked as a duplicate of bug 444568 ***