public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cairo-dock-plug-ins] rawhide: Fix for ical4 and libetpan2
@ 2026-11-26  5:15 Mamoru TASAKA
  0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-11-26  5:15 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/cairo-dock-plug-ins
Branch : rawhide
Commit : 062ceafc902188b1ccf54d95795a696fce61bc0e
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2026-11-26T14:15:31+09:00
Stats  : +124/-1 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/cairo-dock-plug-ins/c/062ceafc902188b1ccf54d95795a696fce61bc0e?branch=rawhide

Log:
Fix for ical4 and libetpan2

---
diff --git a/cairo-dock-plug-ins-pr144-ical-4-linkage.patch b/cairo-dock-plug-ins-pr144-ical-4-linkage.patch
new file mode 100644
index 0000000..605da22
--- /dev/null
+++ b/cairo-dock-plug-ins-pr144-ical-4-linkage.patch
@@ -0,0 +1,60 @@
+From 1ff4416a4b83b26b3beba3c1d4c11793f9b4440f Mon Sep 17 00:00:00 2001
+From: Integral <integral@member.fsf.org>
+Date: Wed, 4 Nov 2026 23:26:55 +0800
+Subject: [PATCH] Fix clock widget startup when building against libical 4
+
+Libical 4 provides separate pkg-config files for each library. Since
+linking against both libical and libicalss is required for the clock
+widget, libicalss must be specified explicitly in CMakeLists.txt.
+Otherwise, the widget fails to launch with an "undefined symbol" error.
+---
+ CMakeLists.txt           | 13 ++++++++++++-
+ clock/src/CMakeLists.txt |  4 ++--
+ 2 files changed, 14 insertions(+), 3 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 77ffb4746..c0dc9148e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -397,7 +397,18 @@ if (enable-ical-support)
+ 		message (WARNING "This module is required to compile Clock applet with iCal support: libical")
+ 		set (MODULES_MISSING "${MODULES_MISSING} libical")
+ 	else ()
+-		set (with_ical yes)
++		if (LIBICAL_PACKAGE_VERSION VERSION_GREATER_EQUAL "4.0.0")
++			pkg_check_modules ("LIBICALSS_PACKAGE" "libicalss")
++			if (NOT LIBICALSS_PACKAGE_FOUND)
++				message (STATUS "Could not find libicalss; Clock plugin won't be built with iCal support.")
++				message (WARNING "This module is required to compile Clock applet with iCal support: libicalss")
++				set (MODULES_MISSING "${MODULES_MISSING} libicalss")
++			else()
++				set (with_ical yes)
++			endif()
++		else()
++			set (with_ical yes)
++		endif()
+ 	endif()
+ endif()
+ set (GETTEXT_CLOCK ${GETTEXT_PLUGINS})
+diff --git a/clock/src/CMakeLists.txt b/clock/src/CMakeLists.txt
+index 6ec2d3e05..c6a51aa2d 100644
+--- a/clock/src/CMakeLists.txt
++++ b/clock/src/CMakeLists.txt
+@@ -28,7 +28,7 @@ add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}")
+ add_definitions (-DMY_APPLET_ICON_FILE="icon.png")
+ add_definitions (-DCD_APPLET_MULTI_INSTANCE="1")
+ add_definitions (-DGL_GLEXT_PROTOTYPES="1")
+-if (LIBICAL_PACKAGE_FOUND)
++if (with_ical)
+ 	add_definitions (-DCD_CLOCK_ICAL_SUPPORT="1")
+ endif()
+ 
+@@ -42,7 +42,7 @@ link_directories (
+ 
+ target_link_libraries (${PACKAGE_CLOCK}
+ 	${PACKAGE_LIBRARIES}
+-	${LIBICAL_PACKAGE_LIBRARIES})
++	${LIBICAL_PACKAGE_LIBRARIES} ${LIBICALSS_PACKAGE_LIBRARIES})
+ 
+ ########### install files ###############
+ 

