Created attachment 501130 [details] mldonkey-3.1.6-r2.ebuild MLDonkey fails to compile with OCaml >= 4.06. <dev-lang/ocaml-4.06 should be added to the dependencies. Upstream confirmation: https://github.com/ygrek/mldonkey/issues/24#issuecomment-336798653
Comment on attachment 501130 [details] mldonkey-3.1.6-r2.ebuild --- mldonkey-3.1.6-r1.ebuild 2018-01-06 16:32:33.314664113 +0100 +++ mldonkey-3.1.6-r2.ebuild 2018-05-13 13:46:13.147972460 +0200 @@ -1,13 +1,14 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="6" +WANT_AUTOCONF=2.5 inherit versionator flag-o-matic eutils autotools toolchain-funcs user IUSE="bittorrent doc fasttrack gd gnutella gtk guionly magic +ocamlopt upnp" -DESCRIPTION="Multi-network P2P application written in Ocaml, with Gtk, web & telnet interface" +DESCRIPTION="A multi-network P2P application written in Ocaml, with its own Gtk GUI, web and telnet interface" HOMEPAGE="http://mldonkey.sourceforge.net/" SRC_URI="https://github.com/ygrek/mldonkey/releases/download/release-$(replace_all_version_separators '-')/${P}.tar.bz2" @@ -27,7 +28,8 @@ " DEPEND="${RDEPEND} - >=dev-lang/ocaml-3.10.2[ocamlopt?]" + >=dev-lang/ocaml-3.10.2[ocamlopt?] + <dev-lang/ocaml-4.06" MLUSER="p2p"
This issue is still actual. I ran in to it yesterday. For 2 Years this problem is localized and a fix for the ebuild proposed and no one has applied the ebuild. Another upstream confirmation is here: https://github.com/ygrek/mldonkey/issues/27 It looks like someone has written a patch but it's not implemented yet. as long as neither the mldonkey guys get it fixed nor we have a patched ebuild, this is what you can do to GET YOUR OWN mldonkey compile: Add those line's to /etc/portage/package.mask #for net-p2p/mldonkey-3.1.6-r1 >=dev-lang/ocaml-4.06 or put the an ebuild to your local ebuilds with Jeroen's patch. The latter is more work but will allow updating dev-lang/ocaml automatically as soon as a new version of mldonkey (with hopefully a fix for this problem) is available.
It works for me now with dev-lang/ocaml-4.09.0 and dev-ml/num and the latest mldonkey version from Git master.
A new mldonkey version was released recently which fixes this and other issues. I submitted a pull request: https://github.com/gentoo/gentoo/pull/16648
*** Bug 705582 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b70b64f68dfe5c09a67f106131448b4fc3f7643 commit 1b70b64f68dfe5c09a67f106131448b4fc3f7643 Author: Jesus P Rey (Chuso) <gentoo@chuso.net> AuthorDate: 2020-07-11 11:59:23 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-10-17 02:24:29 +0000 net-p2p/mldonkey: version bump to 3.1.7 Signed-off-by: Jesus P Rey <gentoo@chuso.net> Bug: https://bugs.gentoo.org/595798 Bug: https://bugs.gentoo.org/705582 Closes: https://bugs.gentoo.org/582136 Closes: https://bugs.gentoo.org/615322 Closes: https://bugs.gentoo.org/635932 Closes: https://bugs.gentoo.org/704684 Signed-off-by: Sam James <sam@gentoo.org> net-p2p/mldonkey/Manifest | 1 + net-p2p/mldonkey/mldonkey-3.1.7.ebuild | 183 +++++++++++++++++++++++++++++++++ 2 files changed, 184 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe816fa31d9e80e8e8347f6e3a141972a67b4385 commit fe816fa31d9e80e8e8347f6e3a141972a67b4385 Author: Jesus P Rey (Chuso) <gentoo@chuso.net> AuthorDate: 2020-09-20 17:28:33 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-10-17 02:24:33 +0000 net-p2p/mldonkey: new maintainer Signed-off-by: Jesus P Rey <gentoo@chuso.net> Bug: https://bugs.gentoo.org/635932 Closes: https://github.com/gentoo/gentoo/pull/16648 Signed-off-by: Sam James <sam@gentoo.org> net-p2p/mldonkey/metadata.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2c924217d62588a10c038f621925686c534f992 commit f2c924217d62588a10c038f621925686c534f992 Author: Jesus P Rey (Chuso) <gentoo@chuso.net> AuthorDate: 2020-07-11 11:58:56 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-10-17 02:24:19 +0000 acct-user/p2p: new package (378) Signed-off-by: Jesus P Rey <gentoo@chuso.net> Bug: https://bugs.gentoo.org/635932 Signed-off-by: Sam James <sam@gentoo.org> acct-user/p2p/metadata.xml | 12 ++++++++++++ acct-user/p2p/p2p-0.ebuild | 11 +++++++++++ 2 files changed, 23 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5720416e908c7f0f5c4333472dee5dc5563823ec commit 5720416e908c7f0f5c4333472dee5dc5563823ec Author: Jesus P Rey (Chuso) <gentoo@chuso.net> AuthorDate: 2020-07-11 11:57:32 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-10-17 02:23:47 +0000 acct-group/p2p: new package (378) Signed-off-by: Jesus P Rey <gentoo@chuso.net> Bug: https://bugs.gentoo.org/635932 Signed-off-by: Sam James <sam@gentoo.org> acct-group/p2p/metadata.xml | 12 ++++++++++++ acct-group/p2p/p2p-0.ebuild | 8 ++++++++ 2 files changed, 20 insertions(+)
Reopening as discussed on #gentoo-proxy-maint as the currently stable version in Portage is still affected. As a workaround until it's stabilized,, you can accept the unstable keyword in net-p2p/mldonkey-3.1.7.