Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933527 - xfce-base/xfce4-power-manager-4.19.3 - system tray icon failing to launch
Summary: xfce-base/xfce4-power-manager-4.19.3 - system tray icon failing to launch
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-04 13:08 UTC by Weezer
Modified: 2024-06-08 16:29 UTC (History)
3 users (show)

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


Attachments
build log (build.log,44.60 KB, text/x-log)
2024-06-08 10:46 UTC, Weezer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Weezer 2024-06-04 13:08:59 UTC
Upgraded to xfce4-power-manager-4.19.3 from 4.19.2 and the system tray icon no longer launches upon startup.  It can be launched via xfce4-power-manager -c (or xfce4-power-manager-settings) and toggling off and back on again, but it will not launch on next login.

Have tried on multiple machines and with multiple icon packs to no avail.

I looked at the ebuild and noted many dependency upgrades but have not chased them down individually to see what may have been the culprit.

I run Xmonad WM and use trayer for a system tray (Qtile as backup has same issue).
Kernel 6.9.3-gentoo.

Downgrading to 4.19.2 fixes the "issue".

I am not seeing any "errors" in the logs to reference even while running in debug mode, nor have I seen it reported upstream as an issue.
Comment 1 Holger Hoffstätte 2024-06-06 17:38:51 UTC
Can you file a bug upstream at https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues ? I just did this afternoon and it was fixed yesterday. :)

Briefly looked into commits but didn't see anything re. the tray icon.
Comment 2 Weezer 2024-06-07 09:57:05 UTC
(In reply to Holger Hoffstätte from comment #1)
> Can you file a bug upstream at
> https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues ? I just did this
> afternoon and it was fixed yesterday. :)
> 
> Briefly looked into commits but didn't see anything re. the tray icon.

I went ahead and filed a bug upstream for this.  I scoured the internet for this issue prior to opening the bug here, but it is a brand new release, and I didn't see anything.  I know this issue has come up in the past, a few times, but haven't seen the issue in awhile.

Issue #234.

Because I'm not running XFCE as a desktop, hopefully they will look into it.  I know others use xfce4-power-manager with their WMs.
Comment 3 Weezer 2024-06-07 12:48:07 UTC
This has been addressed upstream (very fastly) and closed:

https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues/234

Via commit:

https://gitlab.xfce.org/xfce/xfce4-power-manager/-/commit/6d2f8265c58974b31a10ef060e72c30233a19f39

It looks like it will be resolved in version 4.19.4.

Keep open until then or should I mark resolved?
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-06-07 14:17:34 UTC
Do you need me to backport it or can you wait?

