You are not logged in.

#1 2013-04-23 20:38:57

Debug Mode
Member
Registered: 2013-04-11
Posts: 10

Terminal can't access /sbin/ apps directly

Hi,

I just tried to compile a custom kernel, but it always ends with the error "/home/dm/abs/linux/PKGBUILD: line 152: depmod: command not found".
But I have depmod in /sbin/depmod.
Is it a bug in the script?

Thanks in advance.

Last edited by Debug Mode (2013-05-02 19:52:11)

Offline

#2 2013-04-23 20:45:41

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 4,895

Re: Terminal can't access /sbin/ apps directly

depmod shouldn't be run in the pkgbuild, but in the install script.

You should be using the Official PKGBUILD as a template: https://projects.archlinux.org/svntogit … ages/linux

Offline

#3 2013-04-23 20:51:29

Debug Mode
Member
Registered: 2013-04-11
Posts: 10

Re: Terminal can't access /sbin/ apps directly

Scimmia wrote:

depmod shouldn't be run in the pkgbuild, but in the install script.

You should be using the Official PKGBUILD as a template: https://projects.archlinux.org/svntogit … ages/linux

Thanks, I'll look into it.
Assuming that the ABS version I've used (/core/linux/) is the same one used for the official package, does that mean that there's a workaround?

Offline

#4 2013-04-23 21:44:11

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 4,895

Re: Terminal can't access /sbin/ apps directly

That should be exactly the same as the ABS version. Looking at it, it does call depmod on line 152, I missed that at first glance. hmm...

Offline

#5 2013-05-02 19:21:54

Debug Mode
Member
Registered: 2013-04-11
Posts: 10

Re: Terminal can't access /sbin/ apps directly

It looks like I found the problem.
For some reason I cannot access apps sitting in /sbin/ directly by writing their name anymore.
I searched a bit around, but couldn't find anything.
Any ideas?

Offline

#6 2013-05-02 19:24:01

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: Terminal can't access /sbin/ apps directly

A PATH issue?

Offline

#7 2013-05-02 19:44:55

Debug Mode
Member
Registered: 2013-04-11
Posts: 10

Re: Terminal can't access /sbin/ apps directly

I just "set PATH /bin:/usr/bin:/sbin:/usr/sbin" and screwed it completely up.
Now I have to put in everything manual. >_<
What did I do wrong?
______________________________________________________________________
I reverted it back to "set PATH /bin:/usr/bin" and got it half working again.

Last edited by Debug Mode (2013-05-02 19:51:52)

Offline

Board footer

Powered by FluxBB