summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/libptytty
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-12-15 23:40:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-12-17 09:56:14 +0000
commit542f2f0e96b2c60a3c240ee911de76db9e79988d (patch)
tree6bfeffca0b96fe12f771ffe420cb7ddd394f28c6 /meta/recipes-sato/libptytty
parent53d17b5fb148f1f36fd9c34736c13b8de390aef9 (diff)
downloadpoky-542f2f0e96b2c60a3c240ee911de76db9e79988d.tar.gz
libptytty: add recipe
It is a dependency of new rxvt-unicode. (From OE-Core rev: 57e257922c6da75376723b0088c677b13856d42f) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato/libptytty')
-rw-r--r--meta/recipes-sato/libptytty/libptytty/0001-CMakeLists.txt-do-not-run-cross-binary.patch24
-rw-r--r--meta/recipes-sato/libptytty/libptytty_2.0.bb13
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-sato/libptytty/libptytty/0001-CMakeLists.txt-do-not-run-cross-binary.patch b/meta/recipes-sato/libptytty/libptytty/0001-CMakeLists.txt-do-not-run-cross-binary.patch
new file mode 100644
index 0000000000..d3a458f100
--- /dev/null
+++ b/meta/recipes-sato/libptytty/libptytty/0001-CMakeLists.txt-do-not-run-cross-binary.patch
@@ -0,0 +1,24 @@
1From 989ae1f3651686c1f1046fe1c1596d564c3f452d Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Mon, 13 Dec 2021 14:33:01 +0100
4Subject: [PATCH] CMakeLists.txt: do not run cross-binary
5
6Upstream-Status: Inappropriate [issue reported at https://github.com/yusiwen/libptytty/issues/2]
7Signed-off-by: Alexander Kanavin <alex@linutronix.de>
8---
9 CMakeLists.txt | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/CMakeLists.txt b/CMakeLists.txt
13index c1ad6c0..3bd4d97 100644
14--- a/CMakeLists.txt
15+++ b/CMakeLists.txt
16@@ -271,7 +271,7 @@ if(NOT HAVE_UNIX_FDPASS)
17 message(FATAL_ERROR "libptytty requires unix-compliant filehandle passing ability")
18 endif()
19
20-check_c_source_runs(
21+check_c_source_compiles(
22 "
23 #include <grp.h>
24 #include <sys/stat.h>
diff --git a/meta/recipes-sato/libptytty/libptytty_2.0.bb b/meta/recipes-sato/libptytty/libptytty_2.0.bb
new file mode 100644
index 0000000000..85e3a36fba
--- /dev/null
+++ b/meta/recipes-sato/libptytty/libptytty_2.0.bb
@@ -0,0 +1,13 @@
1SUMMARY = " OS independent and secure pty/tty and utmp/wtmp/lastlog handling"
2HOMEPAGE = "http://software.schmorp.de/pkg/libptytty.html"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
5
6SRC_URI = "http://dist.schmorp.de/libptytty/libptytty-${PV}.tar.gz \
7 file://0001-CMakeLists.txt-do-not-run-cross-binary.patch \
8 "
9SRC_URI[sha256sum] = "8033ed3aadf28759660d4f11f2d7b030acf2a6890cb0f7926fb0cfa6739d31f7"
10
11inherit cmake
12
13EXTRA_OECMAKE:append:libc-musl = " -DWTMP_SUPPORT=OFF"