Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575890 - Cleanup XDG_ environment variables as xdg-utils.eclass do in eapi7 and newer
Summary: Cleanup XDG_ environment variables as xdg-utils.eclass do in eapi7 and newer
Status: RESOLVED DUPLICATE of bug 444568
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-28 11:11 UTC by Pacho Ramos
Modified: 2016-02-28 13:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***