Skip to content

Commit 77a5408

Browse files
author
2b57
committed
add explicit deps and use proper catalystrc
1 parent 5ce7b29 commit 77a5408

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

assets/baserepo_overlay/scripts/bootstrap.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ einfo "Using libc : ${myLIBC}"
297297
einfo "Using texinfo : ${myTEXINFO}"
298298
einfo "Using zlib : ${myZLIB}"
299299
einfo "Using ncurses : ${myNCURSES}"
300-
einfo "Using perl : ${myPERL}"
301300
[[ -n ${myEXTRA} ]] && einfo "Using extra pkgs : ${myEXTRA}"
302301

303302
echo -------------------------------------------------------------------------------
@@ -336,7 +335,7 @@ if [ ${BOOTSTRAP_STAGE} -le 2 ] ; then
336335
else
337336
STRAP_EMERGE_POSARGS="\
338337
${myOS_HEADERS} ${myTEXINFO} ${myGETTEXT} ${myBINUTILS} \
339-
${myGCC} ${myLIBC} ${myBASELAYOUT} ${myZLIB} ${myPERL} ${myEXTRA}"
338+
${myGCC} ${myLIBC} ${myBASELAYOUT} ${myZLIB} ${myEXTRA}"
340339
fi
341340
${V_ECHO} emerge ${STRAP_EMERGE_OPTS} ${STRAP_EMERGE_POSARGS} || cleanup 1
342341
echo -------------------------------------------------------------------------------

assets/config/catalyst.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ distdir="/var/cache/distfiles"
3434
# GENTOO_MIRRORS, or any other environment variables needed for building.
3535
# The envscript file sets environment variables like so:
3636
# export FOO="bar"
37-
envscript="/etc/catalyst/catalystrc"
37+
envscript="@ENVSCRIPT@"
3838

3939
# Internal hash function catalyst should use for things like autoresume,
4040
# seedcache, etc. The default and fastest is crc32. You should not ever need

assets/config/catalystrc.base

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# adjust accordingly
4+
export MAKEOPTS="-j4"

assets/config/catalystrc.stage2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export myGCC="sys-devel/clang"
2+
export myBINUTILS="sys-devel/llvm"
3+
export myEXTRA="dev-lang/perl sys-devel/lld sys-libs/compiler-rt sys-devel/clang-runtime sys-libs/libcxx sys-libs/libcxxabi sys-libs/llvm-libunwind sys-devel/llvm-common sys-devel/clang-common"

assets/scripts/stage-builder.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ SEEDFILE_BASE="/var/tmp/catalyst/builds"
3939
ARCH=$(get_from_spec "subarch")
4040
PREFIX=$(get_from_spec source_subpath | cut -d '/' -f1)
4141
FLAVOUR=$(get_from_spec profile | cut -d ':' -f1 || "gentoo")
42+
STAGE=$(get_from_spec target)
4243
SNAPSHOT_FILE="$SNAPSHOT_BASE/$FLAVOUR-$TIMESTAMP.tar.bz2"
4344
BASEURL="https://bouncer.gentoo.org/fetch/root/all/releases/$ARCH/autobuilds"
4445

@@ -74,12 +75,20 @@ eval "mount -t overlay overlay -o lowerdir=\"$DEFAULT_REPO_DIR\",upperdir=\"$MOU
7475

7576
einfo "Portage overlay is located at $MOUNT_OVERLAY"
7677

78+
einfo "Creating catalystrc file"
79+
cp -rf "$THIS_OVERLAY_DIR/assets/config/catalystrc.base" "$CONFTEMP/catalystrc" || exit 1
80+
81+
if [ "$STAGE" == "stage2" ]; then
82+
cat "$THIS_OVERLAY_DIR/assets/config/catalystrc.stage2" >> "$CONFTEMP/catalystrc"
83+
fi
84+
7785
# at this point is safe to assume that there's no external catalyst config
7886
# available, so stick to the bundled one
7987
if [ -z "$CATALYST" ]; then
8088
einfo "Tweaking catalyst config to use just created portage overlay"
8189
cp -f "$THIS_OVERLAY_DIR/assets/config/catalyst.conf" "$CONFTEMP/catalyst.conf" || exit 1
8290
sed -i "s:@PORTDIR@:$MOUNT_OVERLAY:g" "$CONFTEMP/catalyst.conf" || exit 1
91+
sed -i "s:@ENVSCRIPT@:$CONFTEMP/catalystrc:g" "$CONFTEMP/catalyst.conf" || exit 1
8392
CATALYST="$CONFTEMP/catalyst.conf"
8493
fi
8594

@@ -91,6 +100,7 @@ fi
91100

92101
# check for snapshot
93102
if [ ! -f "$SNAPSHOT_FILE" ]; then
103+
echo "Missing snapshot: $SNAPSHOT_FILE"
94104
einfo "Getting current snapshot..."
95105

96106
CMD="catalyst -s $TIMESTAMP"

0 commit comments

Comments
 (0)