public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/jgmenu] epel9: Fix xfce4-panel registration
Date: Wed, 28 Oct 2026 17:25:08 GMT	[thread overview]
Message-ID: <179320830843.1.11052022898332911693.rpms-jgmenu-3cfdca761a0b@fedoraproject.org> (raw)

            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)
 

                 reply	other threads:[~2026-10-28 17:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179320830843.1.11052022898332911693.rpms-jgmenu-3cfdca761a0b@fedoraproject.org \
    --to=fweimer@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox