Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639460 - kde-frameworks/kirigami-5.40.0 : sandbox issue (XDG_xxx_DIR related)
Summary: kde-frameworks/kirigami-5.40.0 : sandbox issue (XDG_xxx_DIR related)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 567192
  Show dependency tree
 
Reported: 2017-12-01 23:47 UTC by Toralf Förster
Modified: 2022-10-10 16:45 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,14.91 KB, text/plain)
2017-12-01 23:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,42.00 KB, text/plain)
2017-12-01 23:47 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.80 KB, application/x-bzip)
2017-12-01 23:47 UTC, Toralf Förster
Details
kde-frameworks:kirigami-5.40.0:20171201-232414.log (kde-frameworks:kirigami-5.40.0:20171201-232414.log,7.07 KB, text/plain)
2017-12-01 23:47 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.75 KB, application/x-bzip)
2017-12-01 23:47 UTC, Toralf Förster
Details
sandbox-6854.log (sandbox-6854.log,445 bytes, text/plain)
2017-12-01 23:48 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-12-01 23:47:43 UTC
This issue is forced at the tinderbox (pls see bug #567192 too) by setting:

export XDG_DESKTOP_DIR="/root/Desktop"
export XDG_DOCUMENTS_DIR="/root/Documents"
export XDG_DOWNLOAD_DIR="/root/Downloads"
export XDG_MUSIC_DIR="/root/Music"
export XDG_PICTURES_DIR="/root/Pictures"
export XDG_PUBLICSHARE_DIR="/root/Public"
export XDG_TEMPLATES_DIR="/root/Templates"
export XDG_VIDEOS_DIR="/root/Videos"
export XDG_RUNTIME_DIR="/root/run"
export XDG_CONFIG_HOME="/root/config"
export XDG_CACHE_HOME="/root/cache"
export XDG_DATA_HOME="/root/share"

sandbox output:

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: mkdir
S: deny

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma_20171130-223509

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.5 (fallback)
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems) *



emerge -qpv kde-frameworks/kirigami
[ebuild  N    ] kde-frameworks/kirigami-5.40.0  USE="plasma -debug -examples {-test}"
Comment 1 Toralf Förster gentoo-dev 2017-12-01 23:47:46 UTC
Created attachment 507626 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-12-01 23:47:49 UTC
Created attachment 507628 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-12-01 23:47:52 UTC
Created attachment 507630 [details]
etc.portage.tbz2
Comment 4 Toralf Förster gentoo-dev 2017-12-01 23:47:55 UTC
Created attachment 507632 [details]
kde-frameworks:kirigami-5.40.0:20171201-232414.log
Comment 5 Toralf Förster gentoo-dev 2017-12-01 23:47:58 UTC
Created attachment 507634 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-12-01 23:48:02 UTC
Created attachment 507636 [details]
sandbox-6854.log
Comment 7 Andreas Sturmlechner gentoo-dev 2017-12-02 16:27:55 UTC
I guess this could be fixed by:

--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -110,7 +110,7 @@ case ${EAPI} in
 esac
 
 inherit toolchain-funcs multilib ninja-utils flag-o-matic eutils \
-       multiprocessing versionator
+       multiprocessing versionator xdg-utils
 
 EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install
 
@@ -491,7 +491,7 @@ cmake-utils_src_configure() {
        _cmake_check_build_dir
 
        # Fix xdg collision with sandbox
-       local -x XDG_CONFIG_HOME="${T}"
+       xdg_environment_reset
 
        # @SEE CMAKE_BUILD_TYPE
        if [[ ${CMAKE_BUILD_TYPE} = Gentoo ]]; then
Comment 8 Andreas Sturmlechner gentoo-dev 2017-12-02 16:38:16 UTC
Also, there is a second issue:

> C: /usr/lib64/qt4/bin/qmlplugindump QtGraphicalEffects 1.0 

It obviously picks the wrong qmlplugindump. I wasn't able to reproduce this at first because on a system without Qt4 it will just do nothing:

qmlplugindump: could not find a Qt installation of ''
Comment 9 Larry the Git Cow gentoo-dev 2017-12-02 18:33:01 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=23858329a86af6548aedb63bb6afd6de2038c07d

commit 23858329a86af6548aedb63bb6afd6de2038c07d
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2017-12-02 18:30:50 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2017-12-02 18:30:50 +0000

    cmake-utils.eclass: Use xdg_environment_reset from xdg-utils.eclass
    
    Bug: https://bugs.gentoo.org/639460

 eclass/cmake-utils.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)}
Comment 10 Larry the Git Cow gentoo-dev 2017-12-02 18:33:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13dec085bcd84e7c7c67ae53cd5152c08bc9213e

commit 13dec085bcd84e7c7c67ae53cd5152c08bc9213e
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2017-12-02 18:29:26 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2017-12-02 18:33:32 +0000

    kde-frameworks/extra-cmake-modules: Fix ECMFindQMLModule.cmake.in
    
    See also: https://phabricator.kde.org/D9116
    
    Bug: https://bugs.gentoo.org/639460
    Package-Manager: Portage-2.3.16, Repoman-2.3.6

 kde-frameworks/extra-cmake-modules/Manifest        |  2 +-
 .../extra-cmake-modules-5.40.0-r1.ebuild           | 63 ++++++++++++++++++++++
 ...a-cmake-modules-5.40.0-qmlplugindump-path.patch | 38 +++++++++++++
 3 files changed, 102 insertions(+), 1 deletion(-)}
Comment 11 Larry the Git Cow gentoo-dev 2017-12-06 11:41:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc837d7bdfa90ace4c127f9c6d27384f59b44f8a

commit bc837d7bdfa90ace4c127f9c6d27384f59b44f8a
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2017-12-02 18:30:50 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2017-12-06 11:41:05 +0000

    cmake-utils.eclass: Use xdg_environment_reset from xdg-utils.eclass
    
    Closes: https://bugs.gentoo.org/639460

 eclass/cmake-utils.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)