Bug 279405 - devel/py-gobject3 build fails in 3.9 to 3.11 update
Summary: devel/py-gobject3 build fails in 3.9 to 3.11 update
Status: Closed Not Accepted
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-30 16:03 UTC by rkoberman
Modified: 2024-07-14 21:24 UTC (History)
4 users (show)

See Also:
fernape: maintainer-feedback? (desktop)


Attachments
Failed configure of devel/gobject3 when updating to python-3.11 (12.62 KB, text/plain)
2024-05-30 16:03 UTC, rkoberman
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description rkoberman 2024-05-30 16:03:51 UTC
Created attachment 251092 [details]
Failed configure of devel/gobject3 when updating to python-3.11

Using portmaster and the instructions in UPDATING, devel/gobject3 failed to configure during "portmaster $REINSTALL". I will attach the full build log.

The error is:
ERROR: Unhandled python OSError. This is probably not a Meson bug, but an issue with your build environment.
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.

A the start of configuration, this odd message appeared. It may be insignificant, but looked odd:
===>  Configuring for py311-gobject3-3.42.2
WARNING: Recommend using either -Dbuildtype or -Doptimization + -Ddebug. Using both is redundant since they override each other. See: https://mesonbuild.com/Builtin-options.html#build-type-options
The Meson build system
Comment 1 Shigeharu TAKENO 2024-06-18 03:27:15 UTC
I met the same problem. This may occur because the python script /usr/local/bin/g-ir-scanner is for python3.9. The reason of the error

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/g-ir-scanner'

is the first line of the script "#!/usr/local/bin/python3.9".

Try reinstall devel/gobject-introspection and textproc/itstool, and then "postmaster $REINSTALL" again.
Comment 2 Gleb Popov freebsd_committer freebsd_triage 2024-07-14 21:24:41 UTC
You're building on host with portmaster, which is unsupported.

Like Takeno-san suggested, rebuild gobject-introspection before upgrading py-gobject3.