Bug 1021608

Summary: javapackages-tools: Attached native JARs are installed to %{_javadir} instead of %{_jnidir}
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: xmvnAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: java-sig-commits, mizdebsk, msimacek, msrb, sochotni, tradej, vondruch
Target Milestone: ---Keywords: Triaged, Upstream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 2.0.1-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-17 08:34:32 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:
Attachments:
Description Flags
jffi 1.2.7 spec file none

Description Vít Ondruch 2013-10-21 15:46:09 UTC
Description of problem:
I am building jffi package, which contains native extension. Surprisingly, xmnv installs this jar into %{_javadir} instead of %{_jnidir}


Version-Release number of selected component (if applicable):
$ rpm -q xmvn
xmvn-1.2.0-1.fc21.noarch

Comment 1 Mikolaj Izdebski 2013-10-21 15:52:20 UTC
Please provide a reproducer.  It works for me as expected and upstream has test cases for native artifact installation.

Comment 2 Mikolaj Izdebski 2013-10-21 16:06:30 UTC
FYI, what I tried:
I've built jffi current master (001d35aa5) in mock.

$ rpm -qp jffi-1.2.6-3.fc21.x86_64.rpm -l
/usr/lib/java/jffi.jar
/usr/share/doc/jffi
/usr/share/doc/jffi/COPYING.GPL
/usr/share/doc/jffi/COPYING.LESSER
/usr/share/doc/jffi/LICENSE
/usr/share/maven-fragments/jffi
/usr/share/maven-poms/JPP-jffi.pom

jffi.jar is in /usr/lib/java/ (aka %{_jnidir}) as expected.

$ rpm -q xmvn
xmvn-1.2.0-1.fc21.noarch

Comment 3 Vít Ondruch 2013-10-21 16:14:15 UTC
Created attachment 814698 [details]
jffi 1.2.7 spec file

This is my current .spec file. Try to remove the line 74 and bellow to test the issue.

Comment 4 Mikolaj Izdebski 2013-10-21 16:27:23 UTC
Ok, I was able to reproduce it.

Comment 5 Mikolaj Izdebski 2013-10-21 16:54:30 UTC
Actually this was a problem in XMvn configuration (part of javapackages-tools).

Comment 6 Mikolaj Izdebski 2013-10-21 16:55:07 UTC
Fixed in javapackages-tools-3.4.0-3

Comment 7 Mikolaj Izdebski 2013-10-21 17:19:43 UTC
I believe that this bug is fixed in javapackages-tools-3.4.0-3,
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=472848

Comment 8 Vít Ondruch 2013-10-22 05:43:44 UTC
It works it seems. Thanks.

Comment 9 Mikolaj Izdebski 2013-10-31 12:26:42 UTC
The fix was not entirely correct. Reopening.

Comment 10 Fedora Admin XMLRPC Client 2014-04-24 12:47:08 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 11 Mikolaj Izdebski 2014-07-17 08:34:17 UTC
It's fixed in latest XMvn in F21+

$ rpm -qp /var/lib/xmock/maven/result/jffi-1.2.7-0.fc22.x86_64.rpm -l
/usr/lib/java/jffi
/usr/lib/java/jffi/jffi-native.jar
/usr/lib/java/jffi/jffi.jar
/usr/share/doc/jffi
/usr/share/doc/jffi/COPYING.GPL
/usr/share/doc/jffi/COPYING.LESSER
/usr/share/doc/jffi/LICENSE
/usr/share/maven-metadata/jffi.xml
/usr/share/maven-poms/jffi/jffi.pom

Comment 12 Mikolaj Izdebski 2014-07-17 08:34:32 UTC
I believe that this bug is fixed in xmvn-2.0.1-1,
which is available in Fedora 21, so I am closing this bug now.

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