* [gentoo-commits] repo/gentoo:master commit in: app-misc/detachtty/files/, app-misc/detachtty/
@ 2023-08-08 5:45 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2023-08-08 5:45 UTC (permalink / raw
To: gentoo-commits
commit: 639d4a4dc311f12ab961e1d048f2e3e86ffc8413
Author: Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Tue Aug 8 05:40:13 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Aug 8 05:43:13 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=639d4a4d
app-misc/detachtty: Fix call to undeclared library function strerror
And EAPI update from 7 to 8
Closes: https://bugs.gentoo.org/894544
Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/32159
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-misc/detachtty/detachtty-11.0.0-r1.ebuild | 30 +++++++++++++++
.../files/detachtty-11.0.0-clang16-build-fix.patch | 43 ++++++++++++++++++++++
2 files changed, 73 insertions(+)
diff --git a/app-misc/detachtty/detachtty-11.0.0-r1.ebuild b/app-misc/detachtty/detachtty-11.0.0-r1.ebuild
new file mode 100644
index 000000000000..48a44f103550
--- /dev/null
+++ b/app-misc/detachtty/detachtty-11.0.0-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Attach/detach from interactive processes across the network"
+HOMEPAGE="https://github.com/cosmos72/detachtty"
+SRC_URI="https://github.com/cosmos72/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+PATCHES=(
+ "${FILESDIR}/${P}-sparc.patch"
+ "${FILESDIR}/${P}-clang16-build-fix.patch"
+)
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin attachtty detachtty
+ doman "${PN}.1"
+ dosym detachtty.1 /usr/share/man/man1/attachtty.1
+ einstalldocs
+}
diff --git a/app-misc/detachtty/files/detachtty-11.0.0-clang16-build-fix.patch b/app-misc/detachtty/files/detachtty-11.0.0-clang16-build-fix.patch
new file mode 100644
index 000000000000..62a3cc1c3eb1
--- /dev/null
+++ b/app-misc/detachtty/files/detachtty-11.0.0-clang16-build-fix.patch
@@ -0,0 +1,43 @@
+Bug: https://bugs.gentoo.org/894544
+Upstream PR: https://github.com/cosmos72/detachtty/pull/6
+--- a/attachtty.c
++++ b/attachtty.c
+@@ -22,6 +22,7 @@
+
+ #include <errno.h>
+ #include <time.h>
++#include <string.h>
+
+ #include "config.h"
+
+--- a/config.h
++++ b/config.h
+@@ -24,7 +24,7 @@
+ #define DETACHTTY_CONFIG_H
+
+ #include <netdb.h>
+-#include <sys/poll.h>
++#include <poll.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
+--- a/copy-stream.c
++++ b/copy-stream.c
+@@ -23,6 +23,7 @@
+ #include <errno.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
++#include <string.h>
+
+ #include "config.h"
+
+--- a/detachtty.c
++++ b/detachtty.c
+@@ -26,6 +26,7 @@
+ #include <sys/stat.h>
+ #include <pty.h>
+ #include <fcntl.h>
++#include <string.h>
+
+ #ifndef UNIX_PATH_MAX
+ # define UNIX_PATH_MAX 108
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-08 5:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08 5:45 [gentoo-commits] repo/gentoo:master commit in: app-misc/detachtty/files/, app-misc/detachtty/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox