onboard: restore, update to 1.4.3+7.

This commit is contained in:
classabbyamp
2026-03-31 23:51:05 -04:00
committed by classabbyamp
parent 6ed0e8585b
commit acb0d29c63
3 changed files with 88 additions and 1 deletions
+67
View File
@@ -0,0 +1,67 @@
From 1c95f64aa342147387ce4b1b7269a5c8b34bd898 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 13 Jul 2017 09:01:04 -0700
Subject: [PATCH] pypredict/lm: Define error API if platform does not have it
error() API is not implemented across all libcs on linux
e.g. musl does not provide it.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Onboard/pypredict/lm/lm.cpp | 1 -
Onboard/pypredict/lm/lm.h | 13 +++++++++++++
Onboard/pypredict/lm/lm_dynamic.cpp | 2 --
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/Onboard/pypredict/lm/lm.cpp b/Onboard/pypredict/lm/lm.cpp
index 2e64296..37ae241 100644
--- a/Onboard/pypredict/lm/lm.cpp
+++ b/Onboard/pypredict/lm/lm.cpp
@@ -19,7 +19,6 @@
#include <stdlib.h>
#include <stdio.h>
-#include <error.h>
#include <algorithm>
#include <cmath>
#include <string>
diff --git a/Onboard/pypredict/lm/lm.h b/Onboard/pypredict/lm/lm.h
index ed4164a..b8b63ee 100644
--- a/Onboard/pypredict/lm/lm.h
+++ b/Onboard/pypredict/lm/lm.h
@@ -32,6 +32,19 @@
#include <algorithm>
#include <string>
+#if defined(HAVE_ERROR_H)
+#include <error.h>
+#else
+#include <err.h>
+#define _onboard_error(S, E, F, ...) do { \
+ if (E) \
+ err(S, F ": %s", ##__VA_ARGS__, strerror(E)); \
+ else \
+ err(S, F, ##__VA_ARGS__); \
+} while(0)
+
+#define error _onboard_error
+#endif
// break into debugger
// step twice to come back out of the raise() call into known code
diff --git a/Onboard/pypredict/lm/lm_dynamic.cpp b/Onboard/pypredict/lm/lm_dynamic.cpp
index 7c62824..e7c7f40 100644
--- a/Onboard/pypredict/lm/lm_dynamic.cpp
+++ b/Onboard/pypredict/lm/lm_dynamic.cpp
@@ -17,8 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <error.h>
-
#include "lm_dynamic.h"
using namespace std;
--
2.13.2
+21
View File
@@ -0,0 +1,21 @@
# Template file for 'onboard'
pkgname=onboard
version=1.4.3+7
revision=1
build_style=python3-pep517
hostmakedepends="intltool python3-setuptools python3-distutils-extra pkg-config glib"
makedepends="python3-devel gtk+3-devel dconf-devel eudev-libudev-devel
hunspell-devel libXi-devel libXtst-devel libcanberra-devel libxkbfile-devel"
depends="iso-codes python3-gobject python3-cairo python3-dbus"
short_desc="Onscreen keyboard useful for everybody"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-3.0-or-later"
homepage="https://github.com/onboard-osk/onboard"
distfiles="https://github.com/onboard-osk/onboard/archive/refs/tags/${version/+/-}.tar.gz"
checksum=c216882ff29e682ad2e1b643957920018ce3f406c07b50d211fc5a4bee2e5404
make_check=no # cannot open display
noverifypydeps=yes
post_install() {
rm "${DESTDIR}/usr/share/glib-2.0/schemas/gschemas.compiled"
}
-1
View File
@@ -645,7 +645,6 @@ replaces="
oce-devel<=0.18.3_1
oce<=0.18.3_1
olive<=0.1.2_2
onboard<=1.4.1_14
onionshare<=2.2_5
openbazaar<=1.1.13_2
opencl-clhpp<=2.0.15_1