Opened 14 years ago

Closed 13 years ago

#26783 closed defect (fixed)

gobject-introspection build error

Reported by: mf2k (Frank Schima) Owned by: singingwolfboy@…
Priority: Normal Milestone:
Component: ports Version: 1.9.99
Keywords: Cc: raimue (Rainer Müller), jeremyhu (Jeremy Huddleston Sequoia)
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 (1)

main.log (59.2 KB) - added by mf2k (Frank Schima) 14 years ago.

Download all attachments as: .zip

Change History (17)

Changed 14 years ago by mf2k (Frank Schima)

Attachment: main.log added

comment:1 Changed 14 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to rmstonecipher@…

comment:2 Changed 14 years ago by raimue (Rainer Müller)

Cc: raimue@… added

Cc Me!

comment:3 Changed 14 years ago by raimue (Rainer Müller)

Version: 1.9.11.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 14 years ago by jmroot (Joshua Root)

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 14 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Yeah, that is a bad idea in general. Please just update the port to not write to $HOME

comment:6 Changed 14 years ago by jeremyhu (Jeremy Huddleston Sequoia)

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 14 years ago by mf2k (Frank Schima)

I still see this issue with the latest macports from trunk and version 0.10.2 of gobject-introspection.

comment:8 Changed 14 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Cc: jeremyhu@… added

Cc Me!

comment:9 Changed 14 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Disabled introspection in json-glib in r78266 to workaround this.

comment:10 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from rmstonecipher@… to singingwolfboy@…

comment:11 Changed 14 years ago by jeremyhu (Jeremy Huddleston Sequoia)

A patch to disable the cache with an environment variable is present here:

https://bugzilla.gnome.org/show_bug.cgi?id=649054

comment:12 Changed 13 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed

This builds for me with the latest version 0.10.6 and macports 2.0.99.

comment:13 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Re-enabled introspection in json-glib in r81554 now that this is fixed.

comment:14 Changed 13 years ago by billmcn@…

Resolution: worksforme
Status: closedreopened

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 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Yeah, it looks like the fix got dropped.

comment:16 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: reopenedclosed

Actually, it looks like it got changed from disabled by default to disabled with an envvar set.

Fixed in base with r87905.

Note: See TracTickets for help on using tickets.