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

Reply via email to