Bug 509471

Summary: Build-classpath script does not detect jpcap library (a JNI Lib)
Product: [Fedora] Fedora Reporter: Patrick Dignan <dignan.patrick>
Component: jpackage-utilsAssignee: Deepak Bhole <dbhole>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: dbhole
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-03 13:55:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Patrick Dignan 2009-07-03 00:57:33 UTC
Description of problem: The build-classpath script does not detect the jpcap library.  It may not even detect JNI libraries in general...


Version-Release number of selected component (if applicable):


How reproducible: 100%


Steps to Reproduce:
1.Use the $(build-classpath jpcap) macro in a spec file.
  
Actual results: A blank classpath


Expected results: A classpath with /usr/lib/jpcap/jpcap.jar in it


Additional info:

Comment 1 Deepak Bhole 2009-07-03 13:55:50 UTC
build-classpath will not work in this case. This is expected behaviour actually. Per the guidelines[1]:

"JAR files that require JNI shared objects  ........ <snip> ......... If you are depending on a JNI-using JAR file, you'll need to add it manually -- build-classpath will not find it. "

1: http://fedoraproject.org/wiki/Packaging/Java#Packaging_JAR_files_that_use_JNI