public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/telnet-bsd/, net-misc/telnet-bsd/files/
Date: Fri, 26 Jul 2024 08:28:54 +0000 (UTC)	[thread overview]
Message-ID: <1721982489.3dff12d1212dece67236358b1f198108abac2642.grobian@gentoo> (raw)

commit:     3dff12d1212dece67236358b1f198108abac2642
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 26 08:28:09 2024 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Jul 26 08:28:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dff12d1

net-misc/telnet-bsd-1.2-r4: fix compilation on Solaris and Darwin

openpty is defined in util.h or temios.h instead of pty.h on Linux

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 .../files/telnet-bsd-1.2-openpty-util.patch        | 31 ++++++++++++++++++++++
 net-misc/telnet-bsd/telnet-bsd-1.2-r4.ebuild       |  1 +
 2 files changed, 32 insertions(+)

diff --git a/net-misc/telnet-bsd/files/telnet-bsd-1.2-openpty-util.patch b/net-misc/telnet-bsd/files/telnet-bsd-1.2-openpty-util.patch
new file mode 100644
index 000000000000..332e7951ea53
--- /dev/null
+++ b/net-misc/telnet-bsd/files/telnet-bsd-1.2-openpty-util.patch
@@ -0,0 +1,31 @@
+build: openpty is declared in different headers on some systems
+
+Check for util.h next to pty.h for openpty is declared in it on at least
+Darwin systems.  Solaris needs termios.h
+
+--- telnet-bsd-1.2/configure.in	2024-07-26 10:13:46.814937718 +0200
++++ telnet-bsd-1.2/configure.in	2024-07-26 10:19:15.734016104 +0200
+@@ -12,7 +12,7 @@
+ AC_SUBST(PACKAGE)
+ AC_SUBST(VERSION)
+ 
+-AC_CHECK_HEADERS([pty.h utmp.h])
++AC_CHECK_HEADERS([pty.h util.h termios.h utmp.h])
+ 
+ if test x"$ac_default_prefix" = x"/usr"
+ then
+--- telnet-bsd-1.2/telnetd/sys_term.c	2024-07-26 10:13:46.859137256 +0200
++++ telnet-bsd-1.2/telnetd/sys_term.c	2024-07-26 10:19:54.700983107 +0200
+@@ -36,6 +36,12 @@
+ #ifdef HAVE_PTY_H
+ #include <pty.h>
+ #endif
++#ifdef HAVE_UTIL_H
++#include <util.h>
++#endif
++#ifdef HAVE_TERMIOS_H
++#include <termios.h>
++#endif
+ 
+ #include "telnetd.h"
+ #include "pathnames.h"

diff --git a/net-misc/telnet-bsd/telnet-bsd-1.2-r4.ebuild b/net-misc/telnet-bsd/telnet-bsd-1.2-r4.ebuild
index 8ba189abbfd1..582837e7ab7c 100644
--- a/net-misc/telnet-bsd/telnet-bsd-1.2-r4.ebuild
+++ b/net-misc/telnet-bsd/telnet-bsd-1.2-r4.ebuild
@@ -30,6 +30,7 @@ PATCHES=(
 	"${FILESDIR}"/${P}-fbsd.patch
 	"${FILESDIR}"/${PN}-1.2-format-security.patch
 	"${FILESDIR}"/${P}-musl.patch
+	"${FILESDIR}"/${P}-openpty-util.patch
 )
 
 src_prepare() {


             reply	other threads:[~2024-07-26  8:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-26  8:28 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-12-03  1:38 [gentoo-commits] repo/gentoo:master commit in: net-misc/telnet-bsd/, net-misc/telnet-bsd/files/ Thomas Deutschmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1721982489.3dff12d1212dece67236358b1f198108abac2642.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox