After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 596960 - g-ir-scanner crashes when $HOME is non-writable
g-ir-scanner crashes when $HOME is non-writable
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-10-01 07:49 UTC by Josselin Mouette
Modified: 2015-02-07 16:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Ignore errors caused by permissions in $HOME (491 bytes, patch)
2009-10-01 07:49 UTC, Josselin Mouette
none Details | Review
Ignore errors caused by permissions in $HOME (883 bytes, patch)
2009-12-02 12:50 UTC, Johan (not receiving bugmail) Dahlin
committed Details | Review

Description Josselin Mouette 2009-10-01 07:49:03 UTC
Created attachment 144473 [details] [review]
Ignore errors caused by permissions in $HOME

This is what happens if $HOME cannot be written to:

  GEN    extras/gudev/GUdev-1.0.gir
Traceback (most recent call last):
  • File "/usr/bin/g-ir-scanner", line 38 in <module>
    sys.exit(scanner_main(sys.argv))
  • File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 263 in scanner_main
    cachestore = CacheStore()
  • File "/usr/lib/gobject-introspection/giscanner/cachestore.py", line 53 in __init__
    self._directory = _get_cachedir()
  • File "/usr/lib/gobject-introspection/giscanner/cachestore.py", line 38 in _get_cachedir
    os.mkdir(cachedir, 0755)
OSError: [Errno 13] Permission denied: '/nonexistent/.cache'

Comment 1 Johan (not receiving bugmail) Dahlin 2009-12-02 12:50:54 UTC
The following fix has been pushed:
8486bc1 Ignore errors caused by permissions in $HOME
Comment 2 Johan (not receiving bugmail) Dahlin 2009-12-02 12:50:59 UTC
Created attachment 148905 [details] [review]
Ignore errors caused by permissions in $HOME
Comment 3 André Klapper 2015-02-07 16:59:52 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]