Ticket #26783 (closed defect: fixed)
gobject-introspection build error
| Reported by: | macsforever2000@… | Owned by: | singingwolfboy@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.99 |
| Keywords: | Cc: | raimue@…, jeremyhu@… | |
| Port: | gobject-introspection |
Description
I'm getting a build error with gobject-introspection.
:info:build Traceback (most recent call last): :info:build GICOMP freetype2-2.0.gir :info:build File "../tools/g-ir-scanner", line 45, in <module> :info:build sys.exit(scanner_main(sys.argv)) :info:build File "/opt/local/var/macports/build/_opt_mports_trunk_dports_gnome_gobject-introspection/work/gobject-introspection-0.9.10/giscanner/scannermain.py", line 392, in scanner_main :info:build transformer = create_transformer(namespace, options) :info:build File "/opt/local/var/macports/build/_opt_mports_trunk_dports_gnome_gobject-introspection/work/gobject-introspection-0.9.10/giscanner/scannermain.py", line 274, in create_transformer :info:build accept_unprefixed=options.accept_unprefixed) :info:build File "/opt/local/var/macports/build/_opt_mports_trunk_dports_gnome_gobject-introspection/work/gobject-introspection-0.9.10/giscanner/transformer.py", line 49, in __init__ :info:build self._cachestore = CacheStore() :info:build File "/opt/local/var/macports/build/_opt_mports_trunk_dports_gnome_gobject-introspection/work/gobject-introspection-0.9.10/giscanner/cachestore.py", line 70, in __init__ :info:build self._directory = _get_cachedir() :info:build File "/opt/local/var/macports/build/_opt_mports_trunk_dports_gnome_gobject-introspection/work/gobject-introspection-0.9.10/giscanner/cachestore.py", line 59, in _get_cachedir :info:build os.mkdir(scannerdir, 0755) :info:build OSError: [Errno 13] Permission denied: '/Users/frank/.cache/g-ir-scanner' :info:build make[2]: *** [GLib-2.0.gir] Error 1 :info:build make[2]: *** Waiting for unfinished jobs.... :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_gnome_gobject-introspection/work/gobject-introspection-0.9.10/gir' :info:build make[1]: *** [all-recursive] Error 1 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_gnome_gobject-introspection/work/gobject-introspection-0.9.10' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_gnome_gobject-introspection/work/gobject-introspection-0.9.10' :info:build shell command " cd "/opt/local/var/macports/build/_opt_mports_trunk_dports_gnome_gobject-introspection/work/gobject-introspection-0.9.10" && /usr/bin/make -j2 -w all " returned error 2 :error:build Target org.macports.build returned: shell command failed
The file "/Users/frank/.cache/g-ir-scanner" does not exist.
Attachments
Change History
comment:1 Changed 3 years ago by macsforever2000@…
- Owner changed from macports-tickets@… to rmstonecipher@…
comment:3 Changed 3 years ago by raimue@…
- Version changed from 1.9.1 to 1.9.99
This will only happen with trunk. Dropping to user nobody does not allow to write to $HOME. I wonder if we should export a writable location for situations like this or if this needs to be patched not to do write to the home directory.
comment:4 Changed 3 years ago by jmr@…
You can still configure macportsuser in 1.9, trunk just changed the default. I'd prefer that port build processes didn't write to my home dir in any case.
comment:5 Changed 3 years ago by jeremyhu@…
Yeah, that is a bad idea in general. Please just update the port to not write to $HOME
comment:6 Changed 2 years ago by jeremyhu@…
So this is starting to become a big nuisance. What is the status of this? Is there an upstream bug for this? Is there a "no cache" option for GICOMP that we should be using?
comment:7 Changed 2 years ago by macsforever2000@…
I still see this issue with the latest macports from trunk and version 0.10.2 of gobject-introspection.
comment:9 Changed 2 years ago by jeremyhu@…
Disabled introspection in json-glib in r78266 to workaround this.
comment:11 Changed 2 years ago by jeremyhu@…
A patch to disable the cache with an environment variable is present here:
comment:12 Changed 22 months ago by macsforever2000@…
- Status changed from new to closed
- Resolution set to worksforme
This builds for me with the latest version 0.10.6 and macports 2.0.99.
comment:13 Changed 22 months ago by jeremyhu@…
Re-enabled introspection in json-glib in r81554 now that this is fixed.
comment:14 Changed 18 months ago by billmcn@…
- Status changed from closed to reopened
- Resolution worksforme deleted
This just started happening for me. OS X version 10.7.2 (Lion), Mac Ports 2.0.3, gobject-introspection @0.10.6_0 (active).
I tried to uninstall gobject-introspection and saw the following error:
> sudo port uninstall gobject-introspection Password: ---> The following versions of gobject-introspection are currently installed: ---> gobject-introspection @0.9.12_0 ---> gobject-introspection @0.10.2_0 ---> gobject-introspection @0.10.6_0 (active) Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry.
Tried running "sudo port upgrade gobject-inspection" and saw the original registry error.
I was, however, able to delete the remaining gobject-introspection. After doing this am I able to continue upgrading my packages.
comment:15 Changed 18 months ago by jeremyhu@…
Yeah, it looks like the fix got dropped.
comment:16 Changed 18 months ago by jeremyhu@…
- Status changed from reopened to closed
- Resolution set to fixed
Actually, it looks like it got changed from disabled by default to disabled with an envvar set.
Fixed in base with r87905.

