From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IpKPL-00049S-0e for garchives@archives.gentoo.org; Tue, 06 Nov 2007 09:07:39 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id lA696mTK015704; Tue, 6 Nov 2007 09:06:48 GMT Received: from email.aon.at (warsl404pip8.highway.telekom.at [195.3.96.102]) by robin.gentoo.org (8.14.2/8.14.0) with ESMTP id lA694pRj013275 for ; Tue, 6 Nov 2007 09:04:51 GMT Received: (qmail 18937 invoked from network); 6 Nov 2007 09:04:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.0 (2007-05-01) on WARSBL602.highway.telekom.at Received: from m2621p015.adsl.highway.telekom.at (HELO [10.0.0.1]) ([212.183.59.143]) (envelope-sender ) by smarthub94.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 6 Nov 2007 09:04:48 -0000 Subject: Re: [gentoo-dev] POSIX shell and "portable" From: Michael Haubenwallner To: gentoo-dev@lists.gentoo.org In-Reply-To: <1194304723.2906.47.camel@uberpc.marples.name> References: <472B29B9.50002@gentoo.org> <1194257626.4196.9.camel@uberlaptop.marples.name> <1194268910.6977.86.camel@sapc154> <200711051521.07840.vapier@gentoo.org> <1194304723.2906.47.camel@uberpc.marples.name> Content-Type: text/plain Date: Tue, 06 Nov 2007 10:04:44 +0100 Message-Id: <1194339884.6032.20.camel@salomon-22> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: 73f5b43e-3acc-4add-bc39-c1f1e4b70de1 X-Archives-Hash: 3824ef4172f5a5ec6cbde5d0d5f05447 On Mon, 2007-11-05 at 23:18 +0000, Roy Marples wrote: > On Mon, 2007-11-05 at 16:21 -0400, Mike Frysinger wrote: > > we want the installed environment to be portable, not the build environment. > > i do not see any benefit from forcing the build environment to be pure POSIX > > compliant and i see many many detrimental problems. > > Oh I don't know. Imagine how cool it would be for starting a new port. > > 1) Install PM > 2) Wang on a portage tree > 3) emerge ready to go > > Obviously it's not quite that simple as portage requires python and > pkgcore require python, paludis requires tr1-whatever libs - but that's > the restriction of the PM used. Maybe one day Gentoo will have a PM that > doesn't require any of that and is just written in C and sh, using POSIX > libc where it can. > > But enough pipe dreaming :) Stop dreaming: Some very rudimentary thing like this already exists: To bootstrap an alt/prefix instance on AIX, HPUX, whatever-unix-without- sufficient-GNU-userland, we're using some "prefix-launcher"[1]. This simply is a "package fetcher/patcher/builder/installer", where a single package is defined by some ".build"-script, which is written in plain bourne shell. You might (should) find some gentoo ideas if you look inside it ;) Now to install {python, bash, (prefix-)portage, wget, patch, diffutils, findutils, gcc, etc.} one single command[2] (think "emerge system") does it all, just requiring GNU make, /bin/sh being bourne shell, some ansi-c compiler, some (non-GNU) tar, gunzip, (non-GNU) sed, (non-GNU) whatever. So the only non-native (not installed by default) thing required is GNU make, which is available as binary package without any dependencies for each "unix" I've seen. [1] http://sourceforge.net/projects/prefix-launcher/ [2] http://prefix-launcher.wiki.sourceforge.net/ /haubi/ -- Michael Haubenwallner Gentoo on a different level -- gentoo-dev@gentoo.org mailing list