public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-libs/hamlib/files/, media-libs/hamlib/
@ 2022-11-17  7:09 Thomas Beierlein
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Beierlein @ 2022-11-17  7:09 UTC (permalink / raw
  To: gentoo-commits

commit:     573dae0ef553e180e7f5c85a333adce34237f59b
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 17 07:06:09 2022 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Thu Nov 17 07:09:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=573dae0e

media-libs/hamlib: fix CLANG warnings

Backported from Hamlib repo i
(see https://github.com/Hamlib/Hamlib/issues/1149)

Closes: https://bugs.gentoo.org/880961
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 .../files/hamlib-4.4-fix-clang-warnings.patch      | 191 +++++++++++++++++++++
 media-libs/hamlib/hamlib-4.4.ebuild                |   1 +
 2 files changed, 192 insertions(+)

diff --git a/media-libs/hamlib/files/hamlib-4.4-fix-clang-warnings.patch b/media-libs/hamlib/files/hamlib-4.4-fix-clang-warnings.patch
new file mode 100644
index 000000000000..832af50e0e6c
--- /dev/null
+++ b/media-libs/hamlib/files/hamlib-4.4-fix-clang-warnings.patch
@@ -0,0 +1,191 @@
+From 1aebee2da9d29ff1d1a16e19f23bbff4e0f319a8 Mon Sep 17 00:00:00 2001
+From: Mike Black W9MDB <mdblack98@yahoo.com>
+Date: Mon, 14 Nov 2022 16:37:20 -0600
+Subject: [PATCH 1/2] Fix clang warning on callback functions
+ https://github.com/Hamlib/Hamlib/issues/1149
+
+---
+ include/hamlib/rig.h |  4 +++-
+ rigs/aor/aor.c       |  4 ++--
+ src/mem.c            | 15 ++++++++-------
+ tests/testcaps.sh    | 12 ++++++++++++
+ 4 files changed, 25 insertions(+), 10 deletions(-)
+ create mode 100755 tests/testcaps.sh
+
+diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h
+index 574c21bd..5dbb5a7b 100644
+--- a/include/hamlib/rig.h
++++ b/include/hamlib/rig.h
+@@ -1675,7 +1675,7 @@ typedef struct cal_table_float cal_table_float_t;
+ //! @cond Doxygen_Suppress
+ #define EMPTY_FLOAT_CAL { 0, { { 0, 0f }, } }
+ 
+-typedef int (* chan_cb_t)(RIG *, channel_t **, int, const chan_t *, rig_ptr_t);
++typedef int (* chan_cb_t)(RIG *, vfo_t vfo, channel_t **, int, const chan_t *, rig_ptr_t);
+ typedef int (* confval_cb_t)(RIG *,
+                              const struct confparams *,
+                              value_t *,
+@@ -2024,10 +2024,12 @@ struct rig_caps {
+     int (*get_chan_all_cb)(RIG *rig, vfo_t vfo, chan_cb_t chan_cb, rig_ptr_t);
+ 
+     int (*set_mem_all_cb)(RIG *rig,
++                          vfo_t vfo,
+                           chan_cb_t chan_cb,
+                           confval_cb_t parm_cb,
+                           rig_ptr_t);
+     int (*get_mem_all_cb)(RIG *rig,
++                          vfo_t vfo,
+                           chan_cb_t chan_cb,
+                           confval_cb_t parm_cb,
+                           rig_ptr_t);
+diff --git a/rigs/aor/aor.c b/rigs/aor/aor.c
+index ad4331d9..3f69d723 100644
+--- a/rigs/aor/aor.c
++++ b/rigs/aor/aor.c
+@@ -1364,7 +1364,7 @@ int aor_get_chan_all_cb(RIG *rig, vfo_t vfo, chan_cb_t chan_cb, rig_ptr_t arg)
+      * future data for channel channel_num
+      */
+     chan = NULL;
+-    retval = chan_cb(rig, &chan, chan_next, chan_list, arg);
++    retval = chan_cb(rig, vfo, &chan, chan_next, chan_list, arg);
+ 
+     if (retval != RIG_OK)
+     {
+@@ -1414,7 +1414,7 @@ int aor_get_chan_all_cb(RIG *rig, vfo_t vfo, chan_cb_t chan_cb, rig_ptr_t arg)
+              * provide application with channel data,
+              * and ask for a new channel structure
+              */
+-            chan_cb(rig, &chan, chan_next, chan_list, arg);
++            chan_cb(rig, vfo, &chan, chan_next, chan_list, arg);
+ 
+             if (j >= LINES_PER_MA - 1)
+             {
+diff --git a/src/mem.c b/src/mem.c
+index 8aa51e57..a6d72e59 100644
+--- a/src/mem.c
++++ b/src/mem.c
+@@ -954,7 +954,7 @@ int get_chan_all_cb_generic(RIG *rig, vfo_t vfo, chan_cb_t chan_cb,
+          * future data for channel channel_num
+          */
+         chan = NULL;
+-        retval = chan_cb(rig, &chan, chan_list[i].startc, chan_list, arg);
++        retval = chan_cb(rig, vfo, &chan, chan_list[i].startc, chan_list, arg);
+ 
+         if (retval != RIG_OK)
+         {
+@@ -995,7 +995,7 @@ int get_chan_all_cb_generic(RIG *rig, vfo_t vfo, chan_cb_t chan_cb,
+ 
+             chan_next = j < chan_list[i].endc ? j + 1 : j;
+ 
+-            chan_cb(rig, &chan, chan_next, chan_list, arg);
++            chan_cb(rig, vfo, &chan, chan_next, chan_list, arg);
+         }
+     }
+ 
+@@ -1016,7 +1016,7 @@ int set_chan_all_cb_generic(RIG *rig, vfo_t vfo, chan_cb_t chan_cb,
+         for (j = chan_list[i].startc; j <= chan_list[i].endc; j++)
+         {
+ 
+-            chan_cb(rig, &chan, j, chan_list, arg);
++            chan_cb(rig, vfo, &chan, j, chan_list, arg);
+             chan->vfo = RIG_VFO_MEM;
+ 
+             retval = rig_set_channel(rig, vfo, chan);
+@@ -1044,6 +1044,7 @@ struct map_all_s
+  * chan_cb_t to be used for non cb get/set_all
+  */
+ static int map_chan(RIG *rig,
++                    vfo_t vfo,
+                     channel_t **chan,
+                     int channel_num,
+                     const chan_t *chan_list,
+@@ -1343,7 +1344,7 @@ int HAMLIB_API rig_set_mem_all_cb(RIG *rig,
+ 
+     if (rc->set_mem_all_cb)
+     {
+-        return rc->set_mem_all_cb(rig, chan_cb, parm_cb, arg);
++        return rc->set_mem_all_cb(rig, vfo, chan_cb, parm_cb, arg);
+     }
+ 
+ 
+@@ -1411,7 +1412,7 @@ int HAMLIB_API rig_get_mem_all_cb(RIG *rig,
+ 
+     if (rc->get_mem_all_cb)
+     {
+-        return rc->get_mem_all_cb(rig, chan_cb, parm_cb, arg);
++        return rc->get_mem_all_cb(rig, vfo, chan_cb, parm_cb, arg);
+     }
+ 
+     /* if not available, emulate it */
+@@ -1480,7 +1481,7 @@ int HAMLIB_API rig_set_mem_all(RIG *rig,
+     mem_all_arg.vals = (value_t *) vals;
+ 
+     if (rc->set_mem_all_cb)
+-        return rc->set_mem_all_cb(rig, map_chan, map_parm,
++        return rc->set_mem_all_cb(rig, vfo, map_chan, map_parm,
+                                   (rig_ptr_t)&mem_all_arg);
+ 
+     /* if not available, emulate it */
+@@ -1548,7 +1549,7 @@ int HAMLIB_API rig_get_mem_all(RIG *rig,
+     mem_all_arg.vals = vals;
+ 
+     if (rc->get_mem_all_cb)
+-        return rc->get_mem_all_cb(rig, map_chan, map_parm,
++        return rc->get_mem_all_cb(rig, vfo, map_chan, map_parm,
+                                   (rig_ptr_t)&mem_all_arg);
+ 
+     /*
+diff --git a/tests/testcaps.sh b/tests/testcaps.sh
+new file mode 100755
+index 00000000..7032a2ce
+--- /dev/null
++++ b/tests/testcaps.sh
+@@ -0,0 +1,12 @@
++#!/bin/sh
++model=1
++riglist=`rigctl -l | cut -c1-8 | grep -v Rig | tr -d '\n'`
++for model in $riglist
++do
++   result=`rigctl -m $model -u 2>/dev/null | grep warnings`
++#   if [[ "$result" == *"warnings: 0"* ]];then
++       echo $model " " $result
++#   fi
++
++    model=`expr $model + 1`
++done
+-- 
+2.37.4
+
+
+From d7edd89a12be134a904d0a3d5fc3e4f68f111c16 Mon Sep 17 00:00:00 2001
+From: Mike Black W9MDB <mdblack98@yahoo.com>
+Date: Mon, 14 Nov 2022 17:55:25 -0600
+Subject: [PATCH 2/2] Fix memcsv.c https://github.com/Hamlib/Hamlib/issues/1149
+
+---
+ tests/memcsv.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tests/memcsv.c b/tests/memcsv.c
+index 8a107549..82becbf4 100644
+--- a/tests/memcsv.c
++++ b/tests/memcsv.c
+@@ -48,6 +48,7 @@ char csv_sep = ','; /* CSV separator */
+  * Prototypes
+  */
+ static int dump_csv_chan(RIG *rig,
++                         vfo_t vfo,
+                          channel_t **chan,
+                          int channel_num,
+                          const chan_t *chan_list,
+@@ -552,6 +553,7 @@ void dump_csv_name(const channel_cap_t *mem_caps, FILE *f)
+ 
+ /* Caution! Keep the function consistent with dump_csv_name and set_channel_data! */
+ int dump_csv_chan(RIG *rig,
++                  vfo_t vfo,
+                   channel_t **chan_pp,
+                   int channel_num,
+                   const chan_t *chan_list,
+-- 
+2.37.4
+

diff --git a/media-libs/hamlib/hamlib-4.4.ebuild b/media-libs/hamlib/hamlib-4.4.ebuild
index 7a49e5967232..e6b249beabfe 100644
--- a/media-libs/hamlib/hamlib-4.4.ebuild
+++ b/media-libs/hamlib/hamlib-4.4.ebuild
@@ -40,6 +40,7 @@ DOCS=(AUTHORS NEWS PLAN README README.betatester README.developer)
 
 PATCHES=(
 	"${FILESDIR}/${P}-slibtool.patch" # 798273
+	"${FILESDIR}/${P}-fix-clang-warnings.patch" # 880961
 )
 
 S="${WORKDIR}/${MY_P}"


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/hamlib/files/, media-libs/hamlib/
@ 2023-02-16 16:09 Thomas Beierlein
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Beierlein @ 2023-02-16 16:09 UTC (permalink / raw
  To: gentoo-commits

commit:     8d46f4f82f127c3fb83db4709380a675d10a1a9e
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 16 16:08:10 2023 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Thu Feb 16 16:08:10 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d46f4f8

media-libs/hamlib: drop 4.4, 4.5.3

Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 media-libs/hamlib/Manifest                         |   2 -
 .../files/hamlib-4.4-fix-clang-warnings.patch      | 191 ---------------------
 media-libs/hamlib/files/hamlib-4.4-slibtool.patch  |  73 --------
 media-libs/hamlib/hamlib-4.4.ebuild                | 102 -----------
 media-libs/hamlib/hamlib-4.5.3.ebuild              |  97 -----------
 5 files changed, 465 deletions(-)

diff --git a/media-libs/hamlib/Manifest b/media-libs/hamlib/Manifest
index 25ce0be5f8d6..425f7bb3083e 100644
--- a/media-libs/hamlib/Manifest
+++ b/media-libs/hamlib/Manifest
@@ -1,3 +1 @@
-DIST hamlib-4.4.tar.gz 2401399 BLAKE2B 4256b5b4374c62ef4fb957d29deda95aa9d15a8b52b81c5db1c07f3ebbf4c8e48c6c082769cef82c8457b3f813ac00ef7a37136615747f2c93e5275a112891e7 SHA512 37366ba180031de34da447c3d4e0086f156b893f57b5ab9bbc38b8e1f4bf9310fa1a9eb2a6d7884f1f11900dbdb811b4071e023aba571ea0ac5d07ddb122bf7b
-DIST hamlib-4.5.3.tar.gz 2590200 BLAKE2B 7c06a20a1185a2e413fee56231f3e0f6aa77a7585b9853896b00abb773e2e23fc5e97a8a3fbb873528282756ee674b1ca5b2b14f0fe8e6b9b8e8f7e8ffa223f2 SHA512 be3b58c7276c1289d85b4dc9054016757200fde06d66116f7a1687442e53bf322f0a3ae974c9b784cbd0bff0c64b901b97fac74184f4b4a0fdf1f5079d0ea509
 DIST hamlib-4.5.4.tar.gz 2598483 BLAKE2B 7f9654d6aa8c241e58dfdcd4d1967cb0d2415f9cd7a06de68f0ec0e837442db4fd373cfcd08406afca6d6c6c71435358bc5d31969fb0569dea5853b4f3d4f38e SHA512 882fb517a3e5854cdaad506520e96c7736214fe27d1ac053f0510e3c5c08e1bf40217442f519d1c4be92e3d05135c7bd90bc0d60f334f52994e69b2ce9d3f442

diff --git a/media-libs/hamlib/files/hamlib-4.4-fix-clang-warnings.patch b/media-libs/hamlib/files/hamlib-4.4-fix-clang-warnings.patch
deleted file mode 100644
index 832af50e0e6c..000000000000
--- a/media-libs/hamlib/files/hamlib-4.4-fix-clang-warnings.patch
+++ /dev/null
@@ -1,191 +0,0 @@
-From 1aebee2da9d29ff1d1a16e19f23bbff4e0f319a8 Mon Sep 17 00:00:00 2001
-From: Mike Black W9MDB <mdblack98@yahoo.com>
-Date: Mon, 14 Nov 2022 16:37:20 -0600
-Subject: [PATCH 1/2] Fix clang warning on callback functions
- https://github.com/Hamlib/Hamlib/issues/1149
-
----
- include/hamlib/rig.h |  4 +++-
- rigs/aor/aor.c       |  4 ++--
- src/mem.c            | 15 ++++++++-------
- tests/testcaps.sh    | 12 ++++++++++++
- 4 files changed, 25 insertions(+), 10 deletions(-)
- create mode 100755 tests/testcaps.sh
-
-diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h
-index 574c21bd..5dbb5a7b 100644
---- a/include/hamlib/rig.h
-+++ b/include/hamlib/rig.h
-@@ -1675,7 +1675,7 @@ typedef struct cal_table_float cal_table_float_t;
- //! @cond Doxygen_Suppress
- #define EMPTY_FLOAT_CAL { 0, { { 0, 0f }, } }
- 
--typedef int (* chan_cb_t)(RIG *, channel_t **, int, const chan_t *, rig_ptr_t);
-+typedef int (* chan_cb_t)(RIG *, vfo_t vfo, channel_t **, int, const chan_t *, rig_ptr_t);
- typedef int (* confval_cb_t)(RIG *,
-                              const struct confparams *,
-                              value_t *,
-@@ -2024,10 +2024,12 @@ struct rig_caps {
-     int (*get_chan_all_cb)(RIG *rig, vfo_t vfo, chan_cb_t chan_cb, rig_ptr_t);
- 
-     int (*set_mem_all_cb)(RIG *rig,
-+                          vfo_t vfo,
-                           chan_cb_t chan_cb,
-                           confval_cb_t parm_cb,
-                           rig_ptr_t);
-     int (*get_mem_all_cb)(RIG *rig,
-+                          vfo_t vfo,
-                           chan_cb_t chan_cb,
-                           confval_cb_t parm_cb,
-                           rig_ptr_t);
-diff --git a/rigs/aor/aor.c b/rigs/aor/aor.c
-index ad4331d9..3f69d723 100644
---- a/rigs/aor/aor.c
-+++ b/rigs/aor/aor.c
-@@ -1364,7 +1364,7 @@ int aor_get_chan_all_cb(RIG *rig, vfo_t vfo, chan_cb_t chan_cb, rig_ptr_t arg)
-      * future data for channel channel_num
-      */
-     chan = NULL;
--    retval = chan_cb(rig, &chan, chan_next, chan_list, arg);
-+    retval = chan_cb(rig, vfo, &chan, chan_next, chan_list, arg);
- 
-     if (retval != RIG_OK)
-     {
-@@ -1414,7 +1414,7 @@ int aor_get_chan_all_cb(RIG *rig, vfo_t vfo, chan_cb_t chan_cb, rig_ptr_t arg)
-              * provide application with channel data,
-              * and ask for a new channel structure
-              */
--            chan_cb(rig, &chan, chan_next, chan_list, arg);
-+            chan_cb(rig, vfo, &chan, chan_next, chan_list, arg);
- 
-             if (j >= LINES_PER_MA - 1)
-             {
-diff --git a/src/mem.c b/src/mem.c
-index 8aa51e57..a6d72e59 100644
---- a/src/mem.c
-+++ b/src/mem.c
-@@ -954,7 +954,7 @@ int get_chan_all_cb_generic(RIG *rig, vfo_t vfo, chan_cb_t chan_cb,
-          * future data for channel channel_num
-          */
-         chan = NULL;
--        retval = chan_cb(rig, &chan, chan_list[i].startc, chan_list, arg);
-+        retval = chan_cb(rig, vfo, &chan, chan_list[i].startc, chan_list, arg);
- 
-         if (retval != RIG_OK)
-         {
-@@ -995,7 +995,7 @@ int get_chan_all_cb_generic(RIG *rig, vfo_t vfo, chan_cb_t chan_cb,
- 
-             chan_next = j < chan_list[i].endc ? j + 1 : j;
- 
--            chan_cb(rig, &chan, chan_next, chan_list, arg);
-+            chan_cb(rig, vfo, &chan, chan_next, chan_list, arg);
-         }
-     }
- 
-@@ -1016,7 +1016,7 @@ int set_chan_all_cb_generic(RIG *rig, vfo_t vfo, chan_cb_t chan_cb,
-         for (j = chan_list[i].startc; j <= chan_list[i].endc; j++)
-         {
- 
--            chan_cb(rig, &chan, j, chan_list, arg);
-+            chan_cb(rig, vfo, &chan, j, chan_list, arg);
-             chan->vfo = RIG_VFO_MEM;
- 
-             retval = rig_set_channel(rig, vfo, chan);
-@@ -1044,6 +1044,7 @@ struct map_all_s
-  * chan_cb_t to be used for non cb get/set_all
-  */
- static int map_chan(RIG *rig,
-+                    vfo_t vfo,
-                     channel_t **chan,
-                     int channel_num,
-                     const chan_t *chan_list,
-@@ -1343,7 +1344,7 @@ int HAMLIB_API rig_set_mem_all_cb(RIG *rig,
- 
-     if (rc->set_mem_all_cb)
-     {
--        return rc->set_mem_all_cb(rig, chan_cb, parm_cb, arg);
-+        return rc->set_mem_all_cb(rig, vfo, chan_cb, parm_cb, arg);
-     }
- 
- 
-@@ -1411,7 +1412,7 @@ int HAMLIB_API rig_get_mem_all_cb(RIG *rig,
- 
-     if (rc->get_mem_all_cb)
-     {
--        return rc->get_mem_all_cb(rig, chan_cb, parm_cb, arg);
-+        return rc->get_mem_all_cb(rig, vfo, chan_cb, parm_cb, arg);
-     }
- 
-     /* if not available, emulate it */
-@@ -1480,7 +1481,7 @@ int HAMLIB_API rig_set_mem_all(RIG *rig,
-     mem_all_arg.vals = (value_t *) vals;
- 
-     if (rc->set_mem_all_cb)
--        return rc->set_mem_all_cb(rig, map_chan, map_parm,
-+        return rc->set_mem_all_cb(rig, vfo, map_chan, map_parm,
-                                   (rig_ptr_t)&mem_all_arg);
- 
-     /* if not available, emulate it */
-@@ -1548,7 +1549,7 @@ int HAMLIB_API rig_get_mem_all(RIG *rig,
-     mem_all_arg.vals = vals;
- 
-     if (rc->get_mem_all_cb)
--        return rc->get_mem_all_cb(rig, map_chan, map_parm,
-+        return rc->get_mem_all_cb(rig, vfo, map_chan, map_parm,
-                                   (rig_ptr_t)&mem_all_arg);
- 
-     /*
-diff --git a/tests/testcaps.sh b/tests/testcaps.sh
-new file mode 100755
-index 00000000..7032a2ce
---- /dev/null
-+++ b/tests/testcaps.sh
-@@ -0,0 +1,12 @@
-+#!/bin/sh
-+model=1
-+riglist=`rigctl -l | cut -c1-8 | grep -v Rig | tr -d '\n'`
-+for model in $riglist
-+do
-+   result=`rigctl -m $model -u 2>/dev/null | grep warnings`
-+#   if [[ "$result" == *"warnings: 0"* ]];then
-+       echo $model " " $result
-+#   fi
-+
-+    model=`expr $model + 1`
-+done
--- 
-2.37.4
-
-
-From d7edd89a12be134a904d0a3d5fc3e4f68f111c16 Mon Sep 17 00:00:00 2001
-From: Mike Black W9MDB <mdblack98@yahoo.com>
-Date: Mon, 14 Nov 2022 17:55:25 -0600
-Subject: [PATCH 2/2] Fix memcsv.c https://github.com/Hamlib/Hamlib/issues/1149
-
----
- tests/memcsv.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/tests/memcsv.c b/tests/memcsv.c
-index 8a107549..82becbf4 100644
---- a/tests/memcsv.c
-+++ b/tests/memcsv.c
-@@ -48,6 +48,7 @@ char csv_sep = ','; /* CSV separator */
-  * Prototypes
-  */
- static int dump_csv_chan(RIG *rig,
-+                         vfo_t vfo,
-                          channel_t **chan,
-                          int channel_num,
-                          const chan_t *chan_list,
-@@ -552,6 +553,7 @@ void dump_csv_name(const channel_cap_t *mem_caps, FILE *f)
- 
- /* Caution! Keep the function consistent with dump_csv_name and set_channel_data! */
- int dump_csv_chan(RIG *rig,
-+                  vfo_t vfo,
-                   channel_t **chan_pp,
-                   int channel_num,
-                   const chan_t *chan_list,
--- 
-2.37.4
-

diff --git a/media-libs/hamlib/files/hamlib-4.4-slibtool.patch b/media-libs/hamlib/files/hamlib-4.4-slibtool.patch
deleted file mode 100644
index 140534e744b0..000000000000
--- a/media-libs/hamlib/files/hamlib-4.4-slibtool.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From 4fa9a211adbcb1ae9329db41c27854af70f39d64 Mon Sep 17 00:00:00 2001
-From: orbea <orbea@riseup.net>
-Date: Fri, 6 May 2022 17:13:36 -0700
-Subject: [PATCH] bindings: Fix tcl build with slibtool
-
----
- bindings/Makefile.am |  3 ++-
- configure.ac         | 16 ++++++++++++----
- macros/tcl.m4        |  1 +
- 3 files changed, 15 insertions(+), 5 deletions(-)
-
-diff --git a/bindings/Makefile.am b/bindings/Makefile.am
-index f9f17d567..7e2647945 100644
---- a/bindings/Makefile.am
-+++ b/bindings/Makefile.am
-@@ -149,8 +149,9 @@ PKG_VER = $(ABI_VERSION).$(ABI_REVISION)
- DLL = hamlibtcl-$(PKG_VER)$(TCL_SHLIB_SUFFIX)
- 
- nodist_hamlibtcl_la_SOURCES = hamlibtcl_wrap.c
-+hamlibtcl_la_CFLAGS = $(TCL_CFLAGS)
- hamlibtcl_la_LDFLAGS = -no-undefined -module -release $(PKG_VER) -avoid-version
--hamlibtcl_la_LIBADD = $(top_builddir)/src/libhamlib.la $(TCL_LIB_SPEC)
-+hamlibtcl_la_LIBADD = $(top_builddir)/src/libhamlib.la $(TCL_LIB_SPEC) $(TCL_LIBS)
- 
- hamlibtcl_ladir = $(tcldir)
- hamlibtcl_la_DATA = pkgIndex.tcl
-diff --git a/configure.ac b/configure.ac
-index f58eb0925..ab6e120f7 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -589,11 +589,16 @@ AC_ARG_WITH([tcl-binding],
-     [build_tcl=no])
- AC_MSG_RESULT([$build_tcl])
- 
--dnl SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG from macros/tcl.m4
-+dnl tcl.pc or SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG from macros/tcl.m4
- AS_IF([test x"${build_tcl}" = "xyes"],[
--    dnl Search for and load tclConfig.sh.
--    SC_PATH_TCLCONFIG
--    SC_LOAD_TCLCONFIG
-+    dnl Search for and load tcl.pc or tclConfig.sh.
-+    PKG_CHECK_MODULES([TCL], [tcl],
-+        [],
-+        [
-+            AC_MSG_WARN([Unable to find Tcl pkgconfig])
-+            SC_PATH_TCLCONFIG
-+            SC_LOAD_TCLCONFIG
-+        ])
- 
-     tcl_save_CPPFLAGS=$CPPFLAGS
-     CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC"
-@@ -617,6 +622,9 @@ AC_SUBST([TCL_VERSION])
- AC_SUBST([TCL_LIB_SPEC])
- AC_SUBST([TCL_INCLUDE_SPEC])
- AC_SUBST([TCL_SHLIB_SUFFIX])
-+dnl These variables are set once tcl.pc is found.
-+AC_SUBST([TCL_LIBS])
-+AC_SUBST([TCL_CFLAGS])
- 
- 
- dnl Check for lua availability, so we can enable HamlibLua
-diff --git a/macros/tcl.m4 b/macros/tcl.m4
-index feed05ce3..c1d308cf4 100644
---- a/macros/tcl.m4
-+++ b/macros/tcl.m4
-@@ -130,6 +130,7 @@ AC_DEFUN([SC_LOAD_TCLCONFIG], [
- 	. $TCL_BIN_DIR/tclConfig.sh
-     else
-         AC_MSG_RESULT([file not found])
-+        AC_MSG_ERROR([failed to load tclConfig.sh])
-     fi
- 
-     #

diff --git a/media-libs/hamlib/hamlib-4.4.ebuild b/media-libs/hamlib/hamlib-4.4.ebuild
deleted file mode 100644
index 03c7182e96ec..000000000000
--- a/media-libs/hamlib/hamlib-4.4.ebuild
+++ /dev/null
@@ -1,102 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{9..10} )
-MY_P=${P/_rc2/~rc2}
-
-inherit autotools python-single-r1
-
-DESCRIPTION="Ham radio backend rig control libraries"
-HOMEPAGE="http://www.hamlib.org"
-SRC_URI="mirror://sourceforge/hamlib/${MY_P}.tar.gz"
-
-LICENSE="LGPL-2 GPL-2"
-SLOT="0/4.2"
-KEYWORDS="amd64 ~arm ~arm64 ~riscv x86"
-IUSE="doc perl python tcl"
-
-RESTRICT="test"
-
-RDEPEND="
-	=virtual/libusb-0*
-	dev-libs/libxml2
-	sys-libs/readline:0=
-	perl? ( dev-lang/perl )
-	python? ( ${PYTHON_DEPS} )
-	tcl? ( dev-lang/tcl:0= )"
-
-DEPEND=" ${RDEPEND}
-	virtual/pkgconfig
-	dev-lang/swig
-	>=sys-devel/libtool-2.2
-	doc? ( app-doc/doxygen
-		dev-util/source-highlight )"
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-DOCS=(AUTHORS NEWS PLAN README README.betatester README.developer)
-
-PATCHES=(
-	"${FILESDIR}/${P}-slibtool.patch" # 798273
-	"${FILESDIR}/${P}-fix-clang-warnings.patch" # 880961
-)
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
-	use python && python-single-r1_pkg_setup
-}
-
-src_prepare() {
-	default
-
-	# fix hardcoded libdir paths
-	sed -i -e "s#fix}/lib#fix}/$(get_libdir)/hamlib#" \
-		-e "s#fix}/include#fix}/include/hamlib#" \
-		hamlib.pc.in || die "sed failed"
-
-	# Correct install target to whatever INSTALLDIRS says and use vendor
-	# installdirs everywhere (bug #611550)
-	sed -i -e "s#install_site#install#"	\
-	-e 's#MAKEFILE="Hamlib-pl.mk"#MAKEFILE="Hamlib-pl.mk" INSTALLDIRS=vendor#' \
-	bindings/Makefile.am || die "sed failed patching for perl"
-
-	# make building of documentation compatible with autotools-utils
-	sed -i -e "s/doc:/html:/g" doc/Makefile.am || die "sed failed"
-
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		--libdir=/usr/$(get_libdir)/hamlib \
-		--disable-static \
-		--with-xml-support \
-		$(use_with perl perl-binding) \
-		$(use_with python python-binding) \
-		$(use_with tcl tcl-binding)
-}
-
-src_compile() {
-	emake
-	use doc && emake html
-}
-
-src_install() {
-	emake DESTDIR="${D}" install
-
-	use python && python_optimize
-
-	use doc && HTML_DOCS=( doc/html/ )
-	einstalldocs
-
-	insinto /usr/$(get_libdir)/pkgconfig
-	doins hamlib.pc
-
-	echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib
-	doenvd "${T}"/73hamlib
-
-	find "${ED}" -name '*.la' -delete || die
-}

diff --git a/media-libs/hamlib/hamlib-4.5.3.ebuild b/media-libs/hamlib/hamlib-4.5.3.ebuild
deleted file mode 100644
index cc3babe21d69..000000000000
--- a/media-libs/hamlib/hamlib-4.5.3.ebuild
+++ /dev/null
@@ -1,97 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{9..11} )
-MY_P=${P/_rc2/~rc2}
-
-inherit autotools python-single-r1
-
-DESCRIPTION="Ham radio backend rig control libraries"
-HOMEPAGE="http://www.hamlib.org"
-SRC_URI="mirror://sourceforge/hamlib/${MY_P}.tar.gz"
-
-LICENSE="LGPL-2 GPL-2"
-SLOT="0/4.2"
-KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
-IUSE="doc perl python tcl"
-
-RESTRICT="test"
-
-RDEPEND="
-	=virtual/libusb-0*
-	dev-libs/libxml2
-	sys-libs/readline:0=
-	perl? ( dev-lang/perl )
-	python? ( ${PYTHON_DEPS} )
-	tcl? ( dev-lang/tcl:0= )"
-
-DEPEND=" ${RDEPEND}
-	virtual/pkgconfig
-	dev-lang/swig
-	>=sys-devel/libtool-2.2
-	doc? ( app-doc/doxygen
-		dev-util/source-highlight )"
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-DOCS=(AUTHORS NEWS PLAN README README.betatester README.developer)
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
-	use python && python-single-r1_pkg_setup
-}
-
-src_prepare() {
-	default
-
-	# fix hardcoded libdir paths
-	sed -i -e "s#fix}/lib#fix}/$(get_libdir)/hamlib#" \
-		-e "s#fix}/include#fix}/include/hamlib#" \
-		hamlib.pc.in || die "sed failed"
-
-	# Correct install target to whatever INSTALLDIRS says and use vendor
-	# installdirs everywhere (bug #611550)
-	sed -i -e "s#install_site#install#"	\
-	-e 's#MAKEFILE="Hamlib-pl.mk"#MAKEFILE="Hamlib-pl.mk" INSTALLDIRS=vendor#' \
-	bindings/Makefile.am || die "sed failed patching for perl"
-
-	# make building of documentation compatible with autotools-utils
-	sed -i -e "s/doc:/html:/g" doc/Makefile.am || die "sed failed"
-
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		--libdir=/usr/$(get_libdir)/hamlib \
-		--disable-static \
-		--with-xml-support \
-		$(use_with perl perl-binding) \
-		$(use_with python python-binding) \
-		$(use_with tcl tcl-binding)
-}
-
-src_compile() {
-	emake
-	use doc && emake html
-}
-
-src_install() {
-	emake DESTDIR="${D}" install
-
-	use python && python_optimize
-
-	use doc && HTML_DOCS=( doc/html/ )
-	einstalldocs
-
-	insinto /usr/$(get_libdir)/pkgconfig
-	doins hamlib.pc
-
-	echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib
-	doenvd "${T}"/73hamlib
-
-	find "${ED}" -name '*.la' -delete || die
-}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/hamlib/files/, media-libs/hamlib/
@ 2024-01-30 11:43 Thomas Beierlein
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Beierlein @ 2024-01-30 11:43 UTC (permalink / raw
  To: gentoo-commits

commit:     f7eb6f486c17ac0a57e021a0b8ede3fd4c9ef6cc
Author:     Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Mon Jan 29 16:44:57 2024 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Tue Jan 30 11:43:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7eb6f48

media-libs/hamlib: Fix implicit declaration of function exit

Closes: https://bugs.gentoo.org/923108
Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
Closes: https://bugs.gentoo.org/923108
Closes: https://github.com/gentoo/gentoo/pull/35077
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 .../hamlib/files/hamlib-4.5.5-gcc14-fix.patch      |  12 +++
 media-libs/hamlib/hamlib-4.5.5-r2.ebuild           | 101 +++++++++++++++++++++
 2 files changed, 113 insertions(+)

diff --git a/media-libs/hamlib/files/hamlib-4.5.5-gcc14-fix.patch b/media-libs/hamlib/files/hamlib-4.5.5-gcc14-fix.patch
new file mode 100644
index 000000000000..35eade8f68e2
--- /dev/null
+++ b/media-libs/hamlib/files/hamlib-4.5.5-gcc14-fix.patch
@@ -0,0 +1,12 @@
+diff --git a/tests/memload.c b/tests/memload.c
+index 6157a08..4f189d0 100644
+--- a/tests/memload.c
++++ b/tests/memload.c
+@@ -19,6 +19,7 @@
+  */
+ 
+ 
++#include <stdlib.h>
+ #include <hamlib/config.h>
+ 
+ #include <hamlib/rig.h>

diff --git a/media-libs/hamlib/hamlib-4.5.5-r2.ebuild b/media-libs/hamlib/hamlib-4.5.5-r2.ebuild
new file mode 100644
index 000000000000..7c6aabd3b754
--- /dev/null
+++ b/media-libs/hamlib/hamlib-4.5.5-r2.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+MY_P=${P/_rc2/~rc2}
+
+inherit autotools python-single-r1
+
+DESCRIPTION="Ham radio backend rig control libraries"
+HOMEPAGE="https://www.hamlib.github.io"
+SRC_URI="mirror://sourceforge/hamlib/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="LGPL-2+ GPL-2+"
+SLOT="0/4.2"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+IUSE="doc perl python tcl"
+
+RESTRICT="test"
+
+RDEPEND="
+	=virtual/libusb-0*
+	dev-libs/libxml2
+	sys-libs/readline:0=
+	perl? ( dev-lang/perl )
+	python? ( ${PYTHON_DEPS} )
+	tcl? ( dev-lang/tcl:0= )"
+
+DEPEND="${RDEPEND}"
+BDEPEND="
+	virtual/pkgconfig
+	dev-lang/swig
+	>=dev-build/libtool-2.2
+	doc? ( app-text/doxygen
+		dev-util/source-highlight )"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DOCS=(AUTHORS NEWS PLAN README README.betatester README.developer)
+
+PATCHES=(
+	"${FILESDIR}/${PN}-4.5.5-gcc14-fix.patch"
+)
+
+pkg_setup() {
+	use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+	default
+
+	# fix hardcoded libdir paths
+	sed -i -e "s#fix}/lib#fix}/$(get_libdir)/hamlib#" \
+		-e "s#fix}/include#fix}/include/hamlib#" \
+		hamlib.pc.in || die "sed failed"
+
+	# Correct install target to whatever INSTALLDIRS says and use vendor
+	# installdirs everywhere (bug #611550)
+	sed -i -e "s#install_site#install#"	\
+	-e 's#MAKEFILE="Hamlib-pl.mk"#MAKEFILE="Hamlib-pl.mk" INSTALLDIRS=vendor#' \
+	bindings/Makefile.am || die "sed failed patching for perl"
+
+	# make building of documentation compatible with autotools-utils
+	sed -i -e "s/doc:/html:/g" doc/Makefile.am || die "sed failed"
+
+	eautoreconf
+}
+
+src_configure() {
+	econf \
+		--libdir=/usr/$(get_libdir)/hamlib \
+		--disable-static \
+		--with-xml-support \
+		$(use_with perl perl-binding) \
+		$(use_with python python-binding) \
+		$(use_with tcl tcl-binding)
+}
+
+src_compile() {
+	emake
+	use doc && emake html
+}
+
+src_install() {
+	emake DESTDIR="${D}" install
+
+	use python && python_optimize
+
+	use doc && HTML_DOCS=( doc/html/ )
+	einstalldocs
+
+	insinto /usr/$(get_libdir)/pkgconfig
+	doins hamlib.pc
+
+	echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib
+	doenvd "${T}"/73hamlib
+
+	find "${ED}" -name '*.la' -delete || die
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-30 11:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-17  7:09 [gentoo-commits] repo/gentoo:master commit in: media-libs/hamlib/files/, media-libs/hamlib/ Thomas Beierlein
  -- strict thread matches above, loose matches on Subject: below --
2023-02-16 16:09 Thomas Beierlein
2024-01-30 11:43 Thomas Beierlein

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