From 51194bae7a6362d1f37dba342eaf1ea7dc02f5cc Mon Sep 17 00:00:00 2001 From: Richard Shaw Date: May 30 2021 20:02:02 +0000 Subject: Add patch for hamlib 4.2. --- 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 b7e4d31..851f312 100644 --- a/xlog.spec +++ b/xlog.spec @@ -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