pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

(ham/wsjtx) Add more debug info on lib/shmem.cpp



Module Name:	pkgsrc-wip
Committed By:	Makoto Fujiwara <makoto%if.t.u-tokyo.ac.jp@localhost>
Pushed By:	mef
Date:		Wed Oct 22 22:56:59 2025 +0900
Changeset:	7bb5b45608a9549ecac7e2e1730403a30e2bcd7a

Modified Files:
	wsjtx/distinfo
	wsjtx/patches/patch-lib_shmem.cpp

Log Message:
(ham/wsjtx) Add more debug info on lib/shmem.cpp

1. The application needs root privilige to access USB serial
2. But running with root privilige disable Audio
   configuration option selection (at menu)
3. So change USB-serial device permision and
   run with normal user
4. Then following sub process get abort.
/usr/pkg/bin/jt9 -s WSJT-X -w 1 -m 3 -e /usr/pkg/bin -a /home/username/.local/share/WSJT-X -t /tmp/WSJT-X
5. To debug that situation, printf etc. are added

(with the help of kanoh (@NetBSD.org), tristelo@)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7bb5b45608a9549ecac7e2e1730403a30e2bcd7a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 wsjtx/distinfo                    |  2 +-
 wsjtx/patches/patch-lib_shmem.cpp | 26 +++++++++++++++++++++++---
 2 files changed, 24 insertions(+), 4 deletions(-)

diffs:
diff --git a/wsjtx/distinfo b/wsjtx/distinfo
index bf2ef87baf..4189b59965 100644
--- a/wsjtx/distinfo
+++ b/wsjtx/distinfo
@@ -7,6 +7,6 @@ SHA1 (patch-CMakeLists.txt) = 8ebdc56e3679429863121d0e4739ab433a628743
 SHA1 (patch-CMake_Modules_FindUsb.cmake) = 6c9edbce838731a026d682ddd0a1174bbceb4e89
 SHA1 (patch-Radio.cpp) = a798fbf75deb3cd49c6a15cd1e74530bb955ee23
 SHA1 (patch-hamlib.patch) = 8d5cec646b0fe317a41da3ed66a299ea1510c87f
-SHA1 (patch-lib_shmem.cpp) = 064f5961a998e34f7d84032c28f5760bca90eb7f
+SHA1 (patch-lib_shmem.cpp) = 0520cc1972bdfd692f5fc9f046c7a8a2b8f8eff4
 SHA1 (patch-widgets_FrequencyDeltaLineEdit.cpp) = 61adc842a3b8fae64d9a4110bed1f8d209d3e5d7
 SHA1 (patch-widgets_FrequencyLineEdit.cpp) = a70cf22461eb6a54fcf052079c7e5de6e4085313
diff --git a/wsjtx/patches/patch-lib_shmem.cpp b/wsjtx/patches/patch-lib_shmem.cpp
index b6a1a0d88f..093a32603c 100644
--- a/wsjtx/patches/patch-lib_shmem.cpp
+++ b/wsjtx/patches/patch-lib_shmem.cpp
@@ -1,10 +1,30 @@
+$NetBSD$
+
+Add abort information
+----------------------
+1. The application needs root privilige to access USB serial
+2. But running with root privilige disable Audio
+   configuration option selection (at menu)
+3. So change USB-serial device permision and
+   run with normal user
+4. Then following sub process get abort.
+/usr/pkg/bin/jt9 -s WSJT-X -w 1 -m 3 -e /usr/pkg/bin -a /home/username/.local/share/WSJT-X -t /tmp/WSJT-X
+5. To debug that situation, printf etc. are added
+
+(with the help of kanoh (@NetBSD.org), tristelo@)
+
 --- lib/shmem.cpp.orig	2021-12-28 18:31:58.000000000 +0900
-+++ lib/shmem.cpp	2025-10-21 12:05:31.817683726 +0900
-@@ -11,7 +11,11 @@ extern "C"
++++ lib/shmem.cpp	2025-10-21 21:39:52.440958978 +0900
+@@ -10,8 +10,15 @@ struct jt9com;
+ extern "C"
  {
    bool shmem_create (int nsize) {return shmem.create(nsize);}
-   void shmem_setkey (char * const mykey) {shmem.setKey(QLatin1String{mykey});}
+-  void shmem_setkey (char * const mykey) {shmem.setKey(QLatin1String{mykey});}
 -  bool shmem_attach () {return shmem.attach();}
++  void shmem_setkey (char * const mykey) {
++	printf("%04d %s\n", __LINE__, mykey);
++       shmem.setKey(QLatin1String{mykey});
++   }
 +  bool shmem_attach() {
 +   bool rc = shmem.attach();
 +   if (!rc) puts(shmem.errorString().toStdString().c_str());


Home | Main Index | Thread Index | Old Index