From f86e28420ea68dd993e5a29faa73a0aa70b8604c Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Jan 17 2024 19:16:38 +0000 Subject: Use Tcl 8.4 channel type (GCC 14 compatibility) Related to: --- diff --git a/expect-c99.patch b/expect-c99.patch new file mode 100644 index 0000000..94dc2ed --- /dev/null +++ b/expect-c99.patch @@ -0,0 +1,24 @@ +Adjustments for compatibility with the currrent (Tcl 8.4.0+) channel +implementation. + +diff --git a/exp_chan.c b/exp_chan.c +index c92e26b6fbd02305..944200a63b102672 100644 +--- a/exp_chan.c ++++ b/exp_chan.c +@@ -60,7 +60,7 @@ void exp_background_channelhandler _ANSI_ARGS_((ClientData, + + Tcl_ChannelType expChannelType = { + "exp", /* Type name. */ +- ExpBlockModeProc, /* Set blocking/nonblocking mode.*/ ++ TCL_CHANNEL_VERSION_2, + ExpCloseProc, /* Close proc. */ + ExpInputProc, /* Input proc. */ + ExpOutputProc, /* Output proc. */ +@@ -70,6 +70,7 @@ Tcl_ChannelType expChannelType = { + ExpWatchProc, /* Initialize notifier. */ + ExpGetHandleProc, /* Get OS handles out of channel. */ + NULL, /* Close2 proc */ ++ ExpBlockModeProc, /* Set blocking/nonblocking mode.*/ + }; + + typedef struct ThreadSpecificData { diff --git a/expect.spec b/expect.spec index e729e56..13158a7 100644 --- a/expect.spec +++ b/expect.spec @@ -5,7 +5,7 @@ Summary: A program-script interaction and testing utility Name: expect Version: %{majorver} -Release: 20%{?dist} +Release: 21%{?dist} License: LicenseRef-Fedora-Public-Domain URL: https://core.tcl.tk/expect/index Source: http://downloads.sourceforge.net/%{name}/%{name}%{version}.tar.gz @@ -47,6 +47,7 @@ Patch104: expect-5.45-mkpasswd-man.patch # Patch105: Fix error with -Werror=format-security Patch105: expect-5.45-format-security.patch Patch106: expect-configure-c99.patch +Patch107: expect-c99.patch %description Expect is a tcl application for automating and testing @@ -104,6 +105,7 @@ of expectk. %patch104 -p1 -b .mkpasswd-man %patch105 -p0 -b .format-security %patch106 -p1 -b .configure-c99 +%patch -P 107 -p1 # -pkgpath.patch touch configure.in aclocal autoconf @@ -186,6 +188,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libexpect%{version}.so %{_mandir}/man1/tknewsbiff.1* %changelog +* Wed Jan 17 2024 Florian Weimer - 5.45.4-21 +- Use Tcl 8.4 channel type (GCC 14 compatibility) + * Wed Jul 19 2023 Fedora Release Engineering - 5.45.4-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild