public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/jgmenu] epel9: Fix xfce4-panel registration
@ 2026-10-28 17:25 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2026-10-28 17:25 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/jgmenu
            Branch : epel9
            Commit : 3cfdca761a0b93b191fe9289ce57f84a6e92fd40
            Author : Florian Weimer <fweimer@redhat.com>
            Date   : 2022-12-23T17:50:05+01:00
            Stats  : +32/-2 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/jgmenu/c/3cfdca761a0b93b191fe9289ce57f84a6e92fd40?branch=epel9

            Log:
            Fix xfce4-panel registration

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>

---
diff --git a/jgmenu-c99.patch b/jgmenu-c99.patch
new file mode 100644
index 0000000..57631e4
--- /dev/null
+++ b/jgmenu-c99.patch
@@ -0,0 +1,26 @@
+Presumably due to header file reorganization,
+
+XFCE_PANEL_PLUGIN_REGISTER(jgmenu_construct);
+
+did not have any effect anymore because the macro is not defined in
+<libxfce4panel/xfce-panel-plugin.h> anymore. Current GCC version parse
+this line as a declaration of a function called
+XFCE_PANEL_PLUGIN_REGISTER with an implicit int return type and
+without a parameter list/prototype, which is the reason why this did
+not result in a compilation error.
+
+Submitted upstream: <https://github.com/jgmenu/jgmenu/pull/188>
+
+diff --git a/contrib/xfce4-panel/jgmenu-applet.c b/contrib/xfce4-panel/jgmenu-applet.c
+index 820c3b6076f17a89..6594b3f92a6b0503 100644
+--- a/contrib/xfce4-panel/jgmenu-applet.c
++++ b/contrib/xfce4-panel/jgmenu-applet.c
+@@ -5,7 +5,7 @@
+ */
+ 
+ #include <libxfce4util/libxfce4util.h>
+-#include <libxfce4panel/xfce-panel-plugin.h>
++#include <libxfce4panel/libxfce4panel.h>
+ 
+ #define DEFAULT_ICON_NAME "jgmenu"
+ #define DEFAULT_TOOLTIP_MESSAGE "Applications Menu"

diff --git a/jgmenu.spec b/jgmenu.spec
index 9211416..e84cab0 100644
--- a/jgmenu.spec
+++ b/jgmenu.spec
@@ -1,10 +1,11 @@
 Name:		jgmenu
 Version:	4.4.1
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Simple X11 application menu
 License:	GPLv2+
 URL:		https://jgmenu.github.io
 Source0:	https://github.com/johanmalm/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
+Patch0:		jgmenu-c99.patch
 Requires:	hicolor-icon-theme
 BuildRequires:	gcc, desktop-file-utils
 # libXrandr-devel
@@ -68,7 +69,7 @@ Xfce4 plugin for %{name} package.
 
 
 %prep
-%autosetup
+%autosetup -p1
 
 
 %build
@@ -113,6 +114,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
 %{_datadir}/xfce4/panel/plugins/%{name}-applet.desktop
 
 %changelog
+* Fri Dec 23 2022 Florian Weimer <fweimer@redhat.com> - 4.4.1-2
+- Fix xfce4-panel registration
+
 * Tue Nov 01 2022 TI_Eugene <ti.eugene@gmail.com> - 4.4.1-1
 - Version bump (close #2138771)
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-28 17:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 17:25 [rpms/jgmenu] epel9: Fix xfce4-panel registration Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox