app-office/libreoffice: Use xdg-utils.eclass to cleanup XDG_* env
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Sat, 13 Aug 2016 08:48:08 +0000 (10:48 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 17 Sep 2016 21:32:12 +0000 (23:32 +0200)
...causing sandbox violation.

Gentoo-bug: 588158

Package-Manager: portage-2.2.28

app-office/libreoffice/libreoffice-5.1.4.2.ebuild
app-office/libreoffice/libreoffice-5.2.9999.ebuild
app-office/libreoffice/libreoffice-9999.ebuild

index ac6f331a6731af5c1e9ebcf00b87fb4d044a593b..49088e7326944a45836ea9a0778c663f28cbaec6 100644 (file)
@@ -25,7 +25,7 @@ BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
 # PATCHSET="${P}-patchset-01.tar.xz"
 
 [[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
-inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator ${SCM_ECLASS}
+inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator xdg-utils ${SCM_ECLASS}
 unset SCM_ECLASS
 
 DESCRIPTION="A full office productivity suite"
@@ -290,6 +290,7 @@ pkg_setup() {
        java-pkg-opt-2_pkg_setup
        kde4-base_pkg_setup
        python-single-r1_pkg_setup
+       xdg_environment_reset
 
        [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
 }
index 86c4a854a4a1a9f2dce6d6640ccbbc44841c4d10..5151dab35c7914b2ff7c4c66e046ae13c274dd34 100644 (file)
@@ -25,7 +25,7 @@ BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
 # PATCHSET="${P}-patchset-01.tar.xz"
 
 [[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
-inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator ${SCM_ECLASS}
+inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator xdg-utils ${SCM_ECLASS}
 unset SCM_ECLASS
 
 DESCRIPTION="A full office productivity suite"
@@ -284,6 +284,7 @@ pkg_setup() {
        java-pkg-opt-2_pkg_setup
        kde4-base_pkg_setup
        python-single-r1_pkg_setup
+       xdg_environment_reset
 
        [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
 }
index 1cea5062c9a49af57b1ad67d8eb5e319210b6492..2259e149ee7d5b5dff9997cec642dbaadd611de4 100644 (file)
@@ -25,7 +25,7 @@ BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
 # PATCHSET="${P}-patchset-01.tar.xz"
 
 [[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
-inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator ${SCM_ECLASS}
+inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator xdg-utils ${SCM_ECLASS}
 unset SCM_ECLASS
 
 DESCRIPTION="A full office productivity suite"
@@ -284,6 +284,7 @@ pkg_setup() {
        java-pkg-opt-2_pkg_setup
        kde4-base_pkg_setup
        python-single-r1_pkg_setup
+       xdg_environment_reset
 
        [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
 }