public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-misc/vmnet/, net-misc/vmnet/files/
@ 2024-05-09  0:22 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2024-05-09  0:22 UTC (permalink / raw
  To: gentoo-commits

commit:     d2d791f87eed8fed2f3acf505b4daeae047170a9
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Tue Apr  2 08:43:32 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu May  9 00:20:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2d791f8

net-misc/vmnet: replace missing function with posix one, for musl

I'd rather drop this package, instead.

[sam: Revbump.]

Closes: https://bugs.gentoo.org/897956
Closes: https://bugs.gentoo.org/907888
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/36055
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../vmnet-0.4-replace-missing-musl-function.patch    | 20 ++++++++++++++++++++
 .../{vmnet-0.4-r1.ebuild => vmnet-0.4-r2.ebuild}     |  3 ++-
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/net-misc/vmnet/files/vmnet-0.4-replace-missing-musl-function.patch b/net-misc/vmnet/files/vmnet-0.4-replace-missing-musl-function.patch
new file mode 100644
index 000000000000..5c4fbb152e9e
--- /dev/null
+++ b/net-misc/vmnet/files/vmnet-0.4-replace-missing-musl-function.patch
@@ -0,0 +1,20 @@
+diff -ru vmnet-0.4.orig/vmnet.c vmnet-0.4/vmnet.c
+--- vmnet-0.4.orig/vmnet.c	2024-04-02 08:35:41.521216356 +0000
++++ vmnet-0.4/vmnet.c	2024-04-02 08:37:34.760604906 +0000
+@@ -50,6 +50,7 @@
+  */
+ 
+ #define _GNU_SOURCE
++#define _XOPEN_SOURCE 700
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <pwd.h>
+@@ -197,7 +198,7 @@
+ 	int master, slave;
+ 	char name[1024];
+ 
+-	master = getpt();
++	master = posix_openpt(O_RDWR);
+ 	if (master < 0) {
+ 		return 0;
+ 	}

diff --git a/net-misc/vmnet/vmnet-0.4-r1.ebuild b/net-misc/vmnet/vmnet-0.4-r2.ebuild
similarity index 91%
rename from net-misc/vmnet/vmnet-0.4-r1.ebuild
rename to net-misc/vmnet/vmnet-0.4-r2.ebuild
index 1fadcfdf151c..9f2519617783 100644
--- a/net-misc/vmnet/vmnet-0.4-r1.ebuild
+++ b/net-misc/vmnet/vmnet-0.4-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -25,6 +25,7 @@ DEPEND="${RDEPEND}"
 PATCHES=(
 	"${WORKDIR}"/${P/-/_}-1.diff
 	"${FILESDIR}"/${PN}-0.4-Fix-build-with-Clang-16.patch
+	"${FILESDIR}"/${PN}-0.4-replace-missing-musl-function.patch
 )
 
 src_compile() {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-09  0:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-09  0:22 [gentoo-commits] repo/gentoo:master commit in: net-misc/vmnet/, net-misc/vmnet/files/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox