<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13970</bug_id>
          
          <creation_ts>2020-07-05 02:40:49 +0000</creation_ts>
          <short_desc>gobject-introspection-native-1.64.1-r0 do_install: Tries to access `~/.cache/g-ir-scanner/.cache-version`</short_desc>
          <delta_ts>2020-11-19 16:16:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>3.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Menzel">pmenzel+bugzilla.yoctoproject.org</reporter>
          <assigned_to name="Jeremy A. Puhlman">jpuhlman</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87690</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Menzel">pmenzel+bugzilla.yoctoproject.org</who>
    <bug_when>2020-07-05 02:40:49 +0000</bug_when>
    <thetext>Following *Yocto Project Quick Build* [1], installation of *gobject-introspection-native-1.64.1-r0* fails as it tries to read a file from the home directory of the build user: `~/.cache/g-ir-scanner/.cache-version`. This is not allowed on this host.

```
ERROR: gobject-introspection-native-1.64.1-r0 do_install: Execution of &apos;/dev/shm/poky/build/tmp/work/x86_64-linux/gobject-introspection-native/1.64.1-r0/temp/run.do_install.53999&apos; failed with exit code 1:
[1/5] /dev/shm/poky/build/tmp/work/x86_64-linux/gobject-introspection-native/1.64.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 tools/g-ir-scanner --quiet --output=tests/scanner/Headeronly-1.0.gir --no-libtool --warn-all --warn-error --reparse-validate --namespace=Headeronly --nsversion=1.0 --header-only ../gobject-introspection-1.64.1/tests/scanner/headeronly.h
FAILED: tests/scanner/Headeronly-1.0.gir 
/dev/shm/poky/build/tmp/work/x86_64-linux/gobject-introspection-native/1.64.1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 tools/g-ir-scanner --quiet --output=tests/scanner/Headeronly-1.0.gir --no-libtool --warn-all --warn-error --reparse-validate --namespace=Headeronly --nsversion=1.0 --header-only ../gobject-introspection-1.64.1/tests/scanner/headeronly.h
Traceback (most recent call last):
  File &quot;tools/g-ir-scanner&quot;, line 104, in &lt;module&gt;
    sys.exit(scanner_main(sys.argv))
  File &quot;/dev/shm/poky/build/tmp/work/x86_64-linux/gobject-introspection-native/1.64.1-r0/build/giscanner/scannermain.py&quot;, line 580, in scanner_main
    transformer = create_transformer(namespace, options)
  File &quot;/dev/shm/poky/build/tmp/work/x86_64-linux/gobject-introspection-native/1.64.1-r0/build/giscanner/scannermain.py&quot;, line 387, in create_transfor
mer
    transformer = Transformer(namespace,
  File &quot;/dev/shm/poky/build/tmp/work/x86_64-linux/gobject-introspection-native/1.64.1-r0/build/giscanner/transformer.py&quot;, line 49, in __init__
    self._cachestore = CacheStore()
  File &quot;/dev/shm/poky/build/tmp/work/x86_64-linux/gobject-introspection-native/1.64.1-r0/build/giscanner/cachestore.py&quot;, line 52, in __init__
    self._check_cache_version()
  File &quot;/dev/shm/poky/build/tmp/work/x86_64-linux/gobject-introspection-native/1.64.1-r0/build/giscanner/cachestore.py&quot;, line 68, in _check_cache_vers
ion
    with open(version, &apos;r&apos;) as version_file:
PermissionError: [Errno 13] Permission denied: &apos;/home/pmenzel/.cache/g-ir-scanner/.cache-version&apos;
```

The package should not depend on the build user home directory in any way.

[1]: https://www.yoctoproject.org/docs/3.1.1/brief-yoctoprojectqs/brief-yoctoprojectqs.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87691</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Menzel">pmenzel+bugzilla.yoctoproject.org</who>
    <bug_when>2020-07-05 02:42:02 +0000</bug_when>
    <thetext>The tag is 3.1+snapshot-20200705.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87937</commentid>
    <comment_count>2</comment_count>
    <who name="Jeremy A. Puhlman">jpuhlman</who>
    <bug_when>2020-08-13 10:39:14 +0000</bug_when>
    <thetext>Just needs an export like in do_compile to disable the cache generation.

Patch submitted:

https://patchwork.openembedded.org/patch/175313/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88635</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-11-19 16:16:56 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=0bdb86b457fe8193981b45d9221582b9808e11f2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>