From 5de3adfa223931102921ebf6e886e58c63541e47 Mon Sep 17 00:00:00 2001 From: Colin Cogle Date: Thu, 31 Oct 2024 22:39:09 -0400 Subject: [PATCH] Version bump to v1.8. Version 1.8 is upon us, with the main feature being non-blocking I/O. --- CHANGELOG.md | 6 ++++-- NEWS.md | 4 +++- configure.ac | 2 +- debian/changelog | 15 +++++++++++---- gentoo/aprs-weather-submit-1.7.1.ebuild | 17 +++++++++++++++++ gentoo/aprs-weather-submit-1.7.2.ebuild | 17 +++++++++++++++++ gentoo/aprs-weather-submit-1.7.ebuild | 17 +++++++++++++++++ gentoo/aprs-weather-submit-1.8.ebuild | 17 +++++++++++++++++ gentoo/metadata.xml | 5 +++-- man/aprs-weather-submit.man | 4 ++-- src/main.h | 2 +- 11 files changed, 93 insertions(+), 13 deletions(-) create mode 100644 gentoo/aprs-weather-submit-1.7.1.ebuild create mode 100644 gentoo/aprs-weather-submit-1.7.2.ebuild create mode 100644 gentoo/aprs-weather-submit-1.7.ebuild create mode 100644 gentoo/aprs-weather-submit-1.8.ebuild diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ef9d56..6e2e5c9 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,12 @@ # Change Log for `aprs-weather-submit` -## Latest changes -* Converted the APRS-IS socket from blocking to non-blocking, with a default timeout of 15 seconds before the connection is aborted. +## Version 1.8 + +* Converted the APRS-IS socket from blocking to non-blocking, with a default timeout of 15 seconds before the connection is aborted. Thanks to [DL9SEC](https://www.dl9sec.de) for pointing this out. * Added a new parameter, `--timeout`, to set how long the app will wait for the remote server before giving up. * Added support for ISO-compliant compilers (e.g., `gcc -pedantic`). * Fixed a bug where `./configure --disable-aprs-is` was not honored. +* Minor code cleanup. ## Version 1.7.2 diff --git a/NEWS.md b/NEWS.md index 9cf093c..507ffdf 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,6 @@ # aprs-weather-submit news -This file details all of the user-facing changes that are in versions 1.7 of aprs-weather-submit. For more details, please consult the CHANGELOG file or this project's GitHub page. +This file details all of the user-facing changes that are in versions 1.8 of aprs-weather-submit. For more details, please consult the CHANGELOG file or this project's GitHub page. ## Graceful failure @@ -10,6 +10,8 @@ Likewise, there is a new parameter, `--timeout`, that will let you specify a tim If you want the old behavior, specify `--timeout 0`. +Thanks to [DL9SEC](https://www.dl9sec.de) for pointing out this behavior, and I suppose thanks are due to the APRS Tier 2 network for having some servers down long enough for this bug to get pointed out. + ## Building without APRS-IS support diff --git a/configure.ac b/configure.ac index 99c2b8e..6c3e244 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,7 @@ dnl dnl You should have received a copy of the GNU Affero General Public License dnl along with this program. If not, see . -AC_INIT([aprs-weather-submit], [1.7.2-git], [https://github.com/rhymeswithmogul/aprs-weather-submit/]) +AC_INIT([aprs-weather-submit], [1.8], [https://github.com/rhymeswithmogul/aprs-weather-submit/]) AM_INIT_AUTOMAKE([foreign subdir-objects -Wall -Werror]) AC_PREREQ AC_PROG_INSTALL diff --git a/debian/changelog b/debian/changelog index 7ed1c69..c1f50e3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,13 @@ -aprs-weather-submit (1.7.2-1) UNRELEASED; urgency=medium +aprs-weather-submit (1.8-1) UNRELEASED; urgency=medium - * Fixed a bug that prevented creating APRS packets with 100% relative - humidity. (Thanks to Jeff, N9CQS, for the report.) + * Converted all I/O to non-blocking in case of network issues or APRS + server outages. (Thanks to DL9SEC for pointing this out.) + * Thus, there is a new parameter, `--timeout`, which will let you set + a custom timeout value of your choice. (Use `--timeout 0` for the + old blocking behavior.) + * Fixed a bug where `./configure --disable-aprs-is` was not honored by + the configure script. + * Added support for ISO-compliant compilers such as `gcc --pedantic`. + * Code cleanup. - -- Colin Cogle Mon, 23 Sep 2024 09:09:09 -0400 + -- Colin Cogle Thu, 31 Oct 2024 22:45:00 -0400 diff --git a/gentoo/aprs-weather-submit-1.7.1.ebuild b/gentoo/aprs-weather-submit-1.7.1.ebuild new file mode 100644 index 0000000..af9fda5 --- /dev/null +++ b/gentoo/aprs-weather-submit-1.7.1.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +DESCRIPTION="Manually submit weather data to the APRS network." +HOMEPAGE="https://github.com/rhymeswithmogul/${PN}" +SRC_URI="https://github.com/rhymeswithmogul/${PN}/archive/v${PV}.tar.gz" -> "${PF}.tar.gz" +LICENSE="AGPL-3 AGPL-3+" +SLOT="0" +KEYWORDS="amd64 arm arm64 ppc ~ppc-macos ppc64 s390x x86" +IUSE="+aprs-is debug" + +src_configure() { + econf \ + $(use_enable aprs-is) \ + $(use_enable debug) +} diff --git a/gentoo/aprs-weather-submit-1.7.2.ebuild b/gentoo/aprs-weather-submit-1.7.2.ebuild new file mode 100644 index 0000000..af9fda5 --- /dev/null +++ b/gentoo/aprs-weather-submit-1.7.2.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +DESCRIPTION="Manually submit weather data to the APRS network." +HOMEPAGE="https://github.com/rhymeswithmogul/${PN}" +SRC_URI="https://github.com/rhymeswithmogul/${PN}/archive/v${PV}.tar.gz" -> "${PF}.tar.gz" +LICENSE="AGPL-3 AGPL-3+" +SLOT="0" +KEYWORDS="amd64 arm arm64 ppc ~ppc-macos ppc64 s390x x86" +IUSE="+aprs-is debug" + +src_configure() { + econf \ + $(use_enable aprs-is) \ + $(use_enable debug) +} diff --git a/gentoo/aprs-weather-submit-1.7.ebuild b/gentoo/aprs-weather-submit-1.7.ebuild new file mode 100644 index 0000000..af9fda5 --- /dev/null +++ b/gentoo/aprs-weather-submit-1.7.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +DESCRIPTION="Manually submit weather data to the APRS network." +HOMEPAGE="https://github.com/rhymeswithmogul/${PN}" +SRC_URI="https://github.com/rhymeswithmogul/${PN}/archive/v${PV}.tar.gz" -> "${PF}.tar.gz" +LICENSE="AGPL-3 AGPL-3+" +SLOT="0" +KEYWORDS="amd64 arm arm64 ppc ~ppc-macos ppc64 s390x x86" +IUSE="+aprs-is debug" + +src_configure() { + econf \ + $(use_enable aprs-is) \ + $(use_enable debug) +} diff --git a/gentoo/aprs-weather-submit-1.8.ebuild b/gentoo/aprs-weather-submit-1.8.ebuild new file mode 100644 index 0000000..af9fda5 --- /dev/null +++ b/gentoo/aprs-weather-submit-1.8.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +DESCRIPTION="Manually submit weather data to the APRS network." +HOMEPAGE="https://github.com/rhymeswithmogul/${PN}" +SRC_URI="https://github.com/rhymeswithmogul/${PN}/archive/v${PV}.tar.gz" -> "${PF}.tar.gz" +LICENSE="AGPL-3 AGPL-3+" +SLOT="0" +KEYWORDS="amd64 arm arm64 ppc ~ppc-macos ppc64 s390x x86" +IUSE="+aprs-is debug" + +src_configure() { + econf \ + $(use_enable aprs-is) \ + $(use_enable debug) +} diff --git a/gentoo/metadata.xml b/gentoo/metadata.xml index e575f3c..794c36b 100644 --- a/gentoo/metadata.xml +++ b/gentoo/metadata.xml @@ -10,11 +10,12 @@ https://github.com/rhymeswithmogul/aprs-weather-submit/issues - https://github.com/rhymeswithmogul/aprs-weather-submit/blob/master/CHANGELOG.md - https://github.com/rhymeswithmogul/aprs-weather-submit/blob/master/README.md + https://github.com/rhymeswithmogul/aprs-weather-submit/blob/main/CHANGELOG.md + https://github.com/rhymeswithmogul/aprs-weather-submit/blob/main/README.md aprs-weather-submit Compile this app with APRS-IS support. If disabled, this app will only output the raw packet to stdout. + Compile with debugging output. diff --git a/man/aprs-weather-submit.man b/man/aprs-weather-submit.man index 2ce88e3..5d1cab3 100644 --- a/man/aprs-weather-submit.man +++ b/man/aprs-weather-submit.man @@ -18,7 +18,7 @@ .\" .\" (This page is best viewed with the command: groff -man) .\" -.TH aprs\-weather\-submit 1 "2024-10-29" "Version 1.7.2-git" "aprs-weather-submit General Help" +.TH aprs\-weather\-submit 1 "2024-10-31" "Version 1.8" "aprs-weather-submit General Help" .SH NAME aprs\-weather\-submit \- manually submit weather station data to the APRS-IS network .SH DESCRIPTION @@ -310,7 +310,7 @@ APRS Version 1.2.1, "Weather Updates to the Spec" (24 Mar 2011) .UE .SH AUTHOR AND COPYRIGHT -.BR aprs\-weather\-submit ", version 1.7.2-git" +.BR aprs\-weather\-submit ", version 1.8" .br Copyright (c) 2019-2024 Colin Cogle. .br diff --git a/src/main.h b/src/main.h index bafc9d5..80b3f8d 100755 --- a/src/main.h +++ b/src/main.h @@ -28,7 +28,7 @@ with this program. If not, see . #endif #ifndef VERSION -#define VERSION "1.7.2" +#define VERSION "1.8" #endif /* We don't support networking on DOS at this time.