diff --git a/xlog-hamlib42.patch b/xlog-hamlib42.patch new file mode 100644 index 0000000..774b96c --- /dev/null +++ b/xlog-hamlib42.patch @@ -0,0 +1,24 @@ +Index: xlog-2.0.22/src/hamlib-utils.c +=================================================================== +--- xlog-2.0.22.orig/src/hamlib-utils.c ++++ xlog-2.0.22/src/hamlib-utils.c +@@ -45,6 +45,10 @@ + #include "../data/pixmaps/s8.xpm" + #include "../data/pixmaps/s9.xpm" + ++#ifndef HAMLIB_FILPATHLEN ++#define HAMLIB_FILPATHLEN FILEPATHLEN ++#endif ++ + struct rig_id { + const gint modelnr; + const gchar *modelname; +@@ -168,7 +172,7 @@ start_hamlib (gint rigid, gchar *device, + update_statusbar (temp); + } + } +- strncpy (myrig->state.rigport.pathname, device, FILPATHLEN); ++ strncpy (myrig->state.rigport.pathname, device, HAMLIB_FILPATHLEN); + retcode = rig_open (myrig); + if (retcode != RIG_OK) + { diff --git a/xlog.spec b/xlog.spec index 050a608..42ea31d 100644 --- a/xlog.spec +++ b/xlog.spec @@ -1,6 +1,6 @@ Name: xlog Version: 2.0.22 -Release: 1%{?dist} +Release: 3%{?dist} Summary: Logging program for Hamradio Operators License: GPLv3 @@ -8,6 +8,7 @@ URL: http://www.nongnu.org/xlog/ Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz Patch0: %{name}-2.0.19-no-error.patch +Patch1: xlog-hamlib42.patch BuildRequires: make BuildRequires: gcc @@ -63,6 +64,12 @@ desktop-file-install \ %changelog +* Thu Dec 23 2021 Richard Shaw - 2.0.22-3 +- Rebuild for hamlib 4.4. + +* Mon May 31 2021 Richard Shaw - 2.0.22-2 +- Rebuild for hamlib 4.2. + * Mon May 10 2021 Richard Shaw - 2.0.22-1 - Update to 2.0.22.