From 83ad08eba761040429ebaf17e5fe11e7306420a1 Mon Sep 17 00:00:00 2001 From: "Jesus P Rey (Chuso)" Date: Wed, 24 Sep 2025 21:45:20 +0200 Subject: [PATCH] net-p2p/mldonkey: Drop 3.1.7-r4 It's quite old and blocking dev-lang/ocaml-4.09 removal. Bug: https://bugs.gentoo.org/963374 Signed-off-by: Jesus P Rey (Chuso) Part-of: https://github.com/gentoo/gentoo/pull/43931 Closes: https://github.com/gentoo/gentoo/pull/43931 Signed-off-by: Alfredo Tupone --- net-p2p/mldonkey/Manifest | 1 - .../mldonkey/files/cpp17-byte-namespace.patch | 63 --------- net-p2p/mldonkey/mldonkey-3.1.7-r4.ebuild | 132 ------------------ 3 files changed, 196 deletions(-) delete mode 100644 net-p2p/mldonkey/files/cpp17-byte-namespace.patch delete mode 100644 net-p2p/mldonkey/mldonkey-3.1.7-r4.ebuild diff --git a/net-p2p/mldonkey/Manifest b/net-p2p/mldonkey/Manifest index 0a0a129e2a904..d304d3df13260 100644 --- a/net-p2p/mldonkey/Manifest +++ b/net-p2p/mldonkey/Manifest @@ -1,2 +1 @@ -DIST mldonkey-3.1.7-2.tar.bz2 2801815 BLAKE2B f914648b4e2a358e51518f3b58dc0df803cdb28d7706783504644266690514c17c2cae0688011073391db221eb8f38c7cbaf1e913220d824e41ca2e23d4c8587 SHA512 11cb0fa0db95e918c291009f4121a1b34cf485e5ac6826a72a4dc520dd78d21ced40d205fa26eb451c7d3eb31f2193cbb64e46c99c85dc932762c1bcc4da4934 DIST mldonkey-3.2.1.tar.bz2 2839613 BLAKE2B 87d02fb4dd81a894b241793cfe872a0e0860ca33c2dceae7c6a6b2e17b2dc8bf0352e5a8a573dc0088b62acc1e9b7ff8608514355dc96397b997117bcf7e06bf SHA512 7f2657ea3e5eedf2429b157f8157178d8357c19d323f812f3bf1cd965ee209aaa760b8af6983603eeccf53efea7321f41910eca1c5649ce1baf5bc6cf0284f0c diff --git a/net-p2p/mldonkey/files/cpp17-byte-namespace.patch b/net-p2p/mldonkey/files/cpp17-byte-namespace.patch deleted file mode 100644 index 0b1ca44e8eed5..0000000000000 --- a/net-p2p/mldonkey/files/cpp17-byte-namespace.patch +++ /dev/null @@ -1,63 +0,0 @@ -diff -ur a/src/utils/lib/CryptoPP.cc b/src/utils/lib/CryptoPP.cc ---- a/src/utils/lib/CryptoPP.cc 2021-07-06 22:20:46.675183781 +0200 -+++ b/src/utils/lib/CryptoPP.cc 2021-07-06 22:20:51.025182789 +0200 -@@ -9482,7 +9482,7 @@ - #define PRIVKEYSIZE 384 - - static Signer* s_signer = NULL; --static byte m_publicKey[MAXPUBKEYSIZE+1]; -+static CryptoPP::byte m_publicKey[MAXPUBKEYSIZE+1]; - static unsigned long m_publicKeyLen = 0; - - void cc_lprintf_nl(const char * msg, bool verb); -@@ -9555,7 +9555,7 @@ - - - // return signatureSize (buf) --int createSignature(byte *buf, int maxLen, byte *key, int keyLen, uint32_t cInt, uint8_t ipType, uint32_t ip) { -+int createSignature(CryptoPP::byte *buf, int maxLen, CryptoPP::byte *key, int keyLen, uint32_t cInt, uint8_t ipType, uint32_t ip) { - - int result = 0; - -@@ -9570,7 +9570,7 @@ - CryptoPP::SecByteBlock sBB(s_signer->SignatureLength()); - CryptoPP::AutoSeededRandomPool rng; - -- byte bArray[MAXPUBKEYSIZE+9]; -+ CryptoPP::byte bArray[MAXPUBKEYSIZE+9]; - - memcpy(bArray,key,keyLen); - PokeUInt32(bArray+keyLen,cInt); -@@ -9597,7 +9597,7 @@ - - } - --int verifySignature(byte *key, int keyLen, byte *sig, int sigLen, uint32_t cInt, uint8_t ipType, uint32_t ip) { -+int verifySignature(CryptoPP::byte *key, int keyLen, CryptoPP::byte *sig, int sigLen, uint32_t cInt, uint8_t ipType, uint32_t ip) { - using namespace CryptoPP; - - bool result = false; -@@ -9607,7 +9607,7 @@ - StringSource ss_Pubkey(key, keyLen,true,0); - Verifier pubKey(ss_Pubkey); - -- byte bArray[MAXPUBKEYSIZE+9]; -+ CryptoPP::byte bArray[MAXPUBKEYSIZE+9]; - - memcpy(bArray,m_publicKey,m_publicKeyLen); - PokeUInt32(bArray+m_publicKeyLen,cInt); -diff -ur a/src/utils/lib/CryptoPP.h b/src/utils/lib/CryptoPP.h ---- a/src/utils/lib/CryptoPP.h 2021-07-06 22:20:46.675183781 +0200 -+++ b/src/utils/lib/CryptoPP.h 2021-07-06 22:20:56.271848200 +0200 -@@ -181,10 +181,9 @@ - # define __USE_W32_SOCKETS - #endif - --typedef unsigned char byte; // put in global namespace to avoid ambiguity with other byte typedefs -- - NAMESPACE_BEGIN(CryptoPP) - -+typedef unsigned char byte; // put in global namespace to avoid ambiguity with other byte typedefs - typedef unsigned short word16; - typedef unsigned int word32; - diff --git a/net-p2p/mldonkey/mldonkey-3.1.7-r4.ebuild b/net-p2p/mldonkey/mldonkey-3.1.7-r4.ebuild deleted file mode 100644 index c3c087a517c16..0000000000000 --- a/net-p2p/mldonkey/mldonkey-3.1.7-r4.ebuild +++ /dev/null @@ -1,132 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -inherit autotools flag-o-matic systemd toolchain-funcs - -DESCRIPTION="Multi-network P2P application written in Ocaml, with Gtk, web & telnet interface" -HOMEPAGE="http://mldonkey.sourceforge.net/ https://github.com/ygrek/mldonkey" -SRC_URI="https://github.com/ygrek/mldonkey/releases/download/release-${PV//./-}-2/${P}-2.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" - -IUSE="bittorrent doc fasttrack gd gnutella magic +ocamlopt upnp" - -RDEPEND="dev-lang/perl - dev-ml/camlp4:= - gd? ( media-libs/gd:2=[truetype] ) - magic? ( sys-apps/file ) - upnp? ( - net-libs/libnatpmp - net-libs/miniupnpc:= - ) - acct-user/p2p - app-arch/bzip2 - sys-libs/zlib -" -# Can't yet use newer OCaml -# -unsafe-string usage: -# https://github.com/ygrek/mldonkey/issues/46 -DEPEND="${RDEPEND} -