public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-openbsd:master commit in: script/
Date: Tue,  3 May 2011 13:40:02 +0000 (UTC)	[thread overview]
Message-ID: <81d881eb14318990b3e4ca06a66090b93663a3cf.blueness@gentoo> (raw)

commit:     81d881eb14318990b3e4ca06a66090b93663a3cf
Author:     Anthony G. Basile <basile <AT> opensource <DOT> dyc <DOT> edu>
AuthorDate: Tue May  3 13:39:55 2011 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Tue May  3 13:39:55 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-openbsd.git;a=commit;h=81d881eb

Automation of bootstrap process - in progress

---
 script/bootstrap-bash.sh        |    4 ++-
 script/full-bootstrap-prefix.sh |   71 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+), 1 deletions(-)

diff --git a/script/bootstrap-bash.sh b/script/bootstrap-bash.sh
old mode 100644
new mode 100755
index dc0ac27..c452fc4
--- a/script/bootstrap-bash.sh
+++ b/script/bootstrap-bash.sh
@@ -17,7 +17,9 @@ cd "$1"
 mkdir bash-build
 cd bash-build
 
-ftp "http://distfiles.gentoo.org/distfiles/bash-4.1.tar.gz"
+GENTOO_MIRROR=${GENTOO_MIRROR:="http://distfiles.gentoo.org/distfiles"}
+
+ftp "${GENTOO_MIRROR}/bash-4.1.tar.gz"
 gzip -d bash-4.1.tar.gz
 tar -xf bash-4.1.tar
 cd bash-4.1

diff --git a/script/full-bootstrap-prefix.sh b/script/full-bootstrap-prefix.sh
new file mode 100755
index 0000000..bbbf90a
--- /dev/null
+++ b/script/full-bootstrap-prefix.sh
@@ -0,0 +1,71 @@
+#!/usr/bin/env bash
+
+# Local gentoo mirror, or default to main, eg.
+#
+export GENTOO_MIRROR="ftp://192.168.100.9/pub/gentoo/distfiles"
+
+# If there is no GENTOO_MIRROR set, then default to our main distfiles server
+#
+export GENTOO_MIRROR=${GENTOO_MIRROR:="http://distfiles.gentoo.org/distfiles"}
+
+# Installation location
+# 
+export EPREFIX="$HOME/gentoo"
+export PATH="$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin:$PATH"
+
+mkdir -p $EPREFIX/tmp
+
+[ ! -x ${EPREFIX}/tmp/usr/bin/bash ] && ./bootstrap-bash.sh $EPREFIX/tmp
+[ ! -d ${EPREFIX}/usr/portage ]      && ./bootstrap-prefix.sh $EPREFIX tree
+
+[ ! -x ${EPREFIX}/tmp/usr/bin/make      ] && ./bootstrap-prefix.sh $EPREFIX/tmp make
+[ ! -x ${EPREFIX}/tmp/usr/bin/wget      ] && ./bootstrap-prefix.sh $EPREFIX/tmp wget
+[ ! -x ${EPREFIX}/tmp/usr/bin/sed       ] && ./bootstrap-prefix.sh $EPREFIX/tmp sed
+[ ! -x ${EPREFIX}/tmp/usr/bin/python2.6 ] && ./bootstrap-prefix.sh $EPREFIX/tmp python
+[ ! -x ${EPREFIX}/tmp/usr/bin/cp        ] && ./bootstrap-prefix.sh $EPREFIX/tmp coreutils8
+[ ! -x ${EPREFIX}/tmp/usr/bin/find      ] && ./bootstrap-prefix.sh $EPREFIX/tmp findutils3
+[ ! -x ${EPREFIX}/tmp/usr/bin/tar       ] && ./bootstrap-prefix.sh $EPREFIX/tmp tar22
+[ ! -x ${EPREFIX}/tmp/usr/bin/patch     ] && ./bootstrap-prefix.sh $EPREFIX/tmp patch9
+[ ! -x ${EPREFIX}/tmp/usr/bin/gawk      ] && ./bootstrap-prefix.sh $EPREFIX/tmp gawk
+[ ! -x ${EPREFIX}/tmp/usr/bin/grep      ] && ./bootstrap-prefix.sh $EPREFIX/tmp grep
+[ ! -x ${EPREFIX}/usr/bin/emerge        ] && ./bootstrap-prefix.sh $EPREFIX portage
+
+hash -r
+
+# FIXME: the bootstrap scripts use GENTOO_MIRROR but emerge uses GENTOO_MIRRORS
+#
+export GENTOO_MIRRORS=${GENTOO_MIRROR%/distfiles}
+
+# FIXME: Sooner or later we'll have to get our profiles straight and won't need this
+#
+export ACCEPT_KEYWORDS="* ~*"
+[ ! -x ${EPREFIX}/bin/sed      ] && emerge -1 sed
+[ ! -x ${EPREFIX}/bin/bash     ] && emerge -1 -O bash 
+[ ! -x ${EPREFIX}/usr/bin/wget ] && emerge -1 -O wget
+
+[ ! -x ${EPREFIX}/sbin/runscript.sh       ] && emerge -1 -O baselayout-prefix
+[ ! -x ${EPREFIX}/usr/bin/m4              ] && emerge -1 -O m4
+[ ! -x ${EPREFIX}/usr/bin/autoconf-*      ] && emerge -1 -O autoconf
+[ ! -x ${EPREFIX}/usr/bin/autoconf        ] && emerge -1 -O autoconf-wrapper
+[ ! -x ${EPREFIX}/usr/bin/automake-*      ] && emerge -1 -O automake
+[ ! -x ${EPREFIX}/usr/bin/automake        ] && emerge -1 -O automake-wrapper
+[ ! -x ${EPREFIX}/usr/bin/libtool         ] && emerge -1 -O libtool
+#
+# FIXME: this fails with an error that the print function was not found in libtool 
+#[ ! -x ${EPREFIX}/usr/bin/xz             ] && emerge -1 -O xz-utils
+#
+[ ! -x ${EPREFIX}/usr/bin/flex            ] && emerge -1 -O flex
+[ ! -x ${EPREFIX}/usr/bin/bison           ] && emerge -1 -O bison
+[ ! -x ${EPREFIX}/usr/bin/binutils-config ] && emerge -1 -O binutils-config
+[ ! -x ${EPREFIX}/usr/bin/gcc-config      ] && emerge -1 -O gcc-config
+
+#
+# TODO: We've gotten up to approx code listing 1.7 of the FBSD bootstrap
+# http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-freebsd.xml
+#
+#$ emerge --oneshot --nodeps binutils
+#$ emerge --oneshot --nodeps "=gcc-4.2*"
+
+
+
+



             reply	other threads:[~2011-05-03 13:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-03 13:40 Anthony G. Basile [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-06-19 18:20 [gentoo-commits] proj/gentoo-openbsd:master commit in: script/ Maxim Koltsov
2012-06-19 18:20 Maxim Koltsov
2012-06-19 18:20 Maxim Koltsov
2011-04-25 18:38 Maxim Koltsov
2011-04-25 13:02 Maxim Koltsov
2011-04-24 17:20 Maxim Koltsov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81d881eb14318990b3e4ca06a66090b93663a3cf.blueness@gentoo \
    --to=blueness@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox