Github messages for voidlinux
 help / color / mirror / Atom feed
From: DavidKaep <DavidKaep@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] New Package: Direwolf
Date: Tue, 29 Dec 2020 10:46:04 +0100	[thread overview]
Message-ID: <20201229094604.xdxNZblgHJ7SW9x4bB46E9LnxCr1JYYjJN0W39l9gTc@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27510@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 386 bytes --]

There is an updated pull request by DavidKaep against master on the void-packages repository

https://github.com/DavidKaep/void-packages direwolf
https://github.com/void-linux/void-packages/pull/27510

[WIP] New Package: Direwolf
This is a template for Direwolf, a ham radio ax.25 software tnc.

A patch file from https://github.com/void-linux/void-packages/pull/27510.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-direwolf-27510.patch --]
[-- Type: text/x-diff, Size: 3941 bytes --]

From 7a72f5e8651a3cd451ae20f5efe91d7bd17b6f94 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20K=C3=A4ppeler?= <d.kaeppeler@gmx.de>
Date: Mon, 28 Dec 2020 23:35:12 +0100
Subject: [PATCH] New Package: Direwolf

---
 srcpkgs/direwolf/patches/10-Fix-cross.patch | 13 ++++++++
 srcpkgs/direwolf/patches/20-Fix-musl.patch  | 37 +++++++++++++++++++++
 srcpkgs/direwolf/template                   | 15 +++++++++
 3 files changed, 65 insertions(+)
 create mode 100644 srcpkgs/direwolf/patches/10-Fix-cross.patch
 create mode 100644 srcpkgs/direwolf/patches/20-Fix-musl.patch
 create mode 100644 srcpkgs/direwolf/template

diff --git a/srcpkgs/direwolf/patches/10-Fix-cross.patch b/srcpkgs/direwolf/patches/10-Fix-cross.patch
new file mode 100644
index 00000000000..fdf8d2f2db0
--- /dev/null
+++ b/srcpkgs/direwolf/patches/10-Fix-cross.patch
@@ -0,0 +1,13 @@
+Reason: Set RUN_NEON for cross compiling with arm architectures
+
+diff -ru CMakeLists.txt CMakeLists.txt
+--- CMakeLists.txt	2020-10-28 01:45:30.000000000 +0100
++++ d/CMakeLists.txt	2020-12-29 09:49:49.006446795 +0100
+@@ -8,6 +8,7 @@
+ set(direwolf_VERSION_PATCH "0")
+ set(direwolf_VERSION_SUFFIX "")
+ 
++set(RUN_NEON "advanced")
+ # options
+ option(FORCE_SSE "Compile with SSE instruction only" OFF)
+ option(FORCE_SSSE3 "Compile with SSSE3 instruction only" OFF)
diff --git a/srcpkgs/direwolf/patches/20-Fix-musl.patch b/srcpkgs/direwolf/patches/20-Fix-musl.patch
new file mode 100644
index 00000000000..4a6c2066912
--- /dev/null
+++ b/srcpkgs/direwolf/patches/20-Fix-musl.patch
@@ -0,0 +1,37 @@
+Reason: Fixes local declarations when using musl
+
+diff -ru conf/CMakeLists.txt conf/CMakeLists.txt
+--- conf/CMakeLists.txt	2020-10-28 01:45:30.000000000 +0100
++++ conf/CMakeLists.txt	2020-12-29 09:49:13.435238905 +0100
+@@ -26,7 +26,7 @@
+ 
+ # install udev rules for CM108
+ if(LINUX)
+-  install(FILES "${CUSTOM_CONF_DIR}/99-direwolf-cmedia.rules" DESTINATION /etc/udev/rules.d/)
++  install(FILES "${CUSTOM_CONF_DIR}/99-direwolf-cmedia.rules" DESTINATION /usr/lib/udev/rules.d/)
+ endif()
+ 
+ install(FILES "${CMAKE_BINARY_DIR}/direwolf.conf" DESTINATION ${INSTALL_CONF_DIR})
+diff -ru src/decode_aprs.c src/decode_aprs.c
+--- src/decode_aprs.c	2020-10-28 01:45:30.000000000 +0100
++++ src/decode_aprs.c	2020-12-29 09:53:24.021103609 +0100
+@@ -3930,7 +3930,7 @@
+  * models before getting to the more generic APY.
+  */
+ 
+-#if defined(__WIN32__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__APPLE__)
++#if ! defined(__GLIBC__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__APPLE__)
+ 	    qsort (tocalls, num_tocalls, sizeof(struct tocalls_s), tocall_cmp);
+ #else
+ 	    qsort (tocalls, num_tocalls, sizeof(struct tocalls_s), (__compar_fn_t)tocall_cmp);
+diff -ru src/direwolf.h src/direwolf.h
+--- src/direwolf.h	2020-10-28 01:45:30.000000000 +0100
++++ src/direwolf.h	2020-12-29 09:50:44.182848501 +0100
+@@ -282,7 +282,7 @@
+ char *strcasestr(const char *S, const char *FIND);
+ 
+ 
+-#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__APPLE__)
++#if ! defined(__GLIBC__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__APPLE__)
+ 
+ // strlcpy and strlcat should be in string.h and the C library.
diff --git a/srcpkgs/direwolf/template b/srcpkgs/direwolf/template
new file mode 100644
index 00000000000..d1046766766
--- /dev/null
+++ b/srcpkgs/direwolf/template
@@ -0,0 +1,15 @@
+# Template file for 'direwolf'
+pkgname=direwolf
+version=1.6
+revision=1
+build_style=cmake
+hostmakedepends="gcc make hamlib"
+makedepends="alsa-lib-devel libudev-devel hamlib-devel"
+depends="hamlib"
+short_desc="Software AX.25/APRS TNC"
+maintainer="David Käppeler <d.kaeppeler@gmx.de>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/wb2osz/direwolf"
+distfiles="https://github.com/wb2osz/direwolf/archive/${version}.tar.gz"
+checksum=208b0563c9b339cbeb0e1feb52dc18ae38295c40c0009d6381fc4acb68fdf660
+python_version=3

  parent reply	other threads:[~2020-12-29  9:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-28 22:41 [PR PATCH] " DavidKaep
2020-12-28 22:59 ` [PR REVIEW] " ericonr
2020-12-28 23:01 ` ericonr
2020-12-28 23:04 ` [PR PATCH] [Updated] " DavidKaep
2020-12-28 23:10 ` [PR REVIEW] " ericonr
2020-12-28 23:47 ` DavidKaep
2020-12-29  9:46 ` DavidKaep [this message]
2020-12-29  9:52 ` DavidKaep
2021-01-06 12:02 ` [PR REVIEW] " sgn
2021-01-06 14:51 ` ericonr
2021-04-18  4:47 ` ericonr
2021-04-18  4:47 ` ericonr
2021-04-18  4:47 ` ericonr
2021-04-18  4:47 ` ericonr
2022-05-01  2:14 ` github-actions
2022-05-16  2:07 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201229094604.xdxNZblgHJ7SW9x4bB46E9LnxCr1JYYjJN0W39l9gTc@z \
    --to=davidkaep@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).