[MacPorts] #62450: gobject-introspection: Switch to python 3.9

MacPorts noreply at macports.org
Thu Mar 25 13:39:40 UTC 2021


#62450: gobject-introspection: Switch to python 3.9
------------------------------------+----------------------
  Reporter:  mf2k                   |      Owner:  dbevans
      Type:  enhancement            |     Status:  assigned
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:
Resolution:                         |   Keywords:
      Port:  gobject-introspection  |
------------------------------------+----------------------

Comment (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)

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


More information about the macports-tickets mailing list