Bug 907782 - Missing executable
Summary: Missing executable
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: apache-rat
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-05 09:23 UTC by Vít Ondruch
Modified: 2013-06-03 03:06 UTC (History)
2 users (show)

Fixed In Version: apache-rat-0.8-8.fc18
Clone Of:
Environment:
Last Closed: 2013-06-03 03:06:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Vít Ondruch 2013-02-05 09:23:01 UTC
Description of problem:
In upstream tarball, there is provided apache-rat-0.8.jar which can be used to execute the rat from command line. I can't find anything similar in fedora packages. Did I overlooked something?


Version-Release number of selected component (if applicable):
$ rpm -q apache-rat
apache-rat-0:0.8-4.fc18.noarch


How reproducible:
Always


Steps to Reproduce:
1. yum install apache-rat apache-rat-tasks
2. java -jar /usr/share/java/apache-rat/apache-rat-tasks.jar --help
no main manifest attribute, in /usr/share/java/apache-rat/apache-rat-tasks.jar
3. java -jar /usr/share/java/apache-rat/apache-rat-core.jar --help
no main manifest attribute, in /usr/share/java/apache-rat/apache-rat-core.jar

  
Actual results:
$ rpm -ql apache-rat-tasks
/etc/ant.d/apache-rat
/usr/share/doc/apache-rat-tasks-0.8
/usr/share/doc/apache-rat-tasks-0.8/LICENSE
/usr/share/java/apache-rat/apache-rat-tasks.jar
/usr/share/maven-poms/JPP.apache-rat-apache-rat-tasks.pom

$ rpm -ql apache-rat-core
/usr/share/doc/apache-rat-core-0.8
/usr/share/doc/apache-rat-core-0.8/LICENSE
/usr/share/java/apache-rat/apache-rat-core.jar
/usr/share/maven-poms/JPP.apache-rat-apache-rat-core.pom

$ rpm -ql apache-rat
/usr/share/doc/apache-rat-0.8
/usr/share/doc/apache-rat-0.8/DISCLAIMER.txt
/usr/share/doc/apache-rat-0.8/LICENSE
/usr/share/doc/apache-rat-0.8/NOTICE
/usr/share/doc/apache-rat-0.8/README.txt
/usr/share/doc/apache-rat-0.8/RELEASE_NOTES.txt
/usr/share/java/apache-rat
/usr/share/maven-fragments/apache-rat
/usr/share/maven-poms/JPP.apache-rat-apache-rat.pom

Nothing in %{_bindir}, no luck executing the .jars

Expected results:
Some executable provided

Comment 1 Vít Ondruch 2013-02-05 09:24:31 UTC
Please note that downloading upstream tarball works just fine for me:

$ tar xzfv apache-rat-incubating-0.8-bin.tar.gz 
apache-rat-0.8/DISCLAIMER.txt
apache-rat-0.8/LICENSE
apache-rat-0.8/NOTICE
apache-rat-0.8/RELEASE_NOTES.txt
apache-rat-0.8/apache-rat-core-0.8-sources.jar
apache-rat-0.8/apache-rat-core-0.8.jar
apache-rat-0.8/apache-rat-core-0.8-javadoc.jar
apache-rat-0.8/apache-rat-plugin-0.8.jar
apache-rat-0.8/apache-rat-plugin-0.8-sources.jar
apache-rat-0.8/apache-rat-plugin-0.8-javadoc.jar
apache-rat-0.8/apache-rat-tasks-0.8-sources.jar
apache-rat-0.8/apache-rat-tasks-0.8.jar
apache-rat-0.8/apache-rat-tasks-0.8-javadoc.jar
apache-rat-0.8/apache-rat-0.8.jar
apache-rat-0.8/recursive-rat.py
apache-rat-0.8/lib/apache-rat-core-0.8.jar
apache-rat-0.8/lib/commons-collections-3.2.jar
apache-rat-0.8/lib/commons-lang-2.1.jar
apache-rat-0.8/lib/commons-io-1.4.jar
apache-rat-0.8/lib/commons-compress-1.0.jar
apache-rat-0.8/lib/commons-cli-1.2.jar
apache-rat-0.8/lib/apache-rat-tasks-0.8.jar

$ cd apache-rat-0.8/

$ java -jar apache-rat-0.8.jar 
usage: java rat.report [options] [DIR|TARBALL]
Options
 -A,--addLicense                Add the default licence header to any file
                                with an unknown licence that is not in the
                                exclusion list. By default new files will
                                be created with the licence header, to
                                force the modification of existing files
                                use the --force option.
 -a,--addLicence                Add the default licence header to any file
                                with an unknown licence that is not in the
                                exclusion list. By default new files will
                                be created with the licence header, to
                                force the modification of existing files
                                use the --force option.
 -c,--copyright <arg>           The copyright message to use in the
                                licence headers, usually in the form of
                                "Copyright 2008 Foo"
 -d,--dir                       Used to indicate source when using
                                --exclude
 -E,--exclude-file <fileName>   Excludes files matching regular expression
                                in <file> Note that --dir is required when
                                using this parameter.
 -e,--exclude <expression>      Excludes files matching wildcard
                                <expression>. Note that --dir is required
                                when using this parameter. Allows multiple
                                arguments.
 -f,--force                     Forces any changes in files to be written
                                directly to the source files (i.e. new
                                files are not created)
 -h,--help                      Print help for the RAT command line
                                interface and exit
 -s,--stylesheet <arg>          XSLT stylesheet to use when creating the
                                report.  Not compatible with -x
 -x,--xml                       Output the report in raw XML format.  Not
                                compatible with -s

NOTE:
RAT is really little more than a grep ATM
RAT is also rather memory hungry ATM
RAT is very basic ATM
RAT highlights possible issues
RAT reports require intepretation
RAT often requires some tuning before it runs well against a project
RAT relies on heuristics: it may miss issues

Comment 2 Orion Poplawski 2013-02-12 04:44:58 UTC
The apache-rat-0.8.jar in the upstream binary tarball is a collection of all of the apache-rat and dependent classes bundled together.  This is against the java packaging guidelines.  That said, we should probably ship the equivalent functionality.  Is this a critical need?  I'll look into providing it but I'm running into issues building it on an up to date system so it's going to take a bit.

Comment 3 Vít Ondruch 2013-02-12 14:43:44 UTC
(In reply to comment #2)
> Is this a critical need?

No, not really. I just found apache-rat somewhere and I thought I'll give it a try what it is about. I have no intention to use it near future, although it might be interesting for Fedora.

Comment 4 Fedora Update System 2013-02-14 15:41:39 UTC
apache-rat-0.8-8.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/apache-rat-0.8-8.fc18

Comment 5 Fedora Update System 2013-02-15 04:56:26 UTC
Package apache-rat-0.8-8.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing apache-rat-0.8-8.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-2465/apache-rat-0.8-8.fc18
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-06-03 03:06:07 UTC
apache-rat-0.8-8.fc18 has been pushed to the Fedora 18 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.