Probably one of these is responsible, (full log attached): -- The following RUNTIME packages have not been found: * Ubuntu.OnlineAccounts-QMLModule, Ubuntu.OnlineAccounts is a runtime dependency * --------------------------- ACCESS VIOLATION SUMMARY --------------------------- Reproducible: Always
Created attachment 596982 [details] build.log
I know have the exact same problem with other packages, such as kde-apps/akonadi, kde-aps/kimap, .. It blocks my system update, and partial updates mean that most applications can't start anymore.
I can turn around the problem by issueing this before emerging: unsetenv KONSOLE_DBUS_SERVICE KONSOLE_DBUS_SESSION KONSOLE_DBUS_WINDOW DBUS_SESSION_BUS_ADDRESS DISPLAY KDEWM DESKTOP_SESSION SESSION_MANAGER XDG_CURRENT_DESKTOP Actually, it reminds me of a similar problem, but i can't find the gentoo ticket number. It was more kde than dbus, but still something similar where a gui-related thing was making the sandbox unhappy, and you could unset some variables to prevent this to happen. Sorry to no be more precise :-( I still consider this a bug though, so i leave the ticket open.
We need to find a standard way to disable use of qmlplugindump. First step is to make purpose use the standard ECM module: https://cgit.kde.org/purpose.git/commit/?id=8d7123896b988384c756cb948667ea08b86533f4
Step two: Provide an option in extra-cmake-modules.
(In reply to Thomas Capricelli from comment #2) > I know have the exact same problem with other packages, such as > kde-apps/akonadi, kde-aps/kimap, .. Can you please be more precise? It can't quite be the same problem, please file individual bugs for other packages.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=efa0fa211dbc67d3c0d7b8360d5b36ac49b4686e commit efa0fa211dbc67d3c0d7b8360d5b36ac49b4686e Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-12-08 16:54:19 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-12-08 16:55:59 +0000 kde-frameworks/purpose: Add more missing RDEPENDs, use ecm_find_qmlmodule Upstream commit 8d7123896b988384c756cb948667ea08b86533f4 Bug: https://bugs.gentoo.org/700830 Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../files/purpose-5.64.0-ecmqmlmodules.patch | 45 ++++++++++++++++++++++ kde-frameworks/purpose/purpose-5.65.0.ebuild | 5 +++ kde-frameworks/purpose/purpose-9999.ebuild | 3 ++ 3 files changed, 53 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afdef498028112c60b29fd74c4eaec102c2a7dc8 commit afdef498028112c60b29fd74c4eaec102c2a7dc8 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-12-08 17:18:01 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-12-08 17:24:18 +0000 kde-frameworks/purpose: Add USE dolphin, RDEPENDs, ecm_find_qmlmodule Add USE dolphin and missing RDEPEND Upstream commit 8d7123896b988384c756cb948667ea08b86533f4 Bug: https://bugs.gentoo.org/700830 Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../files/purpose-5.64.0-ecmqmlmodules.patch | 32 ++++++++++++ kde-frameworks/purpose/metadata.xml | 1 + kde-frameworks/purpose/purpose-5.64.0-r2.ebuild | 60 ++++++++++++++++++++++ 3 files changed, 93 insertions(+)
(In reply to Andreas Sturmlechner from comment #6) > (In reply to Thomas Capricelli from comment #2) > > I know have the exact same problem with other packages, such as > > kde-apps/akonadi, kde-aps/kimap, .. > > Can you please be more precise? It can't quite be the same problem, please > file individual bugs for other packages. What do you want more ? akonadi and kimap have the same output. I can provide some more examples, such as net-analyzer/nmap-7.80 or media-gfx/gimp-2.10.14 (checked today with an up-to-date portage tree). Common output ends exactly with: * --------------------------- ACCESS VIOLATION SUMMARY --------------------------- * LOG FILE: "/var/log/sandbox/sandbox-4.log" * 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: open_wr S: deny P: /proc/self/oom_score_adj A: /proc/self/oom_score_adj R: /proc/200/oom_score_adj C: /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session F: open_wr S: deny P: /proc/self/oom_score_adj A: /proc/self/oom_score_adj R: /proc/200/oom_score_adj C: /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session * --------------------------------------------------------------------------------
(In reply to Thomas Capricelli from comment #9) > What do you want more ? akonadi and kimap have the same output. I can > provide some more examples, such as net-analyzer/nmap-7.80 or > media-gfx/gimp-2.10.14 (checked today with an up-to-date portage tree). Very weird. Then all I've been doing so far was well and good and for fixing the linked bugs, but actually not related to your issue. Please add emerge --info.
ENV_UNSET does not appear to be working correctly, as this succeeds: # env -u DISPLAY emerge -1 '=kde-frameworks/purpose-5.64.0-r2' but this fails: # emerge -1 '=kde-frameworks/purpose-5.64.0-r2' with the aforementioned sandbox violation: -- qmlplugindump failed for Ubuntu.OnlineAccounts. -- Could NOT find Ubuntu.OnlineAccounts-QMLModule (missing: Ubuntu.OnlineAccounts-QMLModule_FOUND) * ACCESS DENIED: open_wr: /proc/self/oom_score_adj * ACCESS DENIED: open_wr: /proc/self/oom_score_adj
The workaround (env -u DISPLAY) works for me.
*** Bug 711248 has been marked as a duplicate of this bug. ***
Another "workaround" is probably, using emerge from a proper rot login shell, like tty linux textconsole or su -l or sudo -i emerge ...
Sorry, "root login shell" was meant.
(In reply to josef.95 from comment #14) > Another "workaround" is probably, using emerge from a proper rot login > shell, like > tty linux textconsole > or su -l > or sudo -i emerge ... I typically run emerge from a root shell obtained by "exec su -". (The '-' argument is equivalent to '-l'.) That's not enough to unset DISPLAY from the environment. ('su' copies the DISPLAY variable into the target environment, with or without --preserve-environment.)
I experienced the same issue with purpose-5.64.0 last decade and was able to get past it by starting emerge in a root tty thanks to a few tips. The issue came up again recently with purpose-5.67.0, so FWIW I'm coming here to put my two cents that the blank tty root login works for me.
(In reply to Matt Whitlock from comment #11) > ENV_UNSET does not appear to be working correctly, as this succeeds: > > # env -u DISPLAY emerge -1 '=kde-frameworks/purpose-5.64.0-r2' > > but this fails: > > # emerge -1 '=kde-frameworks/purpose-5.64.0-r2' > > with the aforementioned sandbox violation: > > -- qmlplugindump failed for Ubuntu.OnlineAccounts. > -- Could NOT find Ubuntu.OnlineAccounts-QMLModule (missing: > Ubuntu.OnlineAccounts-QMLModule_FOUND) > * ACCESS DENIED: open_wr: /proc/self/oom_score_adj > * ACCESS DENIED: open_wr: /proc/self/oom_score_adj kde-frameworks/purpose-5.68.0 Found Ubuntu.OnlineAccounts-QMLModule: TRUE (found version "") * ACCESS DENIED: open_wr: /proc/self/oom_score_adj * ACCESS DENIED: open_wr: /proc/self/oom_score_adj * ACCESS DENIED: open_wr: /proc/self/oom_score_adj * ACCESS DENIED: open_wr: /proc/self/oom_score_adj -- Found org.kde.kdeconnect-QMLModule: TRUE (found version "") -- Found org.kde.kquickcontrolsaddons-QMLModule: TRUE (found version "") -- Found PkgConfig: x86_64-pc-linux-gnu-pkg-config (found version "0.29.2") The error is the same, Ubuntu.OnlineAccounts-QMLModule is present in the system, but for some reason the version number is not shown. env -u DISPLAY emerge -1 kde-frameworks / purpose helps. And also disable sandbox FEATURES="-sandbox -usersandbox"
(In reply to Alexander from comment #18) Disable sandbox is NOT A GOOD IDEA, as then you're opening up your whole system to whatever the upstream build process wants to do to it *as root*. Sandbox is there for very good reason.
Is it still happening with up to date versions of portage?
You don't have a custom /etc/portage/bashrc, by chance?
(In reply to Andreas Sturmlechner from comment #20) > Is it still happening with up to date versions of portage? Still happens with Portage 2.3.96. (In reply to Andreas Sturmlechner from comment #21) > You don't have a custom /etc/portage/bashrc, by chance? It happens with an empty /etc/portage/bashrc.
Please attach `environment` from that build as well, same dir as build.log.
I can confirm the problem with kde-frameworks/purpose-5.68.0 and sys-apps/portage-2.3.96-r1 /etc/portage/bashrc is not present on the system.
Created attachment 626124 [details] build.log for kde-frameworks/purpose-5.68.0 with Portage 2.3.96
Created attachment 626126 [details] environment for kde-frameworks/purpose-5.68.0 with Portage 2.3.96 (In reply to Andreas Sturmlechner from comment #23) > Please attach `environment` from that build as well, same dir as build.log.
Created attachment 626128 [details] build.log for a successful configure with 'env -u DISPLAY'
Created attachment 626130 [details] environment for a successful configure with 'env -u DISPLAY'
Well, I'm at a loss. Re-assigning to dev-portage for what seems to be an ENV_UNSET issue.
Same problem here compiling kde-frameworks/purpose
What does emerge --info show for the ENV_UNSET variable? I have this: > # emerge --info | grep ENV_UNSET > ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
(In reply to Matt Whitlock from comment #26) > Created attachment 626126 [details] > environment for kde-frameworks/purpose-5.68.0 with Portage 2.3.96 I see an appropriate ENV_UNSET setting there, and no DISPLAY setting. That's for a failed build supposedly triggered by a DISPLAY setting?
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
Patch posted for review: https://archives.gentoo.org/gentoo-portage-dev/message/0bc777ab9e4d03ae2dbf8fbfed909dbd https://github.com/gentoo/portage/pull/544
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01b0693dd0c5a8d20591cea805cbe4c4988585b7 commit 01b0693dd0c5a8d20591cea805cbe4c4988585b7 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2020-04-12 23:40:37 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2020-04-12 23:44:45 +0000 sys-apps/portage: 2.3.99-r1 revbump for bug 700830 #700830 fix ENV_UNSET for DISPLAY variable Bug: https://bugs.gentoo.org/711148 Bug: https://bugs.gentoo.org/700830 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Zac Medico <zmedico@gentoo.org> sys-apps/portage/{portage-2.3.99.ebuild => portage-2.3.99-r1.ebuild} | 3 +++ 1 file changed, 3 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=5570a96ddc859851036035baa4da65df2daa51a0 commit 5570a96ddc859851036035baa4da65df2daa51a0 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2020-04-12 23:11:06 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2020-04-12 23:45:31 +0000 special_env_vars: add ENV_UNSET to environ_whitelist (bug 700830) Add ENV_UNSET to the environ_whitelist. Since DISPLAY is also in the environ_whitelist, ENV_UNSET must also be in environ_whitelist in order to unset DISPLAY. Fixes: a5e02c92fd72 ("Support ENV_UNSET for EAPI 7") Bug: https://bugs.gentoo.org/700830 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/portage/package/ebuild/_config/special_env_vars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d291d12dfcfca0a5b8ed6bf3535488f50a94efc8 commit d291d12dfcfca0a5b8ed6bf3535488f50a94efc8 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2020-04-12 23:54:31 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2020-04-12 23:55:01 +0000 sys-apps/portage: stable 2.3.89-r2 revbump for bug 700830 #700830 fix ENV_UNSET for DISPLAY variable Bug: https://bugs.gentoo.org/706142 Bug: https://bugs.gentoo.org/700830 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Zac Medico <zmedico@gentoo.org> .../portage/{portage-2.3.89-r1.ebuild => portage-2.3.89-r2.ebuild} | 3 +++ 1 file changed, 3 insertions(+)