/[gentoo-alt]/trunk/prefix/scripts/bootstrap-prefix.sh
Gentoo

Diff of /trunk/prefix/scripts/bootstrap-prefix.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1523 Revision 1524
137 rm portage-alt-prefix-latest.tar.bz2 137 rm portage-alt-prefix-latest.tar.bz2
138 fi 138 fi
139} 139}
140 140
141bootstrap_portage() { 141bootstrap_portage() {
142 PV=latest 142 # don't use "latest" here, as I want to have the bootstrap script to
143 # use a portage in a known "state"
144 PV=2.1.13.4415
143 A=portage-prefix-${PV}.tar.bz2 145 A=prefix-portage-${PV}.tar.bz2
144 einfo "Bootstrapping ${A%-*}" 146 einfo "Bootstrapping ${A%-*}"
145 147
146 fetch ${PORTAGE_URL}/${A} 148 fetch ${PORTAGE_URL}/${A}
147 149
148 einfo "Unpacking ${A%-*}" 150 einfo "Unpacking ${A%-*}"
149 export S="${PORTAGE_TMPDIR}"/portage-${PV} 151 export S="${PORTAGE_TMPDIR}"/portage-${PV}
150 rm -rf "${S}" >& /dev/null 152 rm -rf "${S}" >& /dev/null
151 mkdir -p "${S}" >& /dev/null 153 mkdir -p "${S}" >& /dev/null
152 cd "${S}" 154 cd "${S}"
153 tar -jxf "${DISTDIR}/${A}" || exit 1 155 tar -jxf "${DISTDIR}/${A}" || exit 1
154 mv "${S}"/portage-prefix* "${S}"/portage-prefix >& /dev/null 156 S="${S}/prefix-portage-${PV}"
155 mv "${S}"/prefix-portage "${S}"/portage-prefix >& /dev/null
156 S="${S}/portage-prefix"
157 cd "${S}" 157 cd "${S}"
158 158
159 einfo "Compiling ${A%-*}" 159 einfo "Compiling ${A%-*}"
160 econf \ 160 econf \
161 --with-offset-prefix="${ROOT}" \ 161 --with-offset-prefix="${ROOT}" \
421CXXFLAGS="${CFLAGS:--O2 -pipe}" 421CXXFLAGS="${CFLAGS:--O2 -pipe}"
422MAKEOPTS="${MAKEOPTS:--j2}" 422MAKEOPTS="${MAKEOPTS:--j2}"
423PORTDIR=${ROOT}/usr/portage 423PORTDIR=${ROOT}/usr/portage
424DISTDIR=${PORTDIR}/distfiles 424DISTDIR=${PORTDIR}/distfiles
425PORTAGE_TMPDIR=${ROOT}/var/tmp 425PORTAGE_TMPDIR=${ROOT}/var/tmp
426PORTAGE_URL="http://dev.gentoo.org/~kito/distfiles" 426PORTAGE_URL="http://dev.gentoo.org/~grobian/distfiles"
427GNU_URL="http://ftp.gnu.org/gnu" 427GNU_URL="http://ftp.gnu.org/gnu"
428GCC_APPLE_URL="http://darwinsource.opendarwin.org/tarballs/other" 428GCC_APPLE_URL="http://darwinsource.opendarwin.org/tarballs/other"
429GENTOO_URL="http://gentoo.osuosl.org" 429GENTOO_URL="http://gentoo.osuosl.org"
430 430
431export CFLAGS CXXFLAGS 431export CFLAGS CXXFLAGS

Legend:
Removed from v.1523  
changed lines
  Added in v.1524

  ViewVC Help
Powered by ViewVC 1.1.20