Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can not install linux-headers in gentoo prefix
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
xinyongka
n00b
n00b


Joined: 25 Apr 2013
Posts: 3

PostPosted: Thu Apr 25, 2013 7:25 am    Post subject: Can not install linux-headers in gentoo prefix Reply with quote

I try to install linux-headers in gentoo prefix on redhat
but I got the following errors:
>>> Installing (1 of 1) sys-kernel/linux-headers-3.8

* Messages for package sys-kernel/linux-headers-3.8:

* chown failure ignored with unprivileged user:
* chown -R root:0 3.8 gentoo-headers-base-3.8
* ${EPREFIX}/bin/chown: changing ownership of '3.8/00_all_0004-netfilter-pull-in-limits.h.patch': Operation not permitted
* ${EPREFIX}/bin/chown: changing ownership of '3.8/00_all_0007-unifdef-drop-unused-errno.h-include.patch': Operation not permitted
..

any ideas
Thank you
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1674
Location: Berlin, Germany

PostPosted: Thu Apr 25, 2013 9:02 am    Post subject: Reply with quote

Best report a bug about this at https://bugs.gentoo.org/
Don't forget to include "emerge --info" output.
Back to top
View user's profile Send private message
N8Fear
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2013
Posts: 91
Location: Berlin (Germany)

PostPosted: Thu Apr 25, 2013 2:34 pm    Post subject: Reply with quote

Since you use Redhat and have a permission-problem: have you checked for avc denials?
Back to top
View user's profile Send private message
xinyongka
n00b
n00b


Joined: 25 Apr 2013
Posts: 3

PostPosted: Fri Apr 26, 2013 5:55 am    Post subject: Reply with quote

I think this is the avc denials, but how to check

And I do not have the root access, but to solve this problem.

Thank you
Back to top
View user's profile Send private message
N8Fear
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2013
Posts: 91
Location: Berlin (Germany)

PostPosted: Fri Apr 26, 2013 5:13 pm    Post subject: Reply with quote

If you have rights to do it check dmesg - if not you can ask the root of the system. Otherwise you could try to find a directory with unconstrained_t (ls -Z) if your user is also unconstrained_t (id -Z) - most likely you won't hit any denials if you were unconstrained, though...
Back to top
View user's profile Send private message
xinyongka
n00b
n00b


Joined: 25 Apr 2013
Posts: 3

PostPosted: Mon Apr 29, 2013 8:42 am    Post subject: Reply with quote

N8Fear wrote:
Since you use Redhat and have a permission-problem: have you checked for avc denials?


I got same error when i try to install the prefix under gentoo
any ideas ?

AND this the output of emerge --info
$ emerge --info

!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:

default/linux/amd64/13.0/no-multilib

You may use the following command to upgrade:

eselect profile set default/linux/amd64/13.0/no-multilib

Portage 2.2.01.21864-prefix (prefix/linux/amd64, gcc-4.7.0, unavailable, 3.7.0-sabayon x86_64)
=================================================================
System uname: Linux-3.7.0-sabayon-x86_64-Intel-R-_Core-TM-_i5-2410M_CPU_@_2.30GHz-with-gentoo-2.2
KiB Mem: 2999660 total, 1727260 free
KiB Swap: 0 total, 0 free
Timestamp of tree: Sun, 28 Apr 2013 13:05:45 +0000
ld GNU ld (GNU Binutils) 2.23
app-shells/bash: 4.1_p11
sys-devel/autoconf: 2.69
sys-devel/binutils: 2.23
sys-devel/gcc: 4.2.4-r01.4
sys-devel/gcc-config: 1.8-r00.1
Repositories: gentoo_prefix
ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/mateconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/mnt/local-disk/cp/gentoo/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
PKGDIR="/mnt/local-disk/cp/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/mnt/local-disk/cp/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/local-disk/cp/gentoo/var/tmp"
PORTDIR="/mnt/local-disk/cp/gentoo/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap ncurses nls nptl openmp pcre prefix readline session sse sse2 ssl tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

xinchangpeng@localhost /mnt/local-disk/cp $
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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