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.

/data/data/com.termux/files/home/bin/termux-shell.sh

#!/system/bin/sh
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'

http://lists.mindrot.org/pipermail/openssh-bugs/2013-April/012014.html

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
Repositories:


gentoo_prefix
location: /data/data/com.termux/files/home/Gentoo/usr/portage
sync-type: rsync
sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix
priority: -1000


ACCEPT_KEYWORDS="~x86-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -m32 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CXXFLAGS="-O2 -march=i686 -pipe -m32 -O2 -pipe"
DISTDIR="/data/data/com.termux/files/home/Gentoo/tmp/usr/portage/distfiles"
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"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS=""
PKGDIR="/data/data/com.termux/files/home/Gentoo/tmp/usr/portage/packages"
PORTAGE_CONFIGROOT="/data/data/com.termux/files/home/Gentoo/tmp/"
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="/data/data/com.termux/files/home/Gentoo/tmp/var/tmp"
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"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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’

Leave a Reply

Your email address will not be published.