Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange portage behavior
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
zenmetsu
n00b
n00b


Joined: 30 Nov 2010
Posts: 16

PostPosted: Tue May 24, 2016 6:50 pm    Post subject: Strange portage behavior Reply with quote

I'm reinstalling Gentoo on my chromebook (x503c32) and I ran into a bit of an issue trying to install a masked package. I attempted to use --autounmask-write / dispatch-conf, but nothing was getting changed. dispatch-conf is part of the portage package, so I re-emerged it. Same issue. When attempting to emerge the package (sys-boot/vboot-utils), portage is crying about not having the ~arm keyword even though /etc/portage/package.accept_keywords/vboot-utils is present with the necessary flags.

In fact, adding ACCEPT_KEYWORDS="~arm" to /etc/portage/make.conf still doesn't work. What could cause portage to completely disregard /etc/portage contents?!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43223
Location: 56N 3W

PostPosted: Tue May 24, 2016 7:15 pm    Post subject: Reply with quote

zenmetsu,

Show us your emerge --info and the content of all the files in /etc/portage/package.accept_keywords/

There is a minor gotcha in /etc/portage/package.accept_keywords. The files are parsed in lexical order, which in this case means that /etc/portage/package.accept_keywords/vboot-utils can turn on ~arm and another later file in lexical order can turn it off again. The nett result is off.

The contents of the files in /etc/portage/package.accept_keywords/ are applied after make.conf, so setting ~arm in make.conf can't fix it.

I suspect that portage is behaving correctly. Setting ~arm on vboot-utils, then turning it off again later because you asked it to.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
zenmetsu
n00b
n00b


Joined: 30 Nov 2010
Posts: 16

PostPosted: Tue May 24, 2016 7:56 pm    Post subject: Reply with quote

I should have included my emerge --info in my last post, but the output makes it apparent that portage is completely ignoring my /etc/portage directory.

It may be a bit of a false alarm as I reboot into gentoo natively and did not have the problem. Apparently chrooting from within chromeos to perform the install causes some strangeness. I'd still like to know what's broken so I don't run head-first into this next time.

I'll post my emerge --info as soon as I reboot back into chromeos
Back to top
View user's profile Send private message
zenmetsu
n00b
n00b


Joined: 30 Nov 2010
Posts: 16

PostPosted: Tue May 24, 2016 8:00 pm    Post subject: Reply with quote

portage is definitely ignoring everything in /etc. These are the defaults which are inherited by the profile... :/

Code:
localhost firmware # emerge --info
Portage 2.2.28 (python 3.4.3-final-0, default/linux/arm/13.0, gcc-4.9.3, glibc-2.22-r4, 3.8.11 armv7l)
=================================================================
System uname: Linux-3.8.11-armv7l-with-gentoo-2.2
KiB Mem:     3624764 total,   2280996 free
KiB Swap:    3539808 total,   3539808 free
Timestamp of repository gentoo: Tue, 24 May 2016 00:45:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="arm-unknown-linux-gnu"
CFLAGS="-O2"
CHOST="arm-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/usr/local/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl arm berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre readline seccomp session ssl tcpd unicode xattr zlib" 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 ublox 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43223
Location: 56N 3W

PostPosted: Tue May 24, 2016 8:37 pm    Post subject: Reply with quote

zenmetsu,

So far so good. Now we need the entire content of /etc/portage/package.accept_keywords/
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
zenmetsu
n00b
n00b


Joined: 30 Nov 2010
Posts: 16

PostPosted: Tue May 24, 2016 8:42 pm    Post subject: Reply with quote

/etc/portage/package.accept_keywords just had a single entry for the file in question. What is more important, however, is that my /etc/portage/make.conf contained ACCEPT_KEYWORDS="~arm" which is entirely absent from my emerge --info output.

Booting into gentoo natively resolved the problem. There is something happening with the environment while chrooted from chromeos, and this is what was biting me in the butt. I needed vboot-utils to build the boot partition, but luckily the install that I am working on is compatible with the existing boot partition on /dev/mmcblk1p1 so I was able to boot into the new environment, albeit without any modules getting loaded, and emerge --info picked up on the config properly.
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