<?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>1510</bug_id>
          
          <creation_ts>2025-06-21 11:15:17 +0200</creation_ts>
          <short_desc>NativeLibrary shall respect OS library-path environment variable for searching in system-path</short_desc>
          <delta_ts>2025-07-12 18:22:36 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Gluegen</product>
          <component>core</component>
          <version>2.6.0</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>P4</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>1511</blocked>
    
    <blocked>1519</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>390794a4647e1f7e9755f2936922abbe096c85eb</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>7178</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2025-06-21 11:15:17 +0200</bug_when>
    <thetext>NativeLibrary&apos;s &apos;enumerateLibraryPaths&apos; system search 
only uses the library basename to utilize the OS&apos;s search algorithm.

This is not sufficient for all OS, e.g. Windows 10.
Example: Prepend a custom Mesa3D OpenGL library to the environment variable PATH.

Solution is to explicitly search in all directories of the system environment variable:
- Windows: PATH
- MacOS: DYLD_LIBRARY_PATH
- Unix: LD_LIBRARY_PATH

before using the plain basename.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7179</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2025-06-21 11:35:31 +0200</bug_when>
    <thetext>resolved w/ commit 390794a4647e1f7e9755f2936922abbe096c85eb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>