diff options
author | 2024-09-05 13:46:25 +0200 | |
---|---|---|
committer | 2024-09-05 13:46:25 +0200 | |
commit | caac940fe3594a7f48900de9a2aca0dbf21bc798 (patch) | |
tree | 7448338ca6060b218a8878586915bae4e12b1bca /scripts | |
parent | scripts/bootstrap-prefix: use DISABLE_USE for circular deps (diff) | |
download | prefix-master.tar.gz prefix-master.tar.bz2 prefix-master.zip |
It doesn't do much, and turns the Prefix from generic to specific to the
running machine, which is an undesirable side-effect.
Closes: https://bugs.gentoo.org/939038
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bootstrap-prefix.sh | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index 888023efc5..5ad9f4dc7a 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -2486,47 +2486,6 @@ bootstrap_stage3() { # default USE-flags unset USE - # do some sanity USE-flag enabling based on CPU, use cpuid2cpuflags - # if keyworded for this arg, else see if there's fallbacks to be - # made - mkdir -p "${ROOT}/etc/portage/package.use" - if emerge --color n --oneshot -v cpuid2cpuflags ; then - hash -r - echo "*/* $(cpuid2cpuflags)" \ - > "${ROOT}/etc/portage/package.use/00cpu-flags" - else - case "${CHOST}" in - arm64-*darwin*) - # https://github.com/RustCrypto/utils/issues/378 - local flags=( "aes" "sha1" "sha2" ) - local line - sysctl hw.optional | while read -r line ; do - line=${line#hw.optional.} - [[ ${line%%*: } == "1" ]] || continue - line=${line%: *} - case "${line}" in - "neon") - flags+=( "${line}" ) - ;; - "armv8_"*) - line=${line#armv8_} - case "${line}" in - "crc32") - flags+=( "${line}" ) - ;; - "2_sha"*) - flags+=( "${line#2_}" ) - ;; - esac - ;; - esac - done - echo "*/* CPU_FLAGS_ARM: ${flags}" \ - > "${ROOT}/etc/portage/package.use/00cpu-flags" - ;; - esac - fi - # re-emerge anything hopefully not running into circular deps eflags=( "--deep" "--changed-use" "@world" ) einfo "running emerge ${eflags[*]}" |