Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631512 - dev-lang/nim missing nimble
Summary: dev-lang/nim missing nimble
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-20 12:02 UTC by s
Modified: 2017-10-10 09:55 UTC (History)
0 users

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 s 2017-09-20 12:02:55 UTC
It seems that dev-lang/nim is compiled in some old way, and as a result nimble (nim's package manager) is missing, however since 0.15 version it's bundled inot nim.

See https://nim-lang.org/install_unix.html for reference.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2017-10-10 09:04:03 UTC
From what I read in https://nim-lang.org/install_unix.html there is no installation instructions at all.

https://github.com/nim-lang/Nim/blob/devel/install.txt#L27 describes    
install.sh script which is supposed to install build results but it
lacks some nim binaries.  I'll add them manually.
Comment 2 s 2017-10-10 09:27:20 UTC
I think the issue is that command "./koch tools" is missing, which should build nim tools like nimble and others. 

> To complete the installation you should also build Nim's tools like
> ``nimsuggest``, ``nimble`` or ``nimgrep`` via::
>
>  nim c koch
>  koch tools

And I didn't find koch in installed files. It's only present during merge in emerge workdir. So that's a place to compile all those tools.

Probably adding "tools" flag enabled by default would be nice idea.
Comment 3 Larry the Git Cow gentoo-dev 2017-10-10 09:51:15 UTC
The bug has been closed via the following commit(s):

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

commit be0fece992d7f4d1d9487860fecb95d78ebcd479
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2017-10-10 09:50:54 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2017-10-10 09:51:06 +0000

    dev-lang/nim: build and install 'nimble' and other tools, bug #631512
    
    Defauld './koch install' installs only 'nim' binary as it uses
    'compiler.ini' configurations. But there is no easy way to install
    other tools.
    
    After this change ebuild builds and installs tools explicitly
    to expose them to users.
    
    Reported-by: s@zxc.pp.ua
    Closes: https://bugs.gentoo.org/631512
    Package-Manager: Portage-2.3.11, Repoman-2.3.3

 dev-lang/nim/nim-0.17.2-r1.ebuild | 65 +++++++++++++++++++++++++++++++++++++++
 dev-lang/nim/nim-0.17.2.ebuild    |  6 +++-
 2 files changed, 70 insertions(+), 1 deletion(-)
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2017-10-10 09:55:56 UTC
(In reply to s from comment #2)
> I think the issue is that command "./koch tools" is missing, which should
> build nim tools like nimble and others. 
> 
> > To complete the installation you should also build Nim's tools like
> > ``nimsuggest``, ``nimble`` or ``nimgrep`` via::
> >
> >  nim c koch
> >  koch tools
> 
> And I didn't find koch in installed files. It's only present during merge in
> emerge workdir. So that's a place to compile all those tools.
> 
> Probably adding "tools" flag enabled by default would be nice idea.

Yes, building tools is straightforward. Installation is not (looks like it's not supported at all). I've copied binaries manually as:
    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be0fece992d7f4d1d9487860fecb95d78ebcd479

but i didn't test it much. Chances are more files are needed to the tools to work properly in standalone mode.