Same for Holger.
Comment 5 Holger Hoffstätte 2024-06-07 14:43:36 UTC
(In reply to Michał Górny from comment #4)
> Do you need me to backport it or can you wait?
> 
> Same for Holger.

Thank you for asking.

I personally don't need this since I don't use the tray icon and can wait for the next release, but e.g. for laptop users the fix for https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues/233 is much more important.

So if you want to add patches to fix the most urgent regressions, those would be (in order):

01571e513d7be36be93b1d99be9059786788275e (#233, tested by me)
612c9d03e7e8c605161f1f801f894516352e1c16 (#233 add-on)
6d2f8265c58974b31a10ef060e72c30233a19f39 (#234)

Should all apply without problem.
Comment 6 Weezer 2024-06-07 16:02:37 UTC
(In reply to Michał Górny from comment #4)
> Do you need me to backport it or can you wait?
> 
> Same for Holger.

I personally can wait for 4.19.4 so no issue for me.  I masked 4.19.3 so it will take care of itself eventually.

Glad to test if necessary.

Thanks all.
Comment 7 Weezer 2024-06-08 10:46:54 UTC
Created attachment 895381 [details]
build log
Comment 8 Weezer 2024-06-08 10:56:27 UTC
For testing purposes, applied first two patches:

01571e513d7be36be93b1d99be9059786788275e
612c9d03e7e8c605161f1f801f894516352e1c16

No issues compiling and installing.

This patch applies successfully but is failing to compile:
6d2f8265c58974b31a10ef060e72c30233a19f39

Attached build log.

I applied and merged in succession to isolate which is causing error.

Not a dev so not exactly sure if this is an issue on my end or a code issue.  It looks like a code issue.
Comment 9 Holger Hoffstätte 2024-06-08 11:09:56 UTC
(In reply to Weezer from comment #8)
> For testing purposes, applied first two patches:
> 
> 01571e513d7be36be93b1d99be9059786788275e
> 612c9d03e7e8c605161f1f801f894516352e1c16
> 
> No issues compiling and installing.
> 
> This patch applies successfully but is failing to compile:
> 6d2f8265c58974b31a10ef060e72c30233a19f39
> 
> Attached build log.
> 
> I applied and merged in succession to isolate which is causing error.
> 
> Not a dev so not exactly sure if this is an issue on my end or a code issue.
> It looks like a code issue.

Same here, can reproduce. Strangely enough this error only happens when the patch is applied before configure; it builds fine when configure is run first.

Probably best to just leave it alone for now.
Comment 10 Holger Hoffstätte 2024-06-08 11:17:28 UTC
(In reply to Holger Hoffstätte from comment #9)
> Same here, can reproduce. Strangely enough this error only happens when the
> patch is applied before configure; it builds fine when configure is run
> first.

The reason is that common/xfpm-enum-types.c is autogenerated and somehow that still needs to be fixed up.
Comment 11 Weezer 2024-06-08 11:30:10 UTC
(In reply to Holger Hoffstätte from comment #10)
> (In reply to Holger Hoffstätte from comment #9)
> > Same here, can reproduce. Strangely enough this error only happens when the
> > patch is applied before configure; it builds fine when configure is run
> > first.
> 
> The reason is that common/xfpm-enum-types.c is autogenerated and somehow
> that still needs to be fixed up.

I reported this upstream just for information and he suggested that we need to:

"You should --enable-maintainer-mode to regenerate xfpm-enum-types.[ch]."

Those guys don't mess around with getting back to you! (appreciated but hate to bother them)

It looks like that needs to be passed during the compile process, which I'm not sure how that would be handled using the ebuild.

Just messing around at this point but glad to see you had the same issue, thanks for testing!
Comment 12 Holger Hoffstätte 2024-06-08 12:15:08 UTC
(In reply to Weezer from comment #11)
> (In reply to Holger Hoffstätte from comment #10)
> > (In reply to Holger Hoffstätte from comment #9)
> > > Same here, can reproduce. Strangely enough this error only happens when the
> > > patch is applied before configure; it builds fine when configure is run
> > > first.
> > 
> > The reason is that common/xfpm-enum-types.c is autogenerated and somehow
> > that still needs to be fixed up.
> 
> I reported this upstream just for information and he suggested that we need
> to:
> 
> "You should --enable-maintainer-mode to regenerate xfpm-enum-types.[ch]."

This breaks the regular build because of course it does.
Luckily I'm not known for taking prisoners, so here's a working ebuild:
https://github.com/hhoffstaette/portage/tree/master/xfce-base/xfce4-power-manager

I should probably feel bad about this because it's obviously terrible,
but here we are.
Comment 13 Weezer 2024-06-08 12:43:09 UTC
(In reply to Holger Hoffstätte from comment #12)
> (In reply to Weezer from comment #11)
> > (In reply to Holger Hoffstätte from comment #10)
> > > (In reply to Holger Hoffstätte from comment #9)
> > > > Same here, can reproduce. Strangely enough this error only happens when the
> > > > patch is applied before configure; it builds fine when configure is run
> > > > first.
> > > 
> > > The reason is that common/xfpm-enum-types.c is autogenerated and somehow
> > > that still needs to be fixed up.
> > 
> > I reported this upstream just for information and he suggested that we need
> > to:
> > 
> > "You should --enable-maintainer-mode to regenerate xfpm-enum-types.[ch]."
> 
> This breaks the regular build because of course it does.
> Luckily I'm not known for taking prisoners, so here's a working ebuild:
> https://github.com/hhoffstaette/portage/tree/master/xfce-base/xfce4-power-
> manager
> 
> I should probably feel bad about this because it's obviously terrible,
> but here we are.

Kudos to you sir!  Cloned your repo and stole the ebuild for my local repo.  Seems to have worked like a charm!  Tested on one machine and will test on another later but I'm sure it will work, just don't feel like it now as brain has been all over the place and needs a break ;)

I haven't studied what you did yet, either, but will later.  I, like you, would have kept going until I figured it out, but can relax a bit now...

Not sure if this issue should be closed/confirmed or left open but I'll leave that up to folks to determine how that goes...

Thanks much and HAGD!
Comment 14 Weezer 2024-06-08 13:17:12 UTC
Had to look..

I see:

# regenerate xfpm-enum-types
econf --enable-maintainer-mode "${myconf[@]}"
cd common && make xfpm-enum-types.c && cd ..

Nice work!  That would have taken me a bit to chase down


(In reply to Holger Hoffstätte from comment #12)
> (In reply to Weezer from comment #11)
> > (In reply to Holger Hoffstätte from comment #10)
> > > (In reply to Holger Hoffstätte from comment #9)
> > > > Same here, can reproduce. Strangely enough this error only happens when the
> > > > patch is applied before configure; it builds fine when configure is run
> > > > first.
> > > 
> > > The reason is that common/xfpm-enum-types.c is autogenerated and somehow
> > > that still needs to be fixed up.
> > 
> > I reported this upstream just for information and he suggested that we need
> > to:
> > 
> > "You should --enable-maintainer-mode to regenerate xfpm-enum-types.[ch]."
> 
> This breaks the regular build because of course it does.
> Luckily I'm not known for taking prisoners, so here's a working ebuild:
> https://github.com/hhoffstaette/portage/tree/master/xfce-base/xfce4-power-
> manager
> 
> I should probably feel bad about this because it's obviously terrible,
> but here we are.

Had to look..

I see:

# regenerate xfpm-enum-types
econf --enable-maintainer-mode "${myconf[@]}"
cd common && make xfpm-enum-types.c && cd ..

Nicely done!  That bit would have taken me a bit of research to chase down.

Thx again.
Comment 15 Holger Hoffstätte 2024-06-08 16:05:35 UTC
Michał just pmasked xfce-4.19.* (see https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d47ab351dad5bf503de7d51c3df265e1d715241) so I'd say you can resolve this as WONTFIX.
Comment 16 Weezer 2024-06-08 16:25:40 UTC
(In reply to Holger Hoffstätte from comment #15)
> Michał just pmasked xfce-4.19.* (see
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=4d47ab351dad5bf503de7d51c3df265e1d715241) so I'd say you can resolve
> this as WONTFIX.

Interesting, well we got a couple issues "fixed" anyway.

Two quick questions:

I borked up my last comment and can't edit to fix the duplicate comment, is it even possible?

This is my second bug ever reported and have no idea how to do the 'WONTFIX' closing....  I have unconfirmed and resolved.

Apologies for my ignorance.
Comment 17 Weezer 2024-06-08 16:29:20 UTC
Figured out the WONTFIX option..