Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935576 - sys-power/power-profiles-daemon-0.20 test fail : failed 80 out of 81 tests : PermissionError: [Errno 13] Permission denied: '/root/.local/share/flatpak/exports/share/python-dbusmock/templates/polkitd.py'
Summary: sys-power/power-profiles-daemon-0.20 test fail : failed 80 out of 81 tests : ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Pacho Ramos
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-05 22:22 UTC by Arniii
Modified: 2024-07-12 08:45 UTC (History)
2 users (show)

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


Attachments
build.log (file_935576.txt,250.93 KB, text/plain)
2024-07-05 22:22 UTC, Arniii
Details
/var/tmp/portage/sys-power/power-profiles-daemon-0.20/work/power-profiles-daemon-0.20-build/meson-logs/testlog.txt (file_935576.txt,258.09 KB, text/plain)
2024-07-05 22:22 UTC, Arniii
Details
environment // profile default/linux/amd64/23.0/split-usr/desktop/plasma gcc-13.2.1_p20240210 O3 pipe march=native(verbose) lto graphite ggdb3 (file_935576.txt,132.39 KB, text/plain)
2024-07-05 22:23 UTC, Arniii
Details
emerge --info (file_935576.txt,13.49 KB, text/plain)
2024-07-05 22:23 UTC, Arniii
Details
/etc/portage/* in `zip -9` (portage.zip,375.83 KB, application/zip)
2024-07-05 22:24 UTC, Arniii
Details
for power-profiles-daemon-0.21 in zip: build.log , test-log , environment file, emerge --info , emerge -pqv =power-profiles-daemon-0.21 (logs-power-profiles-daemon-0.21.zip,67.12 KB, application/zip)
2024-07-09 20:53 UTC, Arniii
Details
a non working ebuild (file_935576.txt,2.73 KB, text/plain)
2024-07-11 17:14 UTC, Arniii
Details
ebuild 2nd try (attachment.txt,2.69 KB, text/plain)
2024-07-11 17:34 UTC, Pacho Ramos
Details
result of ebuild 2nd try : in zip : everything in temp folder, ebuild related files, emerge --info , emerge -pqv ... (ebuild2_logs-power-profiles-daemon-0.21.zip,71.27 KB, application/zip)
2024-07-11 17:48 UTC, Arniii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arniii 2024-07-05 22:22:32 UTC
Created attachment 897110 [details]
build.log

object has no attribute 'log'
Comment 1 Arniii 2024-07-05 22:22:51 UTC
Created attachment 897111 [details]
/var/tmp/portage/sys-power/power-profiles-daemon-0.20/work/power-profiles-daemon-0.20-build/meson-logs/testlog.txt
Comment 2 Arniii 2024-07-05 22:23:16 UTC
Created attachment 897112 [details]
environment // profile default/linux/amd64/23.0/split-usr/desktop/plasma gcc-13.2.1_p20240210 O3 pipe march=native(verbose) lto graphite ggdb3
Comment 3 Arniii 2024-07-05 22:23:38 UTC
Created attachment 897113 [details]
emerge --info
Comment 4 Arniii 2024-07-05 22:24:08 UTC
Created attachment 897114 [details]
/etc/portage/* in `zip -9`
Comment 5 Pacho Ramos gentoo-dev 2024-07-09 18:42:54 UTC
Please retry with 0.21

At least with that version, tests pass fine for me

Thanks
Comment 6 Arniii 2024-07-09 20:53:33 UTC
Created attachment 897379 [details]
for power-profiles-daemon-0.21 in zip: build.log , test-log , environment file, emerge --info , emerge -pqv =power-profiles-daemon-0.21

(In reply to Pacho Ramos from comment #5)
> Please retry with 0.21
> 
> At least with that version, tests pass fine for me
> 
> Thanks

It's still happens.
Comment 7 Pacho Ramos gentoo-dev 2024-07-11 10:05:43 UTC
They are produced by a permissions issue:
PermissionError: [Errno 13] Permission denied: '/root/.local/share/flatpak/exports/share/python-dbusmock/templates/polkitd.py'

But I am not sure why you hit this problem
Comment 8 Arniii 2024-07-11 11:37:11 UTC
(In reply to Pacho Ramos from comment #7)
> They are produced by a permissions issue:
> PermissionError: [Errno 13] Permission denied:
> '/root/.local/share/flatpak/exports/share/python-dbusmock/templates/polkitd.
> py'
> 
> But I am not sure why you hit this problem

I have a flatpak package installed via root.
Comment 9 Arniii 2024-07-11 11:37:38 UTC
like TLP UI
Comment 10 Pacho Ramos gentoo-dev 2024-07-11 11:47:34 UTC
Can you please try to edit the ebuild and append "xdg" to the end of "inherit" line?

That should do some variable cleanup


Thanks
Comment 11 Arniii 2024-07-11 12:04:49 UTC
(In reply to Pacho Ramos from comment #10)
> Can you please try to edit the ebuild and append "xdg" to the end of
> "inherit" line?
> 
> That should do some variable cleanup
> 
> 
> Thanks

I've just tried this. Still the same. 102 tests fail out of 103 in the same way for sys-power/power-profiles-daemon-0.21
Comment 12 Pacho Ramos gentoo-dev 2024-07-11 13:01:10 UTC
In that case maybe we will need to inherit gnome2-utils.eclass and call gnome2_environment_reset
Comment 13 Arniii 2024-07-11 14:46:51 UTC
(In reply to Pacho Ramos from comment #12)
> In that case maybe we will need to inherit gnome2-utils.eclass and call
> gnome2_environment_reset

this doesn't work.

I've tried next:

1. inherit + placing 
```
       gnome2_environment_reset
```
   at src_configure
2. inherit and next src_test():
```
 src_test() {
     gnome2_environment_reset
     meson_src_test
 }

```
Comment 14 Pacho Ramos gentoo-dev 2024-07-11 17:07:37 UTC
Can you attach the final ebuild please?
Comment 15 Arniii 2024-07-11 17:14:13 UTC
Created attachment 897456 [details]
a non working ebuild

(In reply to Pacho Ramos from comment #14)
> Can you attach the final ebuild please?
Comment 16 Pacho Ramos gentoo-dev 2024-07-11 17:34:06 UTC
Created attachment 897459 [details]
ebuild 2nd try

Can you try this?
Comment 17 Arniii 2024-07-11 17:48:25 UTC
Created attachment 897461 [details]
result of ebuild 2nd try : in zip : everything in temp folder, ebuild related files, emerge --info , emerge -pqv ...

(In reply to Pacho Ramos from comment #16)
> Created attachment 897459 [details]
> ebuild 2nd try
> 
> Can you try this?

I've just tried. Same story :(
Comment 18 Pacho Ramos gentoo-dev 2024-07-12 08:45:50 UTC
What is the content of the offending /etc/profile.d/flatpak.sh file? What variables it is modifying? Maybe you could also do an "echo" next to the gnome2_environment_reset call to ensure the right ebuild is being used
Thanks