Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#62450 closed enhancement (fixed)

gobject-introspection: Switch to python 3.9

Reported by: mf2k (Frank Schima) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: gobject-introspection

Description

Now that it is the default, gobject-introspection should now depend on python 3.9 if supported.

Change History (6)

comment:1 Changed 3 years ago by Veence (Vincent)

Should be fixed. I committed a new Portfile and a patch.

comment:2 Changed 3 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

I get this on the new version:

distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "11.0" but "11.2" during configure

I can't tell if the CI work

comment:3 Changed 3 years ago by jmroot (Joshua Root)

In 37be48da8b5e1ae57a09ffc3b489d7c2883cc136/macports-ports (master):

py-setuptools: update to 54.1.2, bug fix

Relax MACOSX_DEPLOYMENT_TARGET check to allow different minor versions.

See: #62473
See: #62450

comment:4 Changed 3 years ago by kurthindenburg (Kurt Hindenburg)

per jmr suggestion, I added "build.env SETUPTOOLS_USE_DISTUTILS=local" which fixed the build here.

comment:5 Changed 3 years ago by mrkite92

Hi,

It seems the issue is still present in the build of poppler, a dependency of htcondor:

/usr/bin/clang -arch x86_64 -E -D_REENTRANT -U__BLOCKS__ -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-20.12.1 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-20.12.1/fofi -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-20.12.1/goo -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-20.12.1/poppler -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build/poppler -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-20.12.1/glib -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build/glib -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/openjpeg-2.4 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/ossp -I/opt/local/include/libpng16 -I/opt/local/include/gio-unix-2.0 -o g-ir-cpp-l1j1csa0.i -C /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build/glib/g-ir-cpp-l1j1csa0.c
Traceback (most recent call last):
  File "/opt/local/bin/g-ir-scanner", line 99, in <module>
    sys.exit(scanner_main(sys.argv))
  File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 570, in scanner_main
    ss, filenames = create_source_scanner(options, args)
  File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 443, in create_source_scanner
    ss.parse_files(filenames)
  File "/opt/local/lib/gobject-introspection/giscanner/sourcescanner.py", line 257, in parse_files
    self._parse(headers)
  File "/opt/local/lib/gobject-introspection/giscanner/sourcescanner.py", line 303, in _parse
    cc.preprocess(tmp_name_cpp,
  File "/opt/local/lib/gobject-introspection/giscanner/ccompiler.py", line 275, in preprocess
    self.compiler.preprocess(source=source,
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/unixccompiler.py", line 107, in preprocess
    self.spawn(pp_args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/ccompiler.py", line 910, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/spawn.py", line 70, in spawn
    raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "11.0" but "11.2" during configure
make[2]: *** [glib/Poppler-0.18.gir] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build'
make[1]: *** [glib/CMakeFiles/gir-typelibs.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build" && /usr/bin/make -j12 -w all CC="/usr/bin/clang -arch x86_64" CFLAGS="-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk" LDFLAGS="-Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk" VERBOSE=ON
Exit code: 2
Error: Failed to build poppler: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port htcondor failed

I'm on this version of setuptools:

(base) MacbookProJB:bin marquett$ port installed | grep setuptools
  py-setuptools @54.2.0_0 (active)
  py38-setuptools @54.1.1_0
  py38-setuptools @54.1.2_0
  py38-setuptools @54.2.0_0 (active)
  py39-setuptools @54.1.1_0
  py39-setuptools @54.1.2_0
  py39-setuptools @54.2.0_0 (active)
Last edited 3 years ago by jmroot (Joshua Root) (previous) (diff)

comment:6 Changed 3 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In 750711ce73239cc24afdd60440310badbf37159b/macports-ports (master):

python39: bug fixes

Apply upstream fix for compilation of ctypes with older gcc. Relax
MACOSX_DEPLOYMENT_TARGET check in distutils.

Fixes: #62020
Fixes: #62450

Note: See TracTickets for help on using tickets.