On May 27, 2007, at 11:21, source_changes@macosforge.org wrote:
Revision: 25641 http://trac.macosforge.org/projects/macports/changeset/25641 Author: takanori@macports.org Date: 2007-05-27 09:21:59 -0700 (Sun, 27 May 2007)
Log Message: ----------- * Version bump to 0.8.10. * Variant names should not contain hyphen. * Closes ticket #11979. No responce from the maintainer.
Modified Paths: -------------- trunk/dports/lang/gauche/Portfile
[snip]
Modified: trunk/dports/lang/gauche/Portfile =================================================================== --- trunk/dports/lang/gauche/Portfile 2007-05-27 15:22:23 UTC (rev 25640) +++ trunk/dports/lang/gauche/Portfile 2007-05-27 16:21:59 UTC (rev 25641)
[snip]
-platform darwin 8 { configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/ cpp-4.0 CXX=/usr/bin/g++-4.0 }
So it looks like the darwin 8 platform selector which set CC, CPP and CXX has been removed in this revision. Why was this removed, and why was it there in the first place? I've asked this before, and I'm still looking for a good answer for why so many ports [1] have a darwin 8 platform selector like this, what problem it's trying to solve, and why the problem is thought not to exist in the other ports. GCC 4 is already the default on Darwin 8 a.k.a. Mac OS X 10.4. If this platform selector is only trying to solve the case where the user has used gcc_select to select a different default GCC, then either MacPorts should always set CC, CPP and CXX to appropriate values on all platforms for all portfiles, or MacPorts should fail to run entirely and instead alert the user that changing the default with gcc_select is not advisable. [1] $ grep CC=/usr/bin/gcc-4.0 */*/Portfile | wc -l 276 $ grep CPP=/usr/bin/cpp-4.0 */*/Portfile | wc -l 217 $ grep CXX=/usr/bin/g++-4.0 */*/Portfile | wc -l 202 $
Interesting.
Why was this removed, and why was it there in the first place?
I don't know why these lines are there, but it sure is funny. In my view, these lines make no sense. All or almost all ports should be able to be compiled with the default compiler, and the default compiler should not be changed.
If this platform selector is only trying to solve the case where the user has used gcc_select to select a different default GCC, then either MacPorts should always set CC, CPP and CXX to appropriate values on all platforms for all portfiles, or MacPorts should fail to run entirely and instead alert the user that changing the default with gcc_select is not advisable.
To make MacPorts be able to handle CC/CPP/CXX, some new variables like configure.cc/cpp/cxx may be required. I think it might be too exaggerated. Runtime version checking is the better solution. From: Ryan Schmidt <ryandesign@macports.org> Subject: Re: [25641] trunk/dports/lang/gauche Date: Sun, 27 May 2007 15:51:58 -0500
On May 27, 2007, at 11:21, source_changes@macosforge.org wrote:
Revision: 25641 http://trac.macosforge.org/projects/macports/changeset/25641 Author: takanori@macports.org Date: 2007-05-27 09:21:59 -0700 (Sun, 27 May 2007)
Log Message: ----------- * Version bump to 0.8.10. * Variant names should not contain hyphen. * Closes ticket #11979. No responce from the maintainer.
Modified Paths: -------------- trunk/dports/lang/gauche/Portfile
[snip]
Modified: trunk/dports/lang/gauche/Portfile =================================================================== --- trunk/dports/lang/gauche/Portfile 2007-05-27 15:22:23 UTC (rev 25640) +++ trunk/dports/lang/gauche/Portfile 2007-05-27 16:21:59 UTC (rev 25641)
[snip]
-platform darwin 8 { configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/ cpp-4.0 CXX=/usr/bin/g++-4.0 }
So it looks like the darwin 8 platform selector which set CC, CPP and CXX has been removed in this revision. Why was this removed, and why was it there in the first place? I've asked this before, and I'm still looking for a good answer for why so many ports [1] have a darwin 8 platform selector like this, what problem it's trying to solve, and why the problem is thought not to exist in the other ports. GCC 4 is already the default on Darwin 8 a.k.a. Mac OS X 10.4. If this platform selector is only trying to solve the case where the user has used gcc_select to select a different default GCC, then either MacPorts should always set CC, CPP and CXX to appropriate values on all platforms for all portfiles, or MacPorts should fail to run entirely and instead alert the user that changing the default with gcc_select is not advisable.
[1]
$ grep CC=/usr/bin/gcc-4.0 */*/Portfile | wc -l 276 $ grep CPP=/usr/bin/cpp-4.0 */*/Portfile | wc -l 217 $ grep CXX=/usr/bin/g++-4.0 */*/Portfile | wc -l 202 $
_______________________________________________ macports-dev mailing list macports-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-dev
participants (2)
-
Ryan Schmidt
-
Takanori Yamamoto