Kernel-2.eclass EAPI6

Kernel-2.eclass recently adopted EAPI 6
Let’s move all kernel ebuild packages to EAPI 6

If you are wondering what is change with EAPI 6, there are some nice reference:

The Ultimate Guide to EAPI 6

and from the official documentation

EAPI 6 is EAPI 5 with the following changes:

  • Bash version is 4.2, bash-version on page 78.
  • Default src_prepare no longer a no-op, src-prepare-6 on page 138.
  • Different src_install implementation, src-install-6 on page 174.
  • LC_CTYPE and LC_COLLATE compatible with POSIX locale, locale-settings on page 215.
  • failglob is enabled in global scope, failglob on page 226.
  • einstall banned, banned-commands on page 233.
  • die and assert called with -n respect nonfatal, nonfatal-die on page 237.
  • eapply support, eapply on page 240.
  • eapply_user support, eapply-user on page 240.
  • econf adds –docdir and –htmldir, econf-options on page 246.
  • in_iuse support, in-iuse on page 275.
  • unpack supports absolute and relative paths, unpack-absolute on page 284.
  • unpack supports .txz, unpack-extensions on page 285.
  • unpack matches filename extensions case-insensitively, unpack-ignore-case on page 285.
  • einstalldocs support, einstalldocs on page 286.
  • get_libdir support, get-libdir on page 286.


Zenfone gentoo prefix part2

In the end I bootstrap directly into stage3 and using chroot.
For doing this is pretty straightforward and probably just busybox command is enough.
Make gentoo directory.

mkdir gentoo

Download stage3 i686 files.


Untar the file.

tar -vjxf *.tar.bz2 -C gentoo

Get in the chroot.
maybe ln -s /proc/self/fd /dev is needed.

export GENTOO_ROOT="/data/data/com.termux/files/home/gentoo/"
cp -L /etc/resolv.conf $GENTOO_ROOT/etc/
mount -t proc proc $GENTOO_ROOT/proc
mount --rbind /sys $GENTOO_ROOT/sys
mount --rbind /dev $GENTOO_ROOT/dev


in make.conf i’m using

FEATURES="-userfetch -sandbox -usersandbox"

next will be trying to install plasma mobile on Gentoo

Zenfone gentoo prefix part1

I’m trying to install Gentoo prefix on Zenfone ze551ml .

in summary is a Intel(R) Atom(TM) CPU  Z3580 Quad-core 2.3 GHz with 4 gb of ram running android.

Unfortunatly my zenfone have problem with the front and back camera.

For installing the prefix, I first trying just following the manual bootstrap way, with not so many result.

In the end i found to install termux from google play and link some binary from termux and after bootstrap following the Gentoo manual .

termux script from run it from adb from here.


export PREFIX='/data/data/com.termux/files/usr'
export HOME='/data/data/com.termux/files/home'
export LD_LIBRARY_PATH='/data/data/com.termux/files/usr/lib'
export PATH="/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:$PATH"
export LANG='en_US.UTF-8'
export SHELL='/data/data/com.termux/files/usr/bin/bash'
cd "$HOME"
exec "$SHELL" -l

I could install part of the stage 1, but I had problem installing python.

./Modules/pwdmodule.c:81:25: error: no member named 'pw_gecos' in 'struct passwd'

so I just skipper bootstrapping python and use the python in termux.

bash started complain about process substitution.

bash-4.4# emerge -av ncurses
Failed to validate a sane '/dev'.
bash process substitution doesn't work; this may be an indication of a broken '/dev/fd'.

tried to resolve by  ln -s /proc/self/fd /dev with no result.
bash version:
GNU bash, version 4.4.5(1)-release (i686-pc-linux-android)
I anyway got emerge –info working

bash-4.4# emerge --info
!!! No gcc found. You probably need to 'source /etc/profile'
!!! to update the environment of this terminal and possibly
!!! other terminals also.
Portage 2.2.28-prefix (python 3.5.2-final-0, prefix/linux/x86, [unavailable], unavailable, 3.10.20-g9699532 i686)
System uname: Linux-3.10.20-g9699532-i686-with-libc
KiB Mem: 3998068 total, 1209472 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo_prefix: Mon, 02 Jan 2017 18:58:52 +0000
sh bash
ld GNU ld (GNU Binutils) 2.27

location: /data/data/com.termux/files/home/Gentoo/usr/portage
sync-type: rsync
sync-uri: rsync://
priority: -1000

CFLAGS="-O2 -march=i686 -pipe -m32 -O2 -pipe"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CXXFLAGS="-O2 -march=i686 -pipe -m32 -O2 -pipe"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs case-insensitive-fs 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 unprivileged"
FFLAGS="-O2 -march=i686 -pipe"
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"
USE="berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pcre prefix prefix-guest readline seccomp session ssl tcpd unicode x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa 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"

but I’m still searching a solution for the bash process substitution problem.

uname -a

Linux localhost 3.10.20-g9699532 #1 SMP PREEMPT Mon Dec 19 03:31:31 PST 2016 i686 Android

Also trying to compile bash by hand looks not a good option:

/usr/homes/chet/src/bash/src/parse.y:135:12: error: conflicting types for ‘__errno’

[2016_11] Gentoo report summary