Discussion:
[gentoo-alt] Re: Gentoo Android Prefix: Issues
Benda Xu
2018-08-24 05:56:25 UTC
Permalink
Hi ARaspiK,

Thank you for your detailed description of the symptons. Would you
please create a bug report[1] to better track the issues?
This is ARaspiK. There are a couple of problems with the Android
64-bit tarball that prevent it from working completely. I have no idea
where to send bug reports, so I'm sending this one here.
I can't upgrade Portage! This is because the `groupadd` command is
missing on my system, which `net-mail/mailbase` fails without. I found
that you need `sys-apps/shadow` for it, but `shadow` fails in
compilation! I managed to pull the `groupadd` binary out of the build
directory, but `groupadd` did not work as `/` could not be written to
(even after `mount -o remount,rw` - it's type `rootfs`). I did find
that you could set a prefix for it, except that it failed even then!
Groupadd failed with `cannot open /etc/group\nfailed to unlock
/etc/group`, which I don't know how to fix.
The best way to move forward is to prefixify it. You will need to study
the source code of sys-apps/shadow, and figure out the code that reads
/etc/passwd and /etc/group to come up with a patch.
The only method I could think of to solve the groupadd permissions
problem was to chroot into the gentoo64 dir and reinstall from
there. The problem is that all the packages are build with `-static`
and `-static-libs`, so I'm currently trying to recompile all the
packages. I have managed to recompile Busybox and was able to chroot
in, and I am now recompiling gcc. I have no idea if this will work and
this is really not the best way to go about doing this.
This might work but is not encouraged.
I noticed that `ldd` printed `/data/gentoo64/<blah>` for all the
compiled libs, so it may be possible to rewrite their directories, but
I have no idea how.
They are written automatically by gcc of the Prefix. Actually, the
binaries compiled from sys-apps/shadow have their libraries
prefixified.
I am severely stuck and looking for help.
TARGET: aarch64-unknown-linux-gnu
Machine: Huawei Honor 6X
Software: Lineage OS (ext4 data filesystem) with Magisk (did not affect issues)
Cheers,
Benda

1. https://bugs.gentoo.org/

Loading...