From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6862 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?0KDRi9GB0Yw=?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl and android Date: Sun, 18 Jan 2015 13:32:37 +0700 Message-ID: <20150118133237.40beda09@sibserver.ru> References: <20150115161322.4ee903b7@sibserver.ru> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1421562409 2392 80.91.229.3 (18 Jan 2015 06:26:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Jan 2015 06:26:49 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6875-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jan 18 07:26:45 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YCjJs-0006GK-QC for gllmg-musl@m.gmane.org; Sun, 18 Jan 2015 07:26:44 +0100 Original-Received: (qmail 29953 invoked by uid 550); 18 Jan 2015 06:26:42 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 29945 invoked from network); 18 Jan 2015 06:26:42 -0000 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS autolearn=ham autolearn_force=no version=3.4.0 In-Reply-To: <20150115161322.4ee903b7@sibserver.ru> X-Mailer: claws-mail Xref: news.gmane.org gmane.linux.lib.musl.general:6862 Archived-At: =D0=92 Thu, 15 Jan 2015 16:13:22 +0700 =D0=A0=D1=8B=D1=81=D1=8C =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > Hello all! >=20 > Are there any efforts or even a project which aims to port musl to > android platform? >=20 > For a year I slowly had built and running a couple of C tty only > programs such as iptables, tcpdump and of course busybox and many > others including my own with musl libc linked statically. They work > perfectly (no much differences between an ARM phone and, for example, > raspberry pi SoC) but a few items I missed: >=20 > + Proper DNS resolving is not available > + Translation of android special user names is not done >=20 > As an advanced Linux user I know that android is not friendly enough > to plain C stuff and it's libc is even not finished now so I aimed to > port at least listed things to musl. >=20 > Because I am not going beyond listed items, a patch can be developed > just to support these inside musl-linked binaries. >=20 > I am first here or there is already someone who done this before? I made a patch to implement all three things for musl on android. I do not post it here as attachment to this mail because it normally should not be integrated with musl. The patch itself is here: http://lynxlynx.tk/prg/patches/musl-1.1.4_android.patch, notes about it: http://lynxlynx.tk/eng/musl_android/. Patch is invasive enough I think and not optimized and I agree with Rich that it must go as a special treat. I tried however move away all translating code to src/android and headers to include/android. Patch is still in it's alpha stage, and probably will be changed often. Modifications made for musl 1.1.4. If anyone interested to audit it - welcome!