[gentoo-commits] repo/proj/prefix:master commit in: scripts/, sys-devel/gcc/

2020-11-23 Thread Fabian Groffen
commit: 56f43886482ca23b91b6fd4f8738dd4e035f003b
Author: Fabian Groffen  gentoo  org>
AuthorDate: Mon Nov 23 20:22:18 2020 +
Commit: Fabian Groffen  gentoo  org>
CommitDate: Mon Nov 23 20:22:18 2020 +
URL:https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=56f43886

scripts/bootstrap-prefix: normalise DARWIN_USE_GCC codepath somewhat

Signed-off-by: Fabian Groffen  gentoo.org>

 scripts/bootstrap-prefix.sh| 68 +-
 sys-devel/gcc/gcc-10.1.0-r1.ebuild |  2 +-
 2 files changed, 38 insertions(+), 32 deletions(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 458d18cc55..9ad307e1cd 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -180,8 +180,8 @@ configure_toolchain() {
CXX=g++
 
case ${CHOST}:${DARWIN_USE_GCC} in
-   powerpc-*darwin*|*:yes|*:1|*:true)
-   einfo "Triggering Darwin with GCC toolchain path"
+   powerpc-*darwin*|*:1)
+   einfo "Triggering Darwin with GCC toolchain"
compiler_stage1+=" sys-apps/darwin-miscutils 
sys-libs/csu"
local ccvers="$( (unset CHOST; gcc --version 
2>/dev/null) )"
case "${ccvers}" in
@@ -197,7 +197,9 @@ configure_toolchain() {
;;
*"(Gentoo "*)
# probably the result of a bootstrap in 
progress
-   linker=sys-devel/binutils-apple
+   [[ ${DARWIN_USE_GCC} == 1 ]] \
+   && 
linker=sys-devel/native-cctools \
+   || 
linker=sys-devel/binutils-apple
;;
*"Apple clang version "*|*"Apple LLVM version 
"*)
# gcc cannot build (recent) 
binutils-apple due to
@@ -213,7 +215,7 @@ configure_toolchain() {
compiler_stage1+=" sys-devel/gcc"
;;
*-darwin*)
-   einfo "Triggering Darwin with Clang toolchain path"
+   einfo "Triggering Darwin with LLVM/Clang toolchain"
# for compilers choice, see bug:
# https://bugs.gentoo.org/show_bug.cgi?id=538366
compiler_stage1="sys-apps/darwin-miscutils sys-libs/csu"
@@ -418,15 +420,16 @@ bootstrap_setup() {
rev=${CHOST##*darwin}
profile="prefix/darwin/macos/10.$((rev - 4))/x86"
;;
+   x86_64-apple-darwin9|x86_64-apple-darwin1[012345678])
+   rev=${CHOST##*darwin}
+   profile="prefix/darwin/macos/10.$((rev - 4))/x64"
+   ;;
x86_64-apple-darwin19|x86_64-apple-darwin2[0123456789])
+   # TODO: add profiles for these
# handle newer releases on the last profile we have 
headers
# and stuff for (https://opensource.apple.com/)
profile="prefix/darwin/macos/10.14/x64"
;;
-   x86_64-apple-darwin9|x86_64-apple-darwin1[012345678])
-   rev=${CHOST##*darwin}
-   profile="prefix/darwin/macos/10.$((rev - 4))/x64"
-   ;;
i*86-pc-linux-gnu)
profile=${profile_linux/ARCH/x86}
;;
@@ -500,6 +503,18 @@ bootstrap_setup() {
exit 1
;;
esac
+
+   if [[ ${DARWIN_USE_GCC} == 1 ]] ; then
+   # setup MacOSX.sdk symlink for GCC, this should probably be
+   # managed using an eselect module in the future
+   ( cd ${ROOT} && ln -s $(xcrun --show-sdk-path --sdk macosx) )
+   einfo "using system sources from $(\
+   xcrun --show-sdk-version --sdk macosx)"
+
+   # amend profile, to use gcc one
+   profile="${profile}/gcc"
+   fi
+
[[ -n ${PROFILE_BASE}${PROFILE_VARIANT} ]] &&

profile=${PROFILE_BASE:-prefix}/${profile#prefix/}${PROFILE_VARIANT:+/${PROFILE_VARIANT}}
if [[ -n ${profile} && ! -e ${ROOT}/etc/portage/make.profile ]] ; then
@@ -509,16 +524,6 @@ bootstrap_setup() {
einfo "Your profile is set to ${fullprofile}."
fi
 
-   case ${DARWIN_USE_GCC} in
-   yes|1|true)
-   # setup MacOSX.sdk symlink for GCC, this should 
probably be
-   # managed using an eselect module in the future
-   ( cd ${ROOT} && ln -s $(xcrun --show-sdk-path --sdk 
macosx) )
-   einfo 

[gentoo-commits] repo/proj/prefix:master commit in: scripts/, sys-devel/gcc/

2017-08-23 Thread Fabian Groffen
commit: 8edc6496b8efcfbbaf04e3ff51ff2c45f234eaff
Author: Fabian Groffen  gentoo  org>
AuthorDate: Wed Aug 23 09:38:51 2017 +
Commit: Fabian Groffen  gentoo  org>
CommitDate: Wed Aug 23 09:38:51 2017 +
URL:https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=8edc6496

scripts/bootstrap-prefix: bump tree and portage snapshot

 scripts/bootstrap-prefix.sh| 10 +++---
 sys-devel/gcc/gcc-5.3.0.ebuild |  2 +-
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 335cb27cc4..185ddcae77 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -522,7 +522,7 @@ do_tree() {
 bootstrap_tree() {
# RAP uses the latest gentoo main repo snapshot to bootstrap.
is-rap && LATEST_TREE_YES=1
-   local PV="20170708"
+   local PV="20170822"
if [[ -n ${LATEST_TREE_YES} ]]; then
do_tree "${SNAPSHOT_URL}" portage-latest.tar.bz2
else
@@ -598,8 +598,8 @@ bootstrap_portage() {
# STABLE_PV that is known to work. Intended for power users only.
## It is critical that STABLE_PV is the lastest (non-masked) version 
that is
## included in the snapshot for bootstrap_tree.
-   STABLE_PV="2.3.5"
-   [[ ${TESTING_PV} == latest ]] && TESTING_PV="2.3.5"
+   STABLE_PV="2.3.8"
+   [[ ${TESTING_PV} == latest ]] && TESTING_PV="2.3.8"
PV="${TESTING_PV:-${STABLE_PV}}"
A=prefix-portage-${PV}.tar.bz2
einfo "Bootstrapping ${A%-*}"
@@ -616,10 +616,6 @@ bootstrap_portage() {
S="${S}/prefix-portage-${PV}"
cd "${S}"
 
-   # Cygwin
-   patch -p1 < 
"${PORTDIR}"/sys-apps/portage/files/portage-2.2.28-cygwin.patch
-   patch -p1 < 
"${PORTDIR}"/sys-apps/portage/files/portage-2.3.4-mj-safe-econf.patch
-
# >=2.3
[[ -r bin/repoman ]] || sed -i -e '/repoman/d' {man,bin}/Makefile.in
 

diff --git a/sys-devel/gcc/gcc-5.3.0.ebuild b/sys-devel/gcc/gcc-5.3.0.ebuild
index e87fc86298..f214d0d327 100644
--- a/sys-devel/gcc/gcc-5.3.0.ebuild
+++ b/sys-devel/gcc/gcc-5.3.0.ebuild
@@ -127,7 +127,7 @@ src_configure() {
;;
*-solaris*)
# todo: some magic for native vs. GNU linking?
-   myconf+=( --with-gnu-ld --with-gnu-as )
+   myconf+=( --with-gnu-ld --with-gnu-as 
--enable-largefile )
;;
*-aix*)
# AIX doesn't use GNU binutils, because it doesn't 
produce usable