Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 849566

Summary: gnome-base/gnome-shell-42.1 - error: redefinition of glib_queueautoptr_cleanup_PolkitAgentListener
Product: Gentoo Linux Reporter: Bogdan <bogdan.pylypenko107>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description Bogdan 2022-06-03 21:19:44 UTC
Compilation fails.

Reproducible: Always

Actual Results:  
> FAILED: src/libgnome-shell.so.p/shell-polkit-authentication-agent.c.o
> /usr/include/glib-2.0/glib/gmacros.h:1195:49: error: redefinition of ‘glib_autoptr_clear_PolkitAgentListener’
> 1195 | #define _GLIB_AUTOPTR_CLEAR_FUNC_NAME(TypeName) glib_autoptr_clear_##TypeName
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-03 21:20:41 UTC
Please include the full build.log and emerge --info. But I think this is fixed in 42.2 and you're using ~arch Polkit.
Comment 2 Bogdan 2022-06-03 21:21:17 UTC
Created attachment 782606 [details]
build.log
Comment 3 Bogdan 2022-06-03 21:22:13 UTC
Created attachment 782609 [details]
emerge --info
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-03 21:31:18 UTC
I think you need to just stop using ~arch polkit, really, or use ~arch gnome-shell.
Comment 5 Bogdan 2022-06-03 21:34:23 UTC
Yes, I use ~amd64 of polkit:
  sys-auth/polkit-0.120_p20220509

Yes, 42.2 version fix this error.
  gnome-base/gnome-shell-42.2
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-03 21:36:30 UTC
(In reply to Bogdan from comment #5)
> Yes, I use ~amd64 of polkit:
>   sys-auth/polkit-0.120_p20220509
> 
> Yes, 42.2 version fix this error.
>   gnome-base/gnome-shell-42.2

Is there a reason you're using ~arch polkit?
Comment 7 Bogdan 2022-06-05 05:16:06 UTC
(In reply to Sam James from comment #6)
> Is there a reason you're using ~arch polkit?

Some program in the past is require it. I do not remembrer which is it.

Now, I revert polkit to stable version.
Comment 8 Larry the Git Cow gentoo-dev 2022-06-24 03:43:11 UTC
The bug has been referenced in the following commit(s):

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

commit dea2c90c1aee7d012a467eeb937fc4a7ecae9237
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-24 03:42:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-24 03:42:42 +0000

    gnome-base/gnome-shell: restore 42.1-r3 for Polkit fix
    
    Bug: https://bugs.gentoo.org/844919
    Bug: https://bugs.gentoo.org/849566
    Fixes: eed2ee4b79e40099d84db0dde29dced1e3346bb6
    Signed-off-by: Sam James <sam@gentoo.org>

 .../gnome-shell/files/42.1-polkit-g_autoptr.patch  |  53 ++++++
 gnome-base/gnome-shell/gnome-shell-42.1-r3.ebuild  | 206 +++++++++++++++++++++
 2 files changed, 259 insertions(+)