From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CE691138334 for ; Fri, 24 Aug 2018 06:56:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A24DFE08B0; Fri, 24 Aug 2018 06:56:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7299FE08B0 for ; Fri, 24 Aug 2018 06:56:58 +0000 (UTC) Received: from muon (unknown [IPv6:2001:19f0:7001:115:5400:ff:fe2a:eb12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: heroxbd) by smtp.gentoo.org (Postfix) with ESMTPSA id 3319F335C8D; Fri, 24 Aug 2018 06:56:57 +0000 (UTC) Received: from [2001:470:4c22:ae86:babe:60:0:1] (port=54520 helo=x2) by muon with esmtp (Exim 4.89) (envelope-from ) id 1ft61d-0005Qw-M8; Fri, 24 Aug 2018 06:56:53 +0000 From: Benda Xu To: ARaspiK Cc: Gentoo Alt Subject: [gentoo-alt] Re: Gentoo Android Prefix: Issues References: Date: Fri, 24 Aug 2018 14:56:25 +0900 In-Reply-To: (araspik@protonmail.com's message of "Thu, 23 Aug 2018 19:18:22 +0000") Message-ID: <87zhxcwbna.fsf@gentoo.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-alt@lists.gentoo.org Reply-to: gentoo-alt@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain X-Archives-Salt: fee8e445-621c-4638-8481-a92422d047ae X-Archives-Hash: 278b1f7bbcdc60b24d50ef914c0366cb 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 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/` 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/