[MacPorts] #69320: On PPC Leopard, Mac OS X 10.5.8, py311-flit_core @3.9.0 does not build (which is required for py311-wheel)

MacPorts noreply at macports.org
Mon Feb 12 17:33:47 UTC 2024


#69320: On PPC Leopard, Mac OS X 10.5.8, py311-flit_core @3.9.0 does not build
(which is required for py311-wheel)
-----------------------------------+-------------------------
  Reporter:  ballapete             |      Owner:  (none)
      Type:  defect                |     Status:  new
  Priority:  Normal                |  Milestone:
 Component:  ports                 |    Version:  2.9.1
Resolution:                        |   Keywords:  leopard ppc
      Port:  py-flit py-flit_core  |
-----------------------------------+-------------------------

Comment (by ballapete):

 New try with this starting position:

 {{{
 -rw-r--r-- 1 root        632370 2024-02-11 20:37:43.000000000 +0100
 /opt/local/var/macports/software/py-bootstrap-modules/py-bootstrap-
 modules-2022-12-23_0.any_any.noarch.tbz2
 -rw-r--r-- 1 root        213927 2024-02-10 00:25:24.000000000 +0100
 /opt/local/var/macports/software/py311-libxml2/py311-libxml2-2.11.5_0.darwin_9.ppc.tbz2
 -rw-r--r-- 1 macports   3215590 2024-02-10 11:55:38.000000000 +0100
 /opt/local/var/macports/software/py311-pygments/py311-pygments-2.17.2_0.darwin_any.noarch.tbz2
 -rw-r--r-- 1 root          1291 2022-09-17 12:06:54.000000000 +0200
 /opt/local/var/macports/software/pygments_select/pygments_select-0.1_1.darwin_9.noarch.tbz2
 -rw-r--r-- 1 root          1807 2023-01-23 00:19:26.000000000 +0100
 /opt/local/var/macports/software/python2_select/python2_select-0.0_4.darwin_9.noarch.tbz2
 -rw-r--r-- 1 root      33776558 2024-02-11 16:43:30.000000000 +0100
 /opt/local/var/macports/software/python311/python311-3.11.8_0.darwin_9.ppc.tbz2
 -rw-r--r-- 1 macports      1704 2024-02-09 18:17:44.000000000 +0100
 /opt/local/var/macports/software/python3_select-311/python3_select-311-0.1_1.any_any.noarch.tbz2
 -rw-r--r-- 1 root          1690 2024-02-09 18:17:35.000000000 +0100
 /opt/local/var/macports/software/python3_select/python3_select-0.1_0.darwin_9.noarch.tbz2
 -rw-r--r-- 1 macports      1902 2024-02-09 18:17:01.000000000 +0100
 /opt/local/var/macports/software/python_select-311/python_select-311-0.3_1.any_any.noarch.tbz2
 -rw-r--r-- 1 root          1822 2022-09-17 12:12:11.000000000 +0200
 /opt/local/var/macports/software/python_select/python_select-0.3_10.darwin_9.noarch.tbz2
 }}}

 I deleted `py-bootstrap-modules`, rebuilt, and installed:

 {{{
 -rw-r--r-- 1 root        632150 2024-02-12 16:48:45.000000000 +0100
 /opt/local/var/macports/software/py-bootstrap-modules/py-bootstrap-
 modules-2022-12-23_0.any_any.noarch.tbz2
 }}}

 Looking into the log I see that these modules are included in `py-
 bootstrap-modules`: `build-0.9.0 flit_core-3.8.0 installer-0.6.0
 packaging-21.3 pep517-0.13.0 pyparsing-3.0.9 python-install-0.0.3
 setuptools_scm-6.4.2 tomli-1.2.3 wheel-0.37.1` – `Portfile` shows the same
 components. Yesterday I kind of additionally installed a different version
 of "installer": `installer-0.7.0`, and today again:

 {{{
 -rw-r--r-- 1 root        402663 2024-02-12 17:25:08.000000000 +0100
 /opt/local/var/macports/software/py311-installer/py311-installer-0.7.0_0.darwin_any.noarch.tbz2
 }}}

 Next "project" built and installed without problem:

 {{{
 -rw-r--r-- 1 root         22528 2024-02-12 17:49:32.000000000 +0100
 /opt/local/var/macports/software/py311-pyproject_hooks/py311-pyproject_hooks-1.0.0_0.darwin_any.noarch.tbz2
 }}}

 `py311-build` has a dependency, so I decided to build and install it
 first:

 {{{
 -rw-r--r-- 1 root        115487 2024-02-12 17:54:48.000000000 +0100
 /opt/local/var/macports/software/py311-packaging/py311-packaging-23.2_0.darwin_any.noarch.tbz2
 }}}

 `py-bootstrap-modules` contains a version that is two major versions
 behind (21.3 vs. 23.2) …

 Looking at the dependencies `meson` and `py311-meson` have, those ports
 that port needs to install some additional software, I see `py311-build
 py311-setuptools py311-wheel`. This time I am choosing the easiest one

 {{{
 -rw-r--r-- 1 root       1941867 2024-02-12 18:16:17.000000000 +0100
 /opt/local/var/macports/software/py311-setuptools/py311-setuptools-69.0.3_0.darwin_any.noarch.tbz2
 }}}

 While building, this warning showed up:

 {{{
 installing to build/bdist.macosx-10.5-ppc/wheel
 running install
 Distribution option extra_path is deprecated. See issue27919 for details.
 running install_lib
 creating build/bdist.macosx-10.5-ppc
 }}}

 The next of the three modules now has no dependencies, but it does not
 build:

 {{{
 --->  Extracting build-1.0.3.tar.gz
 DEBUG: setting option extract.args to '/opt/local/var/macports/distfiles
 /py-build/build-1.0.3.tar.gz'
 DEBUG: Environment:
 CC_PRINT_OPTIONS='YES'
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 build/py311-build/work/.CC_PRINT_OPTIONS'
 CPATH='/opt/local/include'
 DEVELOPER_DIR='/Developer'
 LIBRARY_PATH='/opt/local/lib'
 MACOSX_DEPLOYMENT_TARGET='10.5'
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-build/py311-build/work" &&
 /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/py-
 build/build-1.0.3.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -
 DEBUG: system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-build/py311-build/work" &&
 /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/py-
 build/build-1.0.3.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -
 /usr/bin/gnutar: build-1.0.3/PKG-INFO: implausibly old time stamp
 1970-01-01 01:00:00
 DEBUG: euid/egid changed to: 0/0
 DEBUG: chowned
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-build/py311-build/work to
 macports
 DEBUG: euid/egid changed to: 502/502
 DEBUG: Executing proc-post-org.macports.extract-extract-0
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: patch phase started at Mon Feb 12 18:24:43 CET 2024
 DEBUG: Executing org.macports.patch (py311-build)
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: configure phase started at Mon Feb 12 18:24:43 CET 2024
 --->  Configuring py311-build
 DEBUG: Preferred compilers: gcc-4.2 llvm-gcc-4.2 apple-gcc-4.2 gcc-4.0
 macports-gcc-7 macports-gcc-6 macports-gcc-5 macports-clang-11 macports-
 clang-10 macports-clang-9.0 macports-clang-8.0 macports-clang-7.0
 macports-clang-6.0 macports-clang-5.0 macports-clang-3.7 macports-
 clang-3.4
 DEBUG: Using compiler 'Xcode GCC 4.2'
 DEBUG: Executing org.macports.configure (py311-build)
 DEBUG: Executing portconfigure::configure_finish
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: build phase started at Mon Feb 12 18:24:43 CET 2024
 --->  Building py311-build
 DEBUG: Executing proc-pre-org.macports.build-build-0
 DEBUG: Executing org.macports.build (py311-build)
 DEBUG: Environment:
 CC='/usr/bin/gcc-4.2'
 CC_PRINT_OPTIONS='YES'
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 build/py311-build/work/.CC_PRINT_OPTIONS'
 CFLAGS='-isysroot/'
 CPATH='/opt/local/include'
 CXX='/usr/bin/g++-4.2'
 CXXFLAGS='-isysroot/'
 DEVELOPER_DIR='/Developer'
 LIBRARY_PATH='/opt/local/lib'
 MACOSX_DEPLOYMENT_TARGET='10.5'
 OBJC='/usr/bin/gcc-4.2'
 OBJCFLAGS='-isysroot/'
 PYTHONPATH='/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 build/py311-build/work/build-1.0.3/src:/opt/local/share/py-bootstrap-
 modules'
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 build/py311-build/work/build-1.0.3" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
 -m build --no-isolation --wheel --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-build/py311-build/work
 --skip-dependency-check
 DEBUG: system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 build/py311-build/work/build-1.0.3" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
 -m build --no-isolation --wheel --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-build/py311-build/work
 --skip-dependency-check
 * Building wheel...

 ERROR Backend subprocess exited when trying to invoke build_wheel
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 build/py311-build/work/build-1.0.3" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
 -m build --no-isolation --wheel --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-build/py311-build/work
 --skip-dependency-check
 Exit code: 1
 }}}

 Again, `py311-build` has a different, a ripe version, that `py-bootstrap-
 modules` does not use: 0.9.0 vs. 1.0.3. The other dependent packages,
 `py311-flit_core` and `py311-wheel` both depend on `py311-build`, so I am
 at an end now.

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


More information about the macports-tickets mailing list