It is a dependency of new rxvt-unicode.

Signed-off-by: Alexander Kanavin <[email protected]>
---
 meta/conf/distro/include/maintainers.inc      |  1 +
 ...akeLists.txt-do-not-run-cross-binary.patch | 24 +++++++++++++++++++
 meta/recipes-sato/libptytty/libptytty_2.0.bb  | 13 ++++++++++
 3 files changed, 38 insertions(+)
 create mode 100644 
meta/recipes-sato/libptytty/libptytty/0001-CMakeLists.txt-do-not-run-cross-binary.patch
 create mode 100644 meta/recipes-sato/libptytty/libptytty_2.0.bb

diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index 8e86ea45d2..4fe655fdcd 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -373,6 +373,7 @@ RECIPE_MAINTAINER:pn-libpng = "Anuj Mittal 
<[email protected]>"
 RECIPE_MAINTAINER:pn-libportal = "Alexander Kanavin <[email protected]>"
 RECIPE_MAINTAINER:pn-libproxy = "Anuj Mittal <[email protected]>"
 RECIPE_MAINTAINER:pn-libpthread-stubs = "Alexander Kanavin 
<[email protected]>"
+RECIPE_MAINTAINER:pn-libptytty = "Alexander Kanavin <[email protected]>"
 RECIPE_MAINTAINER:pn-libpsl = "Anuj Mittal <[email protected]>"
 RECIPE_MAINTAINER:pn-librepo = "Wang Mingyu <[email protected]>"
 RECIPE_MAINTAINER:pn-librsvg = "Anuj Mittal <[email protected]>"
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 @@
+From 989ae1f3651686c1f1046fe1c1596d564c3f452d Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin <[email protected]>
+Date: Mon, 13 Dec 2021 14:33:01 +0100
+Subject: [PATCH] CMakeLists.txt: do not run cross-binary
+
+Upstream-Status: Inappropriate [issue reported at 
https://github.com/yusiwen/libptytty/issues/2]
+Signed-off-by: Alexander Kanavin <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c1ad6c0..3bd4d97 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -271,7 +271,7 @@ if(NOT HAVE_UNIX_FDPASS)
+   message(FATAL_ERROR "libptytty requires unix-compliant filehandle passing 
ability")
+ endif()
+ 
+-check_c_source_runs(
++check_c_source_compiles(
+   "
+    #include <grp.h>
+    #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 @@
+SUMMARY = " OS independent and secure pty/tty and utmp/wtmp/lastlog handling"
+HOMEPAGE = "http://software.schmorp.de/pkg/libptytty.html";
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
+
+SRC_URI = "http://dist.schmorp.de/libptytty/libptytty-${PV}.tar.gz \
+           file://0001-CMakeLists.txt-do-not-run-cross-binary.patch \
+           "
+SRC_URI[sha256sum] = 
"8033ed3aadf28759660d4f11f2d7b030acf2a6890cb0f7926fb0cfa6739d31f7"
+
+inherit cmake
+
+EXTRA_OECMAKE:append:libc-musl = " -DWTMP_SUPPORT=OFF"
-- 
2.20.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#159761): 
https://lists.openembedded.org/g/openembedded-core/message/159761
Mute This Topic: https://lists.openembedded.org/mt/87755577/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to