Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 452251 - Review Request: libmatthew-java - collection of java libraries
Summary: Review Request: libmatthew-java - collection of java libraries
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Thomas Fitzsimmons
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: 452688
TreeView+ depends on / blocked
Reported: 2008-06-20 15:12 UTC by Omair Majid
Modified: 2008-06-28 22:16 UTC (History)
2 users (show)

Fixed In Version: 0.7.1-1.fc9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2008-06-28 22:16:08 UTC
fitzsim: fedora-review+
kevin: fedora-cvs+

Attachments (Terms of Use)

Description Omair Majid 2008-06-20 15:12:08 UTC
Spec URL:


A colleciton of Java libraries

- Unix Sockets Library
This is a collection of classes and native code to allow you to read
and write Unix sockets in Java.
- Debug Library
This is a comprehensive logging and debugging solution.
- CGI Library
This is a collection of classes and native code to allow you to write
CGI applications in Java.

- I/O Library
This provides a few much needed extensions to the Java I/O subsystem.

- Hexdump
This class formats byte-arrays in hex and ascii for display.

Comment 1 Omair Majid 2008-06-20 15:15:53 UTC
Sorry, but I forgot to mention that this is my first package and I am looking
for a sponsor. Thanks

Comment 2 Omair Majid 2008-06-23 21:10:07 UTC
After talking to Thomas Fitzsimmons, modified spec file (and added a patch to
srpm) to build and run using openjdk 

Comment 3 Thomas Fitzsimmons 2008-06-24 15:41:33 UTC
- MUST: rpmlint must be run on every package. The output should be posted...

$ rpmlint SRPMS/libmatthew-java-0.7.1-1.fc9.src.rpm
$ rpmlint RPMS/i386/libmatthew-java-0.7.1-1.fc9.i386.rpm
-soname /usr/lib/
-soname /usr/lib/
$ rpmlint RPMS/i386/libmatthew-java-javadoc-0.7.1-1.fc9.i386.rpm
$ rpmlint RPMS/i386/libmatthew-java-debuginfo-0.7.1-1.fc9.i386.rpm

- MUST: The package must be named according to the Package Naming Guideli...


- MUST: The spec file name must match the base package %{name}, in the fo...


- MUST: The package must meet the Packaging Guidelines .


- MUST: The package must be licensed with a Fedora approved license and m...


- MUST: The License field in the package spec file must match the actual ...


- MUST: If (and only if) the source package includes the text of the lice...


- MUST: The spec file must be written in American English.


- MUST: The spec file for the package MUST be legible. If the reviewer is...


- MUST: The sources used to build the package must match the upstream sou...

I'm not sure what this comment means:

# debian version is newer than upstream

Source must come from the actual upstream, not from another
distribution.  If Debian's version is better than upstream then add
another patch with those changes.

- MUST: The package must successfully compile and build into binary rpms ...


- MUST: If the package does not successfully compile, build or work on an...


- MUST: All build dependencies must be listed in BuildRequires, except fo...


- MUST: The spec file MUST handle locales properly. This is done by using...


- MUST: Every binary RPM package which stores shared library files (not j...

The JNI objects should go in %{_libdir}/%{name}, not %{_libdir}.  See:

- MUST: If the package is designed to be relocatable, the packager must s...


- MUST: A package must own all directories that it creates. If it does no...


- MUST: A package must not contain any duplicate files in the %files list...


- MUST: Permissions on files must be set properly. Executables should be ...


- MUST: Each package must have a %clean section, which contains rm -rf %{...


- MUST: Each package must consistently use macros, as described in the [w...


- MUST: The package must contain code, or permissable content. This is de...


- MUST: Large documentation files should go in a -doc subpackage. (The de...


- MUST: If a package includes something as %doc, it must not affect the r...


- MUST: Header files must be in a -devel package.


- MUST: Static libraries must be in a -static package.


- MUST: Packages containing pkgconfig(.pc) files must 'Requires: pkgconfi...


- MUST: If a package contains library files with a suffix (e.g.

See JNI comment above.

- MUST: In the vast majority of cases, devel packages must require the ba...


- MUST: Packages must NOT contain any .la libtool archives, these should ...


- MUST: Packages containing GUI applications must include a %{name}.deskt...


- MUST: Packages must not own files or directories already owned by other...


- MUST: At the beginning of %install, each package MUST run rm -rf %{buil...


- MUST: All filenames in rpm packages must be valid UTF-8.


- SHOULD: If the source package does not include license text(s) as a sep...


- SHOULD: The description and summary sections in the package spec file s...

s/java/Java/ in the summary tag.

Usually description is in paragraph form, not bullet points.  I'll
leave this up to you though.

- SHOULD: The reviewer should test that the package builds in mock. See [...

A Rawhide i386 mock build fails:

+ /usr/lib/rpm/ --strict-build-id
extracting debug info from
*** ERROR: No build ID note found in
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.14107 (%install)
    Bad exit status from /var/tmp/rpm-tmp.14107 (%install)
Child returncode was: 1

- SHOULD: The package should compile and build into binary rpms on all su...

rpmbuild works on i386.

- SHOULD: The reviewer should test that the package functions as describe...

No demos to try.

- SHOULD: If scriptlets are used, those scriptlets must be sane. This is ...

The if ... fi formatting is a little strange, but OK.

- SHOULD: Usually, subpackages other than devel should require the base p...

Does the javadoc subpackage actually need the base package to be
installed?  Usually javadoc subpackages are an exception to this

- SHOULD: The placement of pkgconfig(.pc) files depends on their usecase,...


- SHOULD: If the package has file dependencies outside of /etc, /bin, /sb...


Comment 4 Thomas Fitzsimmons 2008-06-24 15:43:30 UTC
Clipping error on rpmlint output:

$ rpmlint RPMS/i386/libmatthew-java-0.7.1-1.fc9.i386.rpm 
libmatthew-java.i386: W: no-soname /usr/lib/
libmatthew-java.i386: W: no-soname /usr/lib/

This warning must be fixed.

Comment 5 Omair Majid 2008-06-24 19:00:14 UTC

Spec URL:

fixed soname warning, jni object locations, added --build-id flag to build on
rawhide and removed explicit dependency of javadoc on base package

Comment 6 Thomas Fitzsimmons 2008-06-24 21:30:20 UTC
$ rpmlint RPMS/i386/libmatthew-java-0.7.1-1.fc9.i386.rpm

mock build succeeds on fedora-rawhide-i386.

The upstream project shouldn't be using ld directly to link the JNI libraries. 
Can you patch it to use gcc instead?  This may allow you to not specify
--build-id.  Also, the contents of RPM_OPT_FLAGS (see rpm --eval %{optflags})
are not being passed to cpp, cc and ld.  They need to be.

Comment 7 Omair Majid 2008-06-25 14:33:23 UTC

Spec URL:

replaced ld with gcc; passed %{optflags} to cflags, ppflags, ldflags and gcjflags

Comment 8 Thomas Fitzsimmons 2008-06-25 15:06:50 UTC
Just one more change request.  It may produce the same result, but the more
conventional way to link a shared object is to pass -shared to gcc.  So I'd
recommend replacing:


in soname.patch with


You should work with upstream to clean up these build scripts.  Most importantly
they should not be invoking the linker directly, but there's also the make
variables: specifying CFLAGS on the make line should add to, not override, the
tools options.  So if upstream is fixed you should only need:

make %{?_smp_mflags} \
    GCJFLAGS='%{optflags}' \
    LDFLAGS='%{optflags}' \

Please make the -shared change when you commit the package.


Comment 9 Omair Majid 2008-06-25 20:35:21 UTC

Spec URL:

also includes a patch (sent it upstream too) to match 
make %{?_smp_mflags} \
    GCJFLAGS='%{optflags}' \
    LDFLAGS='%{optflags}' \

Comment 10 Omair Majid 2008-06-26 15:58:58 UTC
New Package CVS Request
Package Name: libmatthew-java
Short Description: collection of java libraries
Owners: omajid
Branches: F-9
Cvsextras Commits: yes

Comment 11 Kevin Fenzi 2008-06-27 17:00:17 UTC
cvs done.

Comment 12 Fedora Update System 2008-06-27 20:25:42 UTC
libmatthew-java-0.7.1-1.fc9 has been submitted as an update for Fedora 9

Comment 13 Fedora Update System 2008-06-28 22:16:05 UTC
libmatthew-java-0.7.1-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.