Skip to content

Commit 913dd1a

Browse files
author
2b57
committed
fix typos and rearrange parent profiles
1 parent ec1c8bd commit 913dd1a

File tree

7 files changed

+18
-16
lines changed

7 files changed

+18
-16
lines changed
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
*sys-devel/lld
2-
*sys-devel/llvm
3-
*sys-devel/clang
4-
*sys-libs/libcxx
5-
*sys-libs/libcxxabi
6-
*sys-libs/compiler-rt
7-
*sys-libs/llvm-libunwind
1+
virtual/toolchain
2+
virtual/binutils
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
sys-devel/lld
2+
sys-devel/llvm
3+
sys-devel/clang
4+
sys-libs/libcxx
5+
sys-libs/libcxxabi
6+
sys-libs/compiler-rt
7+
sys-libs/llvm-libunwind
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
../../../../features/bootstrap
21
gentoo:default/linux/amd64/17.0/musl
2+
../../../../features/bootstrap
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
../../../features/bootstrap
21
gentoo:default/linux/amd64/17.1
2+
../../../features/bootstrap
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
..
21
gentoo:default/linux/amd64/17.0/musl
2+
../../../../features/clang

profiles/linux/amd64/clang/parent

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
../../../features/clang
21
gentoo:default/linux/amd64/17.1
2+
../../../features/clang

scripts/stage-builder.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ mkdir -p "/var/tmp/catalyst/snapshot_cache/$TIMESTAMP"
5353
THIS_OVERLAY_DIR="$REPO_BASEDIR/toolchain-clang"
5454
DEFAULT_REPO_DIR="$REPO_BASEDIR/gentoo"
5555
MOUNT_JUNKDIR=$(mktemp -d)
56-
MOUNT_REPODIR="$MOUNT_JUNKDIR/toolchain-clang-overlay"
56+
MOUNT_UPPERDIR="$MOUNT_JUNKDIR/overlay-upper"
5757
MOUNT_OVERLAY="$MOUNT_JUNKDIR/portage-union"
5858
MOUNT_WORKDIR="$MOUNT_OVERLAY-workdir"
5959

@@ -67,9 +67,9 @@ if [ $(grep -q "$MOUNT_OVERLAY" /proc/mounts; echo $?) -eq 0 ]; then
6767
umount -f "$MOUNT_OVERLAY" || exit 1
6868
fi
6969

70-
eval "rm -rf $MOUNT_OVERLAY $MOUNT_WORKDIR && mkdir -p $MOUNT_OVERLAY $MOUNT_WORKDIR" || exit 1
71-
eval "mkdir -p $MOUNT_OVERLAY/scripts && cp -f $THIS_OVERLAY_DIR/scripts/bootstrap.sh $MOUNT_OVERLAY/scripts/bootstrap.sh" || exit 1
72-
eval "mount -t overlay overlay -o lowerdir=\"$DEFAULT_REPO_DIR\",upperdir=\"$MOUNT_REPODIR\",workdir=\"$MOUNT_WORKDIR\" $MOUNT_OVERLAY" || exit 1
70+
eval "rm -rf $MOUNT_JUNKDIR/* && mkdir -p $MOUNT_OVERLAY $MOUNT_WORKDIR $MOUNT_UPPERDIR" || exit 1
71+
eval "mkdir -p $MOUNT_UPPERDIR/scripts && cp -f $THIS_OVERLAY_DIR/scripts/bootstrap.sh $MOUNT_UPPERDIR/scripts/bootstrap.sh" || exit 1
72+
eval "mount -t overlay overlay -o lowerdir=\"$DEFAULT_REPO_DIR\",upperdir=\"$MOUNT_UPPERDIR\",workdir=\"$MOUNT_WORKDIR\" $MOUNT_OVERLAY" || exit 1
7373

7474
einfo "Portage overlay is located at $MOUNT_OVERLAY"
7575

@@ -78,7 +78,7 @@ einfo "Portage overlay is located at $MOUNT_OVERLAY"
7878
if [ -z "$CATALYST" ]; then
7979
einfo "Tweaking catalyst config to use just created portage overlay"
8080
cp -f "$THIS_OVERLAY_DIR/scripts/catalyst.conf" "$CONFTEMP/catalyst.conf" || exit 1
81-
sed -i "s/@PORTDIR@/$MOUNT_OVERLAY/g" "$CONFTEMP/catalyst.conf" || exit 1
81+
sed -i "s:@PORTDIR@:$MOUNT_OVERLAY:g" "$CONFTEMP/catalyst.conf" || exit 1
8282
CATALYST="$CONFTEMP/catalyst.conf"
8383
fi
8484

0 commit comments

Comments
 (0)