diff --git a/cairo-dock-plug-ins-pr146-drop-mail-for-libetpan2.patch b/cairo-dock-plug-ins-pr146-drop-mail-for-libetpan2.patch
new file mode 100644
index 0000000..b6a15e4
--- /dev/null
+++ b/cairo-dock-plug-ins-pr146-drop-mail-for-libetpan2.patch
@@ -0,0 +1,48 @@
+From 5b1c5cb83d50967a056763b8e4893824def37660 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Kondor=20D=C3=A1niel?= <kondor.dani@gmail.com>
+Date: Wed, 25 Nov 2026 22:36:31 +0100
+Subject: [PATCH] build: disable Mail applet if libetpan version is unsupported
+
+Version 2.0.0 had some major API changes that we still need to adapt to.
+---
+ CMakeLists.txt | 27 ++++++++++++++++-----------
+ 1 file changed, 16 insertions(+), 11 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c0dc9148e..0cdfd8940 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -792,17 +792,22 @@ if (enable-mail)
+ 		message (WARNING "This module is required to compile Mail applet: libetpan")
+ 		set (PROGRAMS_MISSING "${PROGRAMS_MISSING} libetpan-config")
+ 	else()
+-		message (STATUS "  libetpan found. Using the following options:")
+-		message (STATUS "   Include directories: ${MAIL_PACKAGE_INCLUDE_DIRS}")
+-		message (STATUS "   Link directories: ${MAIL_PACKAGE_LIBRARY_DIRS}")
+-		message (STATUS "   Link libraries: ${MAIL_PACKAGE_LIBRARIES}")
+-		set (GETTEXT_MAIL ${GETTEXT_PLUGINS})
+-		set (VERSION_MAIL "1.0.14")
+-		set (PACKAGE_MAIL "cd-mail")
+-		set (maildatadir "${pluginsdatadir}/mail")
+-		set (with_mail yes)
+-		configure_file (${CMAKE_CURRENT_SOURCE_DIR}/mail/data/mail.conf.in ${CMAKE_CURRENT_BINARY_DIR}/mail/data/mail.conf)
+-		add_subdirectory ("mail")
++		if (MAIL_PACKAGE_VERSION VERSION_GREATER_EQUAL "2.0.0")
++			message (STATUS "warning : libetpan version 2.0.0 or newer is not yet supported; Cairo-Dock won't be built with Mail applet.")
++			set (with_mail "no (unsupported libetpan version)")
++		else()
++			message (STATUS "  libetpan found. Using the following options:")
++			message (STATUS "   Include directories: ${MAIL_PACKAGE_INCLUDE_DIRS}")
++			message (STATUS "   Link directories: ${MAIL_PACKAGE_LIBRARY_DIRS}")
++			message (STATUS "   Link libraries: ${MAIL_PACKAGE_LIBRARIES}")
++			set (GETTEXT_MAIL ${GETTEXT_PLUGINS})
++			set (VERSION_MAIL "1.0.14")
++			set (PACKAGE_MAIL "cd-mail")
++			set (maildatadir "${pluginsdatadir}/mail")
++			set (with_mail yes)
++			configure_file (${CMAKE_CURRENT_SOURCE_DIR}/mail/data/mail.conf.in ${CMAKE_CURRENT_BINARY_DIR}/mail/data/mail.conf)
++			add_subdirectory ("mail")
++		endif()
+ 	endif()
+ endif()
+ 

diff --git a/cairo-dock-plug-ins.spec b/cairo-dock-plug-ins.spec
index 2b50643..bc58b8a 100644
--- a/cairo-dock-plug-ins.spec
+++ b/cairo-dock-plug-ins.spec
@@ -10,7 +10,7 @@
 
 %global	tarballver	%{mainver}%{?use_git:-%{gitdate}git%{shorthash}}
 
-%global	baserelease	10
+%global	baserelease	11
 %dnl %global	alphatag		.rc9
 
 %global	ruby_vendorlib	%(ruby -rrbconfig -e "puts RbConfig::CONFIG['vendorlibdir']")
@@ -45,6 +45,12 @@ Source1:		cairo-dock-plug-ins-create-fedora-tarball.sh
 # https://github.com/Cairo-Dock/cairo-dock-plug-ins/pull/132/
 # Support ical 4
 Patch0:		cairo-dock-plug-ins-pr132-support-ical-4.patch
+# https://github.com/Cairo-Dock/cairo-dock-plug-ins/pull/144
+# Fix linkage with ical 4
+Patch1:		cairo-dock-plug-ins-pr144-ical-4-linkage.patch
+# https://github.com/Cairo-Dock/cairo-dock-plug-ins/pull/146
+# Drop mail plugin for libetpan 2 for now
+Patch2:		cairo-dock-plug-ins-pr146-drop-mail-for-libetpan2.patch
 
 BuildRequires:  gcc-c++
 BuildRequires:	cmake
@@ -68,6 +74,9 @@ BuildRequires:	pkgconfig(libexif)
 BuildRequires:	pkgconfig(libgnome-menu-3.0)
 BuildRequires:	pkgconfig(libgnomeui-2.0)
 BuildRequires:	pkgconfig(libical)
+%if 0%{?fedora} >= 46
+BuildRequires:	pkgconfig(libicalss)
+%endif
 BuildRequires:	pkgconfig(libpulse)
 BuildRequires:	pkgconfig(libxklavier)
 # BuildRequires:	pkgconfig(thunar-vfs-1)
@@ -209,6 +218,8 @@ binding for Cairo-Dock.
 %prep
 %setup -q -n cairo-dock-plugins-%{mainver}%{?use_git:-%{gitdate}git%{shorthash}}
 %patch -P0 -p1 -b .ical_4
+%patch -P1 -p1 -b .ical_4_link
+%patch -P2 -p1 -b .etpan2
 
 ## permission
 # %%_fixperms cannot fix permissions completely here
@@ -422,6 +433,10 @@ popd
 %{_datadir}/cairo-dock/plug-ins/Dbus/CDApplet.h
 
 %changelog
+* Thu Nov 26 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.6.2-11
+- Fix linkage with ical 4
+- Drop mail for libetpan 2.x for now
+
 * Tue Nov 03 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.6.2-10
 - Rebuild for https://fedoraproject.org/wiki/Changes/Libical4
 

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

only message in thread, other threads:[~2026-11-26  5:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26  5:15 [rpms/cairo-dock-plug-ins] rawhide: Fix for ical4 and libetpan2 Mamoru TASAKA

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