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

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>587</bug_id>
          
          <creation_ts>2012-06-13 14:54:44 +0200</creation_ts>
          <short_desc>The temporary directory used by jogl to unpack native libraries may not be executable</short_desc>
          <delta_ts>2012-06-16 05:35:51 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Raynsford">org.jogamp</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>sgothel</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs>gluegen 1468286bf569a493e4fdb887d5f3732f88c8cec3
jogl 29e70f215069643c740e1b251490aa9edd61d2cb</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1611</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Raynsford">org.jogamp</who>
    <bug_when>2012-06-13 14:54:44 +0200</bug_when>
    <thetext>This will usually result in an error such as:

Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: /tmp/jogamp.tmp.cache_000000/jln8068820674097688578/jln3098016816860882408/libgluegen-rt.so: /tmp/jogamp.tmp.cache_000000/jln8068820674097688578/jln3098016816860882408/libgluegen-rt.so: failed to map segment from shared object: Operation not permitted

Unfortunately, it&apos;s not possible to reliably check whether a directory is on a filesystem that&apos;s mounted noexec.

Suggested workaround is to use $XDG_CACHE_HOME, falling back to $HOME/.cache on Linux.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Raynsford">org.jogamp</who>
    <bug_when>2012-06-13 14:56:24 +0200</bug_when>
    <thetext>Should probably be $XDG_CACHE_HOME/jogamp, or $HOME/.cache/jogamp.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2012-06-13 15:10:56 +0200</bug_when>
    <thetext>http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1616</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2012-06-16 05:35:51 +0200</bug_when>
    <thetext>Fixed:
gluegen 1468286bf569a493e4fdb887d5f3732f88c8cec3
jogl 29e70f215069643c740e1b251490aa9edd61d2cb

Use alternative storage location if platform&apos;s temp directory is mounted w/ noexec ; IOUtil API change!
    
    Test whether executable files can be launched in temporary folder
    by trying to run an empty executable file - if !( WINDOWS | OPENKODE )
    
    TempDir:
    1) ${java.io.tmpdir}/jogamp
    2) $XDG_CACHE_HOME/jogamp - if !( ANDROID | MACOS | WINDOWS | OPENKODE )
    3) $HOME/.jogamp
    
    $XDG_CACHE_HOME defaults to $HOME/.cache
    
    - TempFileCache: ${TempDir}/file_cache -&gt; ${java.io.tmpdir}/jogamp/file_cache
    - LauncherTempFileCache: ${TempDir}/file_cache -&gt; ${java.io.tmpdir}/jogamp/file_cache</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>