[MacPorts] #62023: python39 @3.9.1 does not build universal on BigSur

MacPorts noreply at macports.org
Mon Jan 11 06:53:47 UTC 2021


#62023: python39 @3.9.1 does not build universal on BigSur
-----------------------+------------------------------
  Reporter:  kencu     |      Owner:  jmroot
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  BigSur universal
      Port:  python39  |
-----------------------+------------------------------

Comment (by kencu):

 building it universal on 10.6 i386/x86_64 seems to be fine. Patching:
 {{{
 Executing:  cd
 "/opt/local/var/macports/build/_opt_myports_lang_python39/python39/work/Python-3.9.1"
 && /usr/bin/patch -p0 < '/opt/myports/lang/python39/files/implicit.patch'
 patching file configure
 --->  Patching cgi.py: s|@@PREFIX@@|/opt/local|g
 --->  Patching dyld.py: s|@@PREFIX@@|/opt/local|g
 --->  Patching Makefile.pre.in: s|/setup.py|/setup.py --no-user-cfg|
 --->  Patching configure: s|@@APPLICATIONS_DIR@@|/Applications/MacPorts|
 --->  Patching configure: s|LIPO_32BIT_FLAGS=".*"|LIPO_32BIT_FLAGS=""|
 --->  Patching configure:
 s|UNIVERSAL_ARCH_FLAGS=".*"|UNIVERSAL_ARCH_FLAGS="-arch x86_64 -arch
 i386"|
 --->  Patching configure: s|ARCH_RUN_32BIT=".*"|ARCH_RUN_32BIT="arch
 -i386"|
 --->  Patching configure:
 s|LIPO_32BIT_FLAGS=".*"|LIPO_32BIT_FLAGS="-extract i386"|
 --->  Configuring python39
 }}}

 Archs and running:
 {{{
  file "/Applications/MacPorts/Python 3.9/IDLE.app/Contents/MacOS/Python"
 /Applications/MacPorts/Python 3.9/IDLE.app/Contents/MacOS/Python: Mach-O
 universal binary with 2 architectures
 /Applications/MacPorts/Python 3.9/IDLE.app/Contents/MacOS/Python (for
 architecture x86_64):     Mach-O 64-bit executable x86_64
 /Applications/MacPorts/Python 3.9/IDLE.app/Contents/MacOS/Python (for
 architecture i386):       Mach-O executable i386
 macbookpro21:python39 cunningh$ python3.9
 Python 3.9.1 (default, Jan 10 2021, 18:21:38)
 [Clang 9.0.1 ] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import subprocess
 >>> ^D
 }}}

 So it appears that this Lipo_32bit_flags business works there.

-- 
Ticket URL: <https://trac.macports.org/ticket/62023#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list