Bug 1469022

Summary: jna: duplicate manifest
Product: [Fedora] Fedora Reporter: Mikolaj Izdebski <mizdebsk>
Component: jnaAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dbhole, java-sig-commits, lfarkas, mizdebsk, msimacek, walters
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.4.0-4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-14 10:30:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1467518    
Bug Blocks: 1467724    

Description Mikolaj Izdebski 2017-07-10 09:38:58 UTC
JNA JAR has duplicate manifest (two different manifest files):

$ jar tf /chroot/usr/lib/java/jna.jar |grep -i mani
META-INF/MANIFEST.MF
META-INF/MANIFEST.MF

JAR file format requires manifest to be the very first entry.
Upstream build.xml creates JAR using Ant <zip> task, which is not aware of JAR file format and breaks it by adding META-INF/ directory entry before manifest file.
This causes %mvn_install to add second copy of the manifest.

Comment 1 Mikolaj Izdebski 2017-07-10 09:51:04 UTC
Fixed in jna-4.4.0-4

Comment 2 Mikolaj Izdebski 2017-07-14 10:30:25 UTC
I believe that this bug is fixed in jna-4.4.0-4,
which is available in Fedora Rawhide, so I am closing this bug now.

The build containing the fix can be found at Koji:
http://koji.fedoraproject.org/koji/buildinfo?buildID=916874