Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] enewgroup & enewuser comand not found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jebriggsy
n00b
n00b


Joined: 22 Aug 2013
Posts: 26
Location: USA

PostPosted: Tue Apr 08, 2014 7:49 pm    Post subject: [SOLVED] enewgroup & enewuser comand not found Reply with quote

Hello,

I am trying to install I2P on my system. I found that it isn't available in the main portage db, so I created a local directory using this guide. I then found a pre-made ebuild located here and downloaded the relevant files to /usr/local/portage/net-p2p/i2p, minus the manifest. I created a manifest using ebuild *.ebuild manifest while in said directory.

After that I ran emerge -v i2p and it runs fine until just after compiling the source. Portage ouputs two warnings:

Code:

/var/tmp/portage/net-p2p/i2p-0.9.11/temp/environment: line 4008: enewgroup: command not found
/var/tmp/portage/net-p2p/i2p-0.9.11/temp/environment: line 4009: enewuser: command not found


After this, it continues installation without a problem. However, when I try to start the service via /etc/init.d/i2p start, it fails with:

Code:

 * start-stop-daemon: user `i2p' not found
cat: /run/i2p.pid: No such file or directory                                                                            [ !! ]
 * ERROR: i2p failed to start


I know that the newgroup/user functions are part of eutils.eclass, so I copied the file to /usr/local/portage/eclass hoping that it would solve the problem, thinking maybe portage uses relative paths or something (grasping at straws). But it didn't work. The only similar threads I found in search said that it was a problem with shadow, which I do have installed, or a problem with my path, which I wouldn't know where to start troubleshooting.

Can anyone point me in the right direction?


Last edited by jebriggsy on Sat Nov 22, 2014 6:38 am; edited 1 time in total
Back to top
View user's profile Send private message
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Wed Apr 09, 2014 7:23 pm    Post subject: Reply with quote

Actually there are many overlays having i2p ebuild see e.g. http://gentoo.mahdi.cz/net-p2p:i2p.html

You could use layman when using build(s) from overlay by layman -a <overlay> ... no need to copy over files manually then, see https://www.gentoo.org/proj/en/overlays/userguide.xml or https://wiki.gentoo.org/wiki/Layman once having done this, just emerge as usual.

Hope this helps as usually there are other dependencies in overlays to save you problems when just picking sigle build.
_________________
http://gentoo.mahdi.cz <-- gentoo package search engine
Back to top
View user's profile Send private message
ron.ohara
n00b
n00b


Joined: 01 Feb 2012
Posts: 2

PostPosted: Fri Nov 21, 2014 9:52 am    Post subject: [SOLVED] ebuild missing enewgroup and enewuser Reply with quote

I have now worked out why you get

enewgroup: command not found

and

enewuser: command not found.

In the past, these commands were part of 'inherit eutils'
These days, they are part of 'inherit user'

If you get this error, just change the 'inherit' line in the ebuild to also inherit 'user'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum