Bug 533304

Summary: JSS in Fedora violates Fedora packaging guidelines
Product: [Fedora] Fedora Reporter: Dmitri Pal <dpal>
Component: jssAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: mharmsen, nkinder, rcritten, rmeggins
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.2.6-3.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-08 19:59:05 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:
Attachments:
Description Flags
Sample of potential changes to JSS (UNTESTED!!!) none

Description Dmitri Pal 2009-11-06 00:21:03 UTC
During recent review of the Dogtag (Certificate System) for inclusion in Fedora it turned out that jss package in Fedora has some violations of the Fedora packaging guidelines. These issues need to be corrected.

Comment 1 Dmitri Pal 2009-11-06 00:21:46 UTC
Matthew please add the details.

Comment 2 Bug Zapper 2009-11-16 15:11:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Matthew Harmsen 2009-11-20 00:07:49 UTC
Originally, two Dogtag JNI libraries, osutil and symkey, followed the JSS packaging guidelines:

Bugzilla Bug #521983 -  New package for Dogtag PKI: osutil
* https://bugzilla.redhat.com/show_bug.cgi?id=521983

Bugzilla Bug #522272 -  New Package for Dogtag PKI: symkey
* https://bugzilla.redhat.com/show_bug.cgi?id=522272


However, the Fedora packaging guidelines state:
https://fedoraproject.org/wiki/Packaging/Java#Packaging_JAR_files_that_use_JNI
Quoted:
JAR files that require JNI shared objects MUST be installed in
%{_libdir}/%{name}. The JNI shared objects themselves must also be installed in
%{_libdir}/%{name}.


Eventually, the following changes were made:

Bugzilla Bug #529919 -  Wrap "System.load()" calls in JNI libraries within try-catch block
* https://bugzilla.redhat.com/show_bug.cgi?id=529919


Since Dogtag does not simultaneously support 32-bit and 64-bit packages, the only caveat to the Fedora packaging guidelines was placing a symlink in the additional packages (e. g. - for osutil):

32-bit i386/i486/i586/i686:
* /usr/lib/java/osutil.jar -> /usr/lib/osutil/osutil-1.3.0.jar
* /usr/lib/osutil
* /usr/lib/osutil/libosutil.so
* /usr/lib/osutil/osutil-1.3.0.jar
* /usr/share/doc/osutil-1.3.0
* /usr/share/doc/osutil-1.3.0/LICENSE

64-bit x86_64:
* /usr/lib/java/osutil.jar -> /usr/lib64/osutil/osutil-1.3.0.jar
* /usr/lib64/osutil
* /usr/lib64/osutil/libosutil.so
* /usr/lib64/osutil/osutil-1.3.0.jar
* /usr/share/doc/osutil-1.3.0
* /usr/share/doc/osutil-1.3.0/LICENSE

Comment 4 Matthew Harmsen 2009-11-20 00:10:38 UTC
Created attachment 372388 [details]
Sample of potential changes to JSS (UNTESTED!!!)

Comment 8 Fedora Update System 2010-01-07 18:12:33 UTC
jss-4.2.6-5.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/jss-4.2.6-5.fc12

Comment 9 Fedora Update System 2010-01-07 18:12:38 UTC
jss-4.2.6-3.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/jss-4.2.6-3.fc11

Comment 10 Fedora Update System 2010-01-08 19:59:00 UTC
jss-4.2.6-5.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2010-01-08 20:13:18 UTC
jss-4.2.6-3.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.