#12416: Mercurial assumes that any system with XCode *installed* will use XCode
to
*build* Mercurial
------------------------+---------------------------------------------------
Reporter: jdemeyer | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: packages | Keywords:
Work_issues: | Upstream: Fixed upstream, in a later stable
release.
Reviewer: | Author: Jeroen Demeyer
Merged: | Dependencies:
------------------------+---------------------------------------------------
Description changed by jdemeyer:
Old description:
> This is an except from upstream's {{{setup.py}}}:
> {{{
> if sys.platform == 'darwin' and os.path.exists('/usr/bin/xcodebuild'):
> # XCode 4.0 dropped support for ppc architecture, which is hardcoded
> in
> # distutils.sysconfig
> version = runcmd(['/usr/bin/xcodebuild', '-version'],
> {})[0].splitlines()[0]
> # Also parse only first digit, because 3.2.1 can't be parsed nicely
> if (version.startswith('Xcode') and
> StrictVersion(version.split()[1]) >= StrictVersion('4.0')):
> os.environ['ARCHFLAGS'] = '-arch i386 -arch x86_64'
> }}}
>
> The `ARCHFLAGS` are passed to `gcc` during the setup of Mercurial. This
> obviously breaks on a system with XCode installed, but where the "gcc"
> found in the `PATH` isn't XCode's gcc.
>
> In later upstream releases, the last line is changed to
> {{{
> os.environ['ARCHFLAGS'] = '-arch i386 -arch x86_64'
> }}}
>
> So I propose to backport this change.
New description:
This is an except from upstream's {{{setup.py}}}:
{{{
if sys.platform == 'darwin' and os.path.exists('/usr/bin/xcodebuild'):
# XCode 4.0 dropped support for ppc architecture, which is hardcoded
in
# distutils.sysconfig
version = runcmd(['/usr/bin/xcodebuild', '-version'],
{})[0].splitlines()[0]
# Also parse only first digit, because 3.2.1 can't be parsed nicely
if (version.startswith('Xcode') and
StrictVersion(version.split()[1]) >= StrictVersion('4.0')):
os.environ['ARCHFLAGS'] = '-arch i386 -arch x86_64'
}}}
The `ARCHFLAGS` are passed to `gcc` during the setup of Mercurial. This
obviously breaks on a system with XCode installed, but where the "gcc"
found in the `PATH` isn't XCode's gcc.
In later upstream releases, the last line is changed to
{{{
os.environ['ARCHFLAGS'] = ''
}}}
So I propose to backport this change.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12416#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.