That's the whole point of Prefix:
    "Gentoo Prefix runs unprivileged, meaning no root user or rights are
required to use it."
Nima

On Thu, Jun 7, 2012 at 5:27 AM, Michael Higgins <li...@evolone.org> wrote:

> On Wed, 6 Jun 2012 15:22:45 +1000
> Nima Talebi <n...@it.net.au> wrote:
>
> > Hi All,
> >
> > Could someone point out what's the deal with the following:
> >
> > % emerge --oneshot virtual/os-headers
> > Calculating dependencies... done!
> >
> > >>> Verifying ebuild manifests
> >
> > >>> Starting parallel fetch
> >
> > >>> Emerging (1 of 2) sys-kernel/linux-headers-3.3
> >  * gentoo-headers-base-3.3.tar.xz RMD160 SHA1 SHA256 size ;-) ...
> >                                               [ ok ]
> >  * gentoo-headers-3.3-2.tar.xz RMD160 SHA1 SHA256 size ;-) ...
> >                                                [ ok ]
> > >>> Unpacking source...
> > >>> Unpacking gentoo-headers-base-3.3.tar.xz to
> > /home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work
> >
> > This process ultimately fails, because the unpacking drops the files
> > into gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work as
> > root, and then later things begin to fail as it (running as a
> > non-root user) doesn't have permissions to chmod, chown, etc:
> >
> > ...
> > chmod: changing permissions of
> > `gentoo-headers-base-3.3/include/drm/drm_dp_helper.h': Operation not
> > permitted
> > chmod: changing permissions of
> > `gentoo-headers-base-3.3/include/drm/drm_hashtab.h': Operation not
> > permitted chmod: changing permissions of
> > `gentoo-headers-base-3.3/include/drm/drm_usb.h': Operation not
> > permitted chmod: changing permissions of
> > `gentoo-headers-base-3.3/include/drm/drm_fixed.h': Operation not
> > permitted chmod: changing permissions of
> > `gentoo-headers-base-3.3/include/drm/drmP.h': Operation not permitted
> > chmod: changing permissions of
> > `gentoo-headers-base-3.3/include/drm/drm_mm.h': Operation not
> > permitted chmod: changing permissions of
> > `gentoo-headers-base-3.3/include/drm/vmwgfx_drm.h': Operation not
> > permitted chmod: changing permissions of
> > `gentoo-headers-base-3.3/include/drm/i810_drm.h': Operation not
> > permitted chmod: changing permissions of
> > `gentoo-headers-base-3.3/include/drm/drm_crtc.h': Operation not
> > permitted chmod: changing permissions of
> > `gentoo-headers-base-3.3/include/config': Operation not permitted
> > make headers_install
> >
> INSTALL_HDR_PATH=/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/image///home/talebi/gentoo/usr/include/..
> > ARCH=x86 CROSS_COMPILE=x86_64-pc-linux-gnu-
> > make[1]: Entering directory
> >
> `/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work/gentoo-headers-base-3.3'
> >   CHK     include/linux/version.h
> > /home/talebi/gentoo/tmp/usr/bin/bash: include/linux/version.h.tmp:
> > Permission denied
> > make[1]: *** [include/linux/version.h] Error 1
> > make[1]: Leaving directory
> >
> `/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work/gentoo-headers-base-3.3'
> > emake failed
> >  * ERROR: sys-kernel/linux-headers-3.3 failed (install phase):
> >  *   (no error message)
> >  *
> >  * Call stack:
> >  *     ebuild.sh, line   85:  Called src_install
> >  *   environment, line 2673:  Called kernel-2_src_install
> >  *   environment, line 1909:  Called install_headers
> >  *   environment, line 1804:  Called die
> >  * The specific snippet of code:
> >  *           emake headers_install INSTALL_HDR_PATH="${D}"/${ddir}/..
> > ${xmakeopts} || die;
> >  *
> >  * If you need support, post the output of 'emerge --info
> > =sys-kernel/linux-headers-3.3',
> >  * the complete build log and the output of 'emerge -pqv
> > =sys-kernel/linux-headers-3.3'.
> >  * The complete build log is located at
> >
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/temp/build.log'.
> >  * The ebuild environment file is located at
> >
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/temp/environment'.
> >  * Working directory:
> >
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work/gentoo-headers-base-3.3'
> >  * S:
> >
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work/gentoo-headers-base-3.3'
> >
> > >>> Failed to emerge sys-kernel/linux-headers-3.3, Log file:
> >
> > >>>
> >
>  
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/temp/build.log'
> >
> >  * Messages for package sys-kernel/linux-headers-3.3:
> >
> >  * ERROR: sys-kernel/linux-headers-3.3 failed (install phase):
> >  *   (no error message)
> >  *
> >  * Call stack:
> >  *     ebuild.sh, line   85:  Called src_install
> >  *   environment, line 2673:  Called kernel-2_src_install
> >  *   environment, line 1909:  Called install_headers
> >  *   environment, line 1804:  Called die
> >  * The specific snippet of code:
> >  *           emake headers_install INSTALL_HDR_PATH="${D}"/${ddir}/..
> > ${xmakeopts} || die;
> >  *
> >  * If you need support, post the output of 'emerge --info
> > =sys-kernel/linux-headers-3.3',
> >  * the complete build log and the output of 'emerge -pqv
> > =sys-kernel/linux-headers-3.3'.
> >  * The complete build log is located at
> >
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/temp/build.log'.
> >  * The ebuild environment file is located at
> >
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/temp/environment'.
> >  * Working directory:
> >
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work/gentoo-headers-base-3.3'
> >  * S:
> >
> '/home/talebi/gentoo/var/tmp/portage/sys-kernel/linux-headers-3.3/work/gentoo-headers-base-3.3'
> > make: *** [all] Error 1
> > talebi@devsyd899:~/gentoo>
> >
> > I can post `emerge info/pqv' if requried, but at this point I think
> > the problem is obvious - I also can not remove the files there now as
> > they all belong to root:root (and I don't have root access on this
> > machine).
> >
> > Nima
>
> I'm curious... how could you expect to update the system not as a root?
> You don't have root access, so you are done playing... right? Did I
> miss something?
>
> I recall on my Mac I didn't have root, but did have sudo... so, "sudo
> bash -l" was how I did everything, and how I would have expected to do
> gentoo prefix. [So, kinda as "root". Utterly violating the point of not
> having root access, I suppose...]
>
> No idea if this could be any help at all.
>
> Anyway, good luck!
>
> Cheers,
>
> --
>  |\  /|        |   |          ~ ~
>  | \/ |        |---|          `|` ?
>  |    |ichael  |   |iggins    \^ /
>  michael.higgins[at]evolone[dot]org
>
>


-- 
http://me.nima.id.au/

Reply via email to