<pre style='margin:0'>
Jeremy Huddleston Sequoia (jeremyhu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/cf63124116c323a1c00be134e955bb9d9b67c788">https://github.com/macports/macports-ports/commit/cf63124116c323a1c00be134e955bb9d9b67c788</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new cf63124 gcc*: Fix building against an SDK
</span>cf63124 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit cf63124116c323a1c00be134e955bb9d9b67c788
</span>Author: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
AuthorDate: Tue Mar 7 02:28:14 2017 -0800
<span style='display:block; white-space:pre;color:#404040;'> gcc*: Fix building against an SDK
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> With this change, gcc now builds when configure.sdkroot is an SDK. The
</span><span style='display:block; white-space:pre;color:#404040;'> intention is that the installed gcc should be identical to a build in which
</span><span style='display:block; white-space:pre;color:#404040;'> configure.sdkroot is /, but GCC's build system is flawed and does not
</span><span style='display:block; white-space:pre;color:#404040;'> properly implement their --with-build-sdkroot= configure option.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> As a workaround, we are using --with-sdkroot= which causes the installed gcc
</span><span style='display:block; white-space:pre;color:#404040;'> to look in the SDKROOT by default instead of / by default. Hopefully GCC
</span><span style='display:block; white-space:pre;color:#404040;'> will provide a fix for this bug, or someone who is able to look at GPLv3 code
</span><span style='display:block; white-space:pre;color:#404040;'> can provide a fix for them. In the mean time, this is better than failing
</span><span style='display:block; white-space:pre;color:#404040;'> to build.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See https://trac.macports.org/ticket/53726
</span><span style='display:block; white-space:pre;color:#404040;'> See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
</span>---
lang/gcc43/Portfile | 13 +++++++++++++
lang/gcc44/Portfile | 13 +++++++++++++
lang/gcc45/Portfile | 13 +++++++++++++
lang/gcc46/Portfile | 13 +++++++++++++
lang/gcc47/Portfile | 13 +++++++++++++
lang/gcc48/Portfile | 13 +++++++++++++
lang/gcc49/Portfile | 13 +++++++++++++
lang/gcc5/Portfile | 13 +++++++++++++
lang/gcc6/Portfile | 13 +++++++++++++
lang/gcc7/Portfile | 13 +++++++++++++
10 files changed, 130 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc43/Portfile b/lang/gcc43/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 17c32e3..c1aa311 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc43/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc43/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -123,6 +123,19 @@ configure.env-append \
</span> pre-configure {
configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.sdkroot} ne "/"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We should be using --with-build-sysroot here. Using --with-sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # changes the behavior of the installed gcc to look in that sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # by default instead of /. Using --with-build-sysroot is supposed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to be used during the build but not impact the installed product.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Unfortunately, the build fails because the value doesn't get
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # plumbed everywhere it is supposed to.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/53726
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-sysroot="${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # TODO: Remove when base automatically creates configure.dir (2.2.1?).
file mkdir ${configure.dir}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc44/Portfile b/lang/gcc44/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 290ca32..292cdb3 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc44/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc44/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -121,6 +121,19 @@ configure.env-append \
</span> pre-configure {
configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.sdkroot} ne "/"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We should be using --with-build-sysroot here. Using --with-sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # changes the behavior of the installed gcc to look in that sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # by default instead of /. Using --with-build-sysroot is supposed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to be used during the build but not impact the installed product.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Unfortunately, the build fails because the value doesn't get
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # plumbed everywhere it is supposed to.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/53726
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-sysroot="${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # TODO: Remove when base automatically creates configure.dir (2.2.1?).
file mkdir ${configure.dir}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc45/Portfile b/lang/gcc45/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index fb18f45..149b053 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc45/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc45/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -138,6 +138,19 @@ configure.env-append \
</span> pre-configure {
configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.sdkroot} ne "/"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We should be using --with-build-sysroot here. Using --with-sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # changes the behavior of the installed gcc to look in that sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # by default instead of /. Using --with-build-sysroot is supposed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to be used during the build but not impact the installed product.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Unfortunately, the build fails because the value doesn't get
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # plumbed everywhere it is supposed to.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/53726
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-sysroot="${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # TODO: Remove when base automatically creates configure.dir (2.2.1?).
file mkdir ${configure.dir}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc46/Portfile b/lang/gcc46/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 657d680..fd439f5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc46/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc46/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -134,6 +134,19 @@ configure.env-append \
</span> pre-configure {
configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.sdkroot} ne "/"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We should be using --with-build-sysroot here. Using --with-sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # changes the behavior of the installed gcc to look in that sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # by default instead of /. Using --with-build-sysroot is supposed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to be used during the build but not impact the installed product.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Unfortunately, the build fails because the value doesn't get
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # plumbed everywhere it is supposed to.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/53726
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-sysroot="${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # TODO: Remove when base automatically creates configure.dir (2.2.1?).
file mkdir ${configure.dir}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc47/Portfile b/lang/gcc47/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 77b3640..495e518 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc47/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc47/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -131,6 +131,19 @@ configure.env-append \
</span> pre-configure {
configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.sdkroot} ne "/"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We should be using --with-build-sysroot here. Using --with-sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # changes the behavior of the installed gcc to look in that sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # by default instead of /. Using --with-build-sysroot is supposed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to be used during the build but not impact the installed product.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Unfortunately, the build fails because the value doesn't get
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # plumbed everywhere it is supposed to.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/53726
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-sysroot="${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # TODO: Remove when base automatically creates configure.dir (2.2.1?).
file mkdir ${configure.dir}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc48/Portfile b/lang/gcc48/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1f62b68..bfa30e0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc48/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc48/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -102,6 +102,19 @@ configure.env-append \
</span> pre-configure {
configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.sdkroot} ne "/"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We should be using --with-build-sysroot here. Using --with-sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # changes the behavior of the installed gcc to look in that sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # by default instead of /. Using --with-build-sysroot is supposed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to be used during the build but not impact the installed product.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Unfortunately, the build fails because the value doesn't get
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # plumbed everywhere it is supposed to.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/53726
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-sysroot="${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # TODO: Remove when base automatically creates configure.dir (2.2.1?).
file mkdir ${configure.dir}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc49/Portfile b/lang/gcc49/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index acebf4b..534a636 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc49/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc49/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -101,6 +101,19 @@ configure.env-append \
</span> pre-configure {
configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.sdkroot} ne "/"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We should be using --with-build-sysroot here. Using --with-sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # changes the behavior of the installed gcc to look in that sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # by default instead of /. Using --with-build-sysroot is supposed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to be used during the build but not impact the installed product.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Unfortunately, the build fails because the value doesn't get
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # plumbed everywhere it is supposed to.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/53726
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-sysroot="${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # TODO: Remove when base automatically creates configure.dir (2.2.1?).
file mkdir ${configure.dir}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc5/Portfile b/lang/gcc5/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a950817..e3cfc6e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -94,6 +94,19 @@ configure.env-append \
</span> pre-configure {
configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.sdkroot} ne "/"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We should be using --with-build-sysroot here. Using --with-sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # changes the behavior of the installed gcc to look in that sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # by default instead of /. Using --with-build-sysroot is supposed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to be used during the build but not impact the installed product.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Unfortunately, the build fails because the value doesn't get
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # plumbed everywhere it is supposed to.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/53726
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-sysroot="${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # TODO: Remove when base automatically creates configure.dir (2.2.1?).
file mkdir ${configure.dir}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc6/Portfile b/lang/gcc6/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a989604..092dda1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc6/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc6/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -96,6 +96,19 @@ configure.env-append \
</span> pre-configure {
configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.sdkroot} ne "/"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We should be using --with-build-sysroot here. Using --with-sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # changes the behavior of the installed gcc to look in that sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # by default instead of /. Using --with-build-sysroot is supposed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to be used during the build but not impact the installed product.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Unfortunately, the build fails because the value doesn't get
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # plumbed everywhere it is supposed to.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/53726
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-sysroot="${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # TODO: Remove when base automatically creates configure.dir (2.2.1?).
file mkdir ${configure.dir}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc7/Portfile b/lang/gcc7/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 16ce772..77bd4a2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc7/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc7/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -92,6 +92,19 @@ configure.env-append \
</span> pre-configure {
configure.args-append --with-pkgversion="MacPorts ${name} ${version}_${revision}${portvariants}"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.sdkroot} ne "/"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We should be using --with-build-sysroot here. Using --with-sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # changes the behavior of the installed gcc to look in that sysroot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # by default instead of /. Using --with-build-sysroot is supposed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to be used during the build but not impact the installed product.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Unfortunately, the build fails because the value doesn't get
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # plumbed everywhere it is supposed to.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/53726
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-sysroot="${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # TODO: Remove when base automatically creates configure.dir (2.2.1?).
file mkdir ${configure.dir}
}
</pre><pre style='margin:0'>
</pre>