The attached Info file changes tweak the builds of gcc5-5.4.0-3 and gcc6-5.2.0-3 with the additional ConfiiguraParams parameter of...
--with-local-prefix=%p \
added to allow the compiler bootstrap to succeed when performed within an Apple sandbox that denies file reads in /usr/local. The info file changes are...
Index: gcc5.info
===================================================================
RCS file: /cvsroot/fink/dists/10.9-libcxx/stable/main/finkinfo/languages/gcc5.info,v
retrieving revision 1.9
diff -u -r1.9 gcc5.info
--- gcc5.info 8 Oct 2016 11:03:42 -0000 1.9
+++ gcc5.info 4 Nov 2016 09:14:37 -0000
@@ -1,7 +1,7 @@
Info2: <<
Package: gcc5
Version: 5.4.0
-Revision: 2
+Revision: 3
Source: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%v/gcc-%v.tar.bz2
Source-MD5: 4c626ac2a83ef30dfb9260e6f59c2b30
Source2: ftp://sourceware.org/pub/java/ecj-4.9.jar
@@ -71,6 +71,7 @@
--with-isl=%p \
--with-mpc=%p \
--with-system-zlib \
+ --with-local-prefix=%p \
--program-suffix=-fsf-5
<<
InfoTest: <<
and
Index: gcc6.info
===================================================================
RCS file: /cvsroot/fink/dists/10.9-libcxx/stable/main/finkinfo/languages/gcc6.info,v
retrieving revision 1.4
diff -u -r1.4 gcc6.info
--- gcc6.info 8 Oct 2016 20:26:47 -0000 1.4
+++ gcc6.info 4 Nov 2016 09:14:37 -0000
@@ -1,7 +1,7 @@
Info2: <<
Package: gcc6
Version: 6.2.0
-Revision: 2
+Revision: 3
Source: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%v/gcc-%v.tar.bz2
Source-MD5: 9768625159663b300ae4de2f4745fcc4
Source2: ftp://sourceware.org/pub/java/ecj-4.9.jar
@@ -71,6 +71,7 @@
--with-isl=%p \
--with-mpc=%p \
--with-system-zlib \
+ --with-local-prefix=%p \
--program-suffix=-fsf-6
<<
InfoTest: <<
Tested on 10.11 with 'fink -m' against fink-0.41.0 with the proposed sandboxing changes from https://github.com/fink/fink/pull/135 applied to deny file reads with /usr/local and /opt/local. This uaage of --with-local-prefix=%p is already present in the MacPorts gcc5 package which has been built under a sandbox for several years now.
Note that the revision bump is required because the addition of --with-local-prefix=%p to the configure options removes /usr/local/include from the compiler's default search include path.
Info file for gcc5-5.4.0-3
Last edit: Jack Howarth 2016-11-04
Info file for gcc6-5.2.0-3
Use --with-local-prefix=/ instead to avoid adding %p/include to the compiler header search path which would break package builds that depend on 'NoSetCPPFLAGS: true' being honored.
and
revised Info file for gcc5-5.4.0-3
revised Info file for gcc6-5.2.0-3
Use proper fix proposed upstream at https://gcc.gnu.org/ml/gcc-patches/2016-11/msg00521.html
and
Tested on 10.11 with Apple sandbox build using 'fink -m'
Info file for gcc5-5.4.0-3 to make package Apple sandbox friendly
Last edit: Jack Howarth 2016-11-06
Info file for gcc6-6.2.0-3 to make package Apple sandbox friendly
Sync the proposed package updates with the latest darwin-specific patches pushed upstream....
and
Updated info file for Info file for gcc5-5.4.0-3
New gcc5-PR71767_PR57438_PR67710.patch cummulative patch including...
https://gcc.gnu.org/ml/gcc-patches/2015-10/msg01676.html
https://gcc.gnu.org/ml/gcc-patches/2015-09/msg00453.html
https://gcc.gnu.org/ml/gcc-patches/2015-10/msg01682.html
for context to apply the newer patches against.
Last edit: Jack Howarth 2016-11-11
Updated info file for Info file for gcc6-5.2.0-3
New gcc6-PR71767_PR57438_PR67710.patch