diff options
Diffstat (limited to 'net-misc/vmnet')
-rw-r--r-- | net-misc/vmnet/Manifest | 3 | ||||
-rw-r--r-- | net-misc/vmnet/files/vmnet-0.4-replace-missing-musl-function.patch | 20 | ||||
-rw-r--r-- | net-misc/vmnet/vmnet-0.4-r2.ebuild (renamed from net-misc/vmnet/vmnet-0.4-r1.ebuild) | 16 |
3 files changed, 31 insertions, 8 deletions
diff --git a/net-misc/vmnet/Manifest b/net-misc/vmnet/Manifest index a09261fe886e..5a502b56413e 100644 --- a/net-misc/vmnet/Manifest +++ b/net-misc/vmnet/Manifest @@ -1,5 +1,6 @@ AUX vmnet-0.4-Fix-build-with-Clang-16.patch 745 BLAKE2B 65c71509f65c583d0b816b97599f1c0a913b7d97df6fc2ea9a8b31db588e281590493c0ea3e819af721549346b1cb9dbf0b632f2b8db84e894a71a3eb2e3e411 SHA512 e7966fb5d2650884606f156be84c77df08dc732fefde99567ba5c4cdb5f30311b5e6e6b8089abe9d3a6d8c3a022dd843a9d8b600dd848fb7d45a7371d358424d +AUX vmnet-0.4-replace-missing-musl-function.patch 454 BLAKE2B 934c9b35feb6231fb040944fb7c53be9688597e66c88adacc276e5235b269f731ad115abdbeb12c779e8a99a7a2a25120c573ac016b33d6bab359580c9ba0ca0 SHA512 e51f35d8596659d7250573506e0aea664255ef9bdf7dc8f918ef6ba6a7ca433d58e7ef50bff8a3fed68a29f244fef176c668551202ef6f52fc2836be63a0988c DIST vmnet-0.4.tar.gz 11362 BLAKE2B 5fdf7e44719752cf47d45d254f25b70343d479a1da0b28cd7fd56735aa67830335599d29664d785b4b21a219a58c48cf2c07f1eb635b126142dda226b6c21ce2 SHA512 b5872caf2d0eadd24323901aff527deb6c57b9286d03362c252b87cd84b7dd8db149b86636fbd4b499810caff41aa948fa7b1f2163159d4b665c2feae279375d DIST vmnet_0.4-1.diff.gz 5084 BLAKE2B 1388b8b8334b8d8d16ba920f201f7d7f59bf7202418817cd251689370cc97ce6c2c089a397dabcd96f65193358a4ec606fbfdc9061e876f7232303d0601be070 SHA512 d9518917d0c9ebb75ffe82f002c0c5375b3a932fdd31d2cb4818a9956d586fb0e1bfedc166cdad3ab7a5ead8109afdee2893c68fe69b426c57965648188de4af -EBUILD vmnet-0.4-r1.ebuild 1061 BLAKE2B 460911986f7729956e2b9417015f416166c2b62b399deb8c7061801083d5be687bbcf3495114da06ca6d95075113628f3427b0d61380509c6b6f0285b04c3e9d SHA512 e3da273a5f179dda9985e82f14268d3194b89057a06d42f37529bededf0131f4e4e064e1bd7136f1526bd14400ef84cabd307900227f4c90b6f07fa7912d190d +EBUILD vmnet-0.4-r2.ebuild 1150 BLAKE2B 0ed6f11fc0f9915ceddf0dd948e825239652becb3b27a95775d533469ec71c22e7af14ec879da7f95bcf18e5f810286381d8dedf189d8f5d0a95d1552ffbd474 SHA512 c15750ce4f599867b095ed0c017740b745a20d447f34ef77c9669444bb0342a0e09087bc9181d5ac9403cc55de5ca5a0d8cc7e131a18202cb0fa9442aa7efb4f MISC metadata.xml 217 BLAKE2B fbec54484edc2603e95c90cb231985ef0f5f8d2cd48632ac8a097a4dac165499ff4cc087b1ca9ba6a4368bbb73b3af1ee99622a80df17072e1a340c345a2ee64 SHA512 7d3fc456b183fe7bdea26fb6edce39f702741a762b74cd7d2159a0ba85af50ebc87fbd921c926692a6164d50c9faf6b19680ab96528819bb06aaeac679e42de2 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 index 1fadcfdf151c..573adbc16276 100644 --- a/net-misc/vmnet/vmnet-0.4-r1.ebuild +++ b/net-misc/vmnet/vmnet-0.4-r2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit flag-o-matic +inherit flag-o-matic toolchain-funcs DESCRIPTION="A simple virtual networking program - SLIP over stdin/out" HOMEPAGE="ftp://ftp.xos.nl/pub/linux/vmnet/" @@ -11,13 +11,14 @@ HOMEPAGE="ftp://ftp.xos.nl/pub/linux/vmnet/" # So this might be better but it's a different filename # http://ftp.debian.org/debian/pool/main/${PN:0:1}/${PN}/${P/-/_}.orig.tar.gz # We use the debian patch anyway -SRC_URI="ftp://ftp.xos.nl/pub/linux/${PN}/${P}.tar.gz - mirror://debian/pool/main/${PN:0:1}/${PN}/${P/-/_}-1.diff.gz" +SRC_URI=" + ftp://ftp.xos.nl/pub/linux/${PN}/${P}.tar.gz + mirror://debian/pool/main/${PN:0:1}/${PN}/${P/-/_}-1.diff.gz +" LICENSE="GPL-2+" SLOT="0" KEYWORDS="~amd64 ~ppc x86" -IUSE="" RDEPEND="sys-apps/net-tools" DEPEND="${RDEPEND}" @@ -25,11 +26,12 @@ 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() { append-ldflags -Wl,-z,now - emake + emake CC="$(tc-getCC)" } src_install() { |