Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652214 - dev-lang/moarvm-2018.03 incorrect dependency on libuv
Summary: dev-lang/moarvm-2018.03 incorrect dependency on libuv
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-02 13:59 UTC by cono
Modified: 2019-08-06 05:30 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cono 2018-04-02 13:59:19 UTC
Hello,

Build fails with following errors:
linking moar
./libmoar.so: undefined reference to `uv_fs_copyfile'
./libmoar.so: undefined reference to `uv_os_getppid'


I looked through the history of libuv:

uv_fs_copyfile

* | e0d31e9e - Wed, 16 Aug 2017 10:11:33 -0400 (8 months ago) (tag: v1.14.0)
| |           2017.08.17, Version 1.14.0 (Stable) - cjihrig
* | 766d7e9c - Fri, 14 Jul 2017 21:47:36 -0400 (9 months ago)
| |           unix, windows: add basic uv_fs_copyfile() - cjihrig


uv_os_getppid

* | d68779f0 - Mon, 6 Nov 2017 11:20:52 -0500 (5 months ago) (tag: v1.16.0)
| |           2017.11.07, Version 1.16.0 (Stable) - cjihrig
* | 695afe83 - Thu, 27 Jul 2017 10:24:01 +0200 (8 months ago)
| |           unix,win: add uv_if_{indextoname,indextoiid} - Pekka Nikander
* | fd02ab68 - Thu, 22 Jun 2017 18:59:34 +0200 (9 months ago)
| |           pipe: allow access from other users - Bartosz Sosnowski
* | 96ea5ac9 - Fri, 3 Nov 2017 12:43:59 +0100 (5 months ago)
| |           test: no extra new line in skipped test output - Bartosz Sosnowski
* | e7f4e9ec - Fri, 3 Nov 2017 12:18:52 +0100 (5 months ago)
| |           tty, win: get SetWinEventHook pointer at startup - Bartosz Sosnowski
* | 6445cc63 - Fri, 17 Jul 2015 22:21:54 -0400 (2 years, 9 months ago)
| |           win, pipe: null-initialize stream->shutdown_req - Jameson Nash
* | 7a93b12f - Fri, 6 Oct 2017 22:02:33 -0400 (6 months ago)
| |           doc: mark uv_default_loop() as not thread safe - rayrase
* | d2101b0b - Thu, 5 Oct 2017 22:44:25 +0200 (6 months ago)
| |           test: fix const qualification compiler warning - Ben Noordhuis
* | e8e6a8a5 - Mon, 30 Oct 2017 19:21:34 -0400 (5 months ago)
| |           unix,win: add uv_os_getppid() - cjihrig

So at minimum 16.1 version should be as a dependency.

Unmasked/compiled/tested:
% perl6 -e '$*VM.say; shell "eix -e moarvm | grep Installed"; shell "eix -e libuv | grep Installed"'
moar (2018.03)
     Installed versions:  2018.03^t(04:35:05 PM 04/02/2018)(jit -asan -clang -debug -doc -optimize -static-libs -ubsan)
     Installed versions:  1.16.1^t(04:33:36 PM 04/02/2018)(-static-libs ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
Comment 1 José María Fernández González 2018-04-04 15:02:58 UTC
Hi, the same has just happened to me. I got it fixed following the advice of installing a newer version of
Comment 2 José María Fernández González 2018-04-04 15:18:52 UTC
I can confirm this problem, and I have tested the proposed solution. I have updated to dev-libs/libuv-1.20.0 , and dev-lang/moarvm-2018.03 has been installed with no issues.
Comment 3 Enne Eziarc 2018-08-28 17:49:10 UTC
Is this still a bug? libuv-1.20.0 is now the oldest version in-tree.
Comment 4 mimosinnet 2019-01-28 17:55:03 UTC
Emerge of dev-lang/moarvm-2018.12 fails with:

<---
linking moar
./libmoar.so: undefined reference to `uv_open_osfhandle'
collect2: error: ld returned 1 exit status
--->

dev-libs/libuv-1.23.0 implements 'uv_open_osfhandle'
(http://docs.libuv.org/en/v1.x/fs.html)

dev-lang/moarvm-2018.12 emerges after updating to dev-libs/libuv-1.23.0

Thanks for opening the bug! :D 

Cheers!
Comment 5 José María Fernández González 2019-02-06 14:42:11 UTC
Same here. After upgrading from libuv-1.20.0 to libuv-1.25.0, it worked.
Comment 6 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2019-08-06 03:25:05 UTC
This appears to be fixed in moarvm >= 2019.03 since:

commit a7206ebc5dc9629dbec61038c7b17acbc9576946
Author: Patrick Lauer <patrick@gentoo.org>
Date:   2019-03-27 07:45:23 +1300

    dev-lang/moarvm: Restrict libuv dependency
    
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Patrick Lauer <patrick@gentoo.org>

diff --git a/dev-lang/moarvm/moarvm-2019.03.ebuild b/dev-lang/moarvm/moarvm-2019.03.ebuild
index de8b1e480a4..6acaeabca78 100644
--- a/dev-lang/moarvm/moarvm-2019.03.ebuild
+++ b/dev-lang/moarvm/moarvm-2019.03.ebuild
@@ -24,7 +24,7 @@ SLOT="0"
 IUSE="asan clang debug doc +jit static-libs optimize ubsan"
 
 RDEPEND="dev-libs/libatomic_ops
-               dev-libs/libuv
+               >=dev-libs/libuv-1.26
                dev-lang/lua:=
                virtual/libffi"
 DEPEND="${RDEPEND}

If this can be confirmed to be fixed in these versions, this bug can be closed when older versions are pruned.
Comment 7 Larry the Git Cow gentoo-dev 2019-08-06 05:30:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4c741dcc514649766450573e7ad6ee0d6594a56

commit c4c741dcc514649766450573e7ad6ee0d6594a56
Author:     Kent Fredric <kentnl@gentoo.org>
AuthorDate: 2019-08-06 05:28:23 +0000
Commit:     Kent Fredric <kentnl@gentoo.org>
CommitDate: 2019-08-06 05:29:38 +0000

    dev-lang/moarvm: Fix minimum libuv re bug #652214
    
    I figured that, seeing I've just -r1 bumped all versions for
    bug #639538, that I may as well backport the min-version libuv fix
    for all the versions while I'm there.
    
    Closes: https://bugs.gentoo.org/652214
    Package-Manager: Portage-2.3.66, Repoman-2.3.16
    Signed-off-by: Kent Fredric <kentnl@gentoo.org>

 dev-lang/moarvm/moarvm-2018.06-r1.ebuild | 2 +-
 dev-lang/moarvm/moarvm-2018.08-r1.ebuild | 2 +-
 dev-lang/moarvm/moarvm-2018.09-r1.ebuild | 2 +-
 dev-lang/moarvm/moarvm-2018.12-r1.ebuild | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)