public inbox for gentoo-alt@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-alt] Re: Gentoo Android Prefix: Issues
       [not found] <m14GFdp6vxu7gEff4VL8-i7mgmQOeYgMGFO9hdt3LPuHsM7X_ip8l5pbrZzgAz7fIm4p2ZQuZYWLAni9Ub1p49_79vMzKwPrpz_uG2OQ-4Y=@protonmail.com>
@ 2018-08-24  5:56 ` Benda Xu
  0 siblings, 0 replies; only message in thread
From: Benda Xu @ 2018-08-24  5:56 UTC (permalink / raw
  To: ARaspiK; +Cc: Gentoo Alt

Hi ARaspiK,

Thank you for your detailed description of the symptons. Would you
please create a bug report[1] to better track the issues?

ARaspiK <araspik@protonmail.com> writes:

> 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/


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-24  6:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <m14GFdp6vxu7gEff4VL8-i7mgmQOeYgMGFO9hdt3LPuHsM7X_ip8l5pbrZzgAz7fIm4p2ZQuZYWLAni9Ub1p49_79vMzKwPrpz_uG2OQ-4Y=@protonmail.com>
2018-08-24  5:56 ` [gentoo-alt] Re: Gentoo Android Prefix: Issues Benda Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox