Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support clang on macos prefix #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DarthGandalf
Copy link
Contributor

@thesamesam thesamesam requested a review from grobian June 25, 2024 01:09
@thesamesam
Copy link
Member

@grobian can you take a look?

@@ -1695,7 +1698,6 @@ do_emerge_pkgs() {
-fortran
-gdbm
-git
-libcxx
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this is going to break non-clang bootstraps?

@@ -2221,11 +2286,37 @@ bootstrap_stage3() {
ln -s bash "${ROOT}"/bin/sh
fi

# Start using apps from the final destination Prefix
export PREROOTPATH="${ROOT}/usr/bin:${ROOT}/bin"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this var used to be picked up by portage, are we sure the below replacement is picked up by portage?

export PREROOTPATH="${ROOT}/usr/bin:${ROOT}/bin"
# Start using apps from new target
cat > "${ROOT}"/tmp/etc/env.d/10stage3 <<-EOF
PATH="${ROOT}/usr/bin:${ROOT}/bin:${ROOT}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the trailing ROOT supposed to be here? what lives there?


# Get a sane bash, overwriting tmp symlinks
pre_emerge_pkgs "" "app-shells/bash" || return 1
ln -s "${ROOT}"/bin/bash "${ROOT}"/usr/bin/bash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is weird
bin should be a symlink to usr/bin, and thus this should break or complain about both arguments being the same file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants