Bug 1977799 - Review Request: classpathless-compiler - Tool for recompiling java sources with customizable class providers
Summary: Review Request: classpathless-compiler - Tool for recompiling java sources wi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: jiri vanek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-30 13:56 UTC by Marián Konček
Modified: 2021-08-21 01:31 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-07-16 16:32:00 UTC
Type: ---
Embargoed:
jvanek: fedora-review+


Attachments (Terms of Use)

Description Marián Konček 2021-06-30 13:56:00 UTC
Spec URL: https://fedorapeople.org/~mkoncek/classpathless-compiler/classpathless-compiler.spec

SRPM URL: https://fedorapeople.org/~mkoncek/classpathless-compiler/classpathless-compiler-1.3-1.fc35.src.rpm
Description:
Classpathless compiler is a tool intended to be used to recompile java
sources from decompiled classes. This tool works differently from the
traditional java compiler in that it doesn't use a provided classpath but
instead pulls dependencies using an API.

(Note: the primary consumer of this library is the package `java-runtime-decompiler`)

Fedora Account System Username: mkoncek

Comment 1 Marián Konček 2021-07-13 12:55:23 UTC
Note, 1.3 has just been released.

Comment 2 jiri vanek 2021-07-13 14:15:31 UTC
Then pls update s to non-git hashed, but purely tag-based sources!

Comment 3 Marián Konček 2021-07-13 14:36:06 UTC
Updated.

Comment 4 jiri vanek 2021-07-14 12:47:27 UTC
The summrty is wrong. the "Tool for recompiling decompiled java sources " is misleading, you can compile any code. The usage for compiling freshly compiled fragments is just subset.
Please fix in both bug  title and spec.
eg: Tool for compiling java sources with customizable classes providers

If it is wrong also in upstream, thne worthy to fix.

Comment 5 jiri vanek 2021-07-14 13:03:03 UTC
Build fails:
/var/tmp/rpm-tmp.uCv72Z: line 115: /usr/lib/rpm/brp-python-hardlink: No such file or directory

Should be in BR? What is it used for anyway?

Comment 6 Marián Konček 2021-07-14 13:56:04 UTC
.spec and .srpm files updated, upstream summary will have to wait for next release.

Comment 7 jiri vanek 2021-07-14 14:38:54 UTC
(In reply to Marián Konček from comment #6)
> ....upstream summary will have to wait for next release
sure, ty!

Comment 8 jiri vanek 2021-07-14 17:09:06 UTC
(In reply to Marián Konček from comment #6)
> .spec and .srpm files updated, upstream summary will have to wait for next
> release.

The bug caption is stil bad. HAve to be aligned with spec.

Comment 9 jiri vanek 2021-07-15 14:51:46 UTC
 Missing Requires: beust-jcommander ?

Comment 10 jiri vanek 2021-07-15 15:07:22 UTC
Hmm. Rpmbuild passes, but mock in rawhide still fails with the hardlink thing...

Comment 11 jiri vanek 2021-07-15 15:11:56 UTC
(In reply to jiri vanek from comment #10)
> Hmm. Rpmbuild passes, but mock in rawhide still fails with the hardlink
> thing...

The  fedora review on f34 and mock on manual f35 both pass. Manual mock on rawhide  passes too.... Will manage.

Comment 12 jiri vanek 2021-07-15 15:15:03 UTC
(In reply to jiri vanek from comment #9)
>  Missing Requires: beust-jcommander ?

And java-openjdk. Tbh, I'm not sure if you need only java-headless, or whole java-devel.

Comment 13 jiri vanek 2021-07-15 16:38:49 UTC
Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed


Issues:
=======
- This seems like a Java package, please install fedora-review-plugin-java
  to get additional checks
x Bundled jar/class files should be removed before build
  Note: Jar files in source (see attachment)
  See: https://docs.fedoraproject.org/en-US/packaging-
  guidelines/Java/#_pre_built_dependencies
  In the tests, there are classes, as the tool does compilation, and matches compield outputs agasint the examples
  On long run, I think this should be fixed, adn the tempalte shouldbe done on the fly by pure javac execution, otherwise the tests will nto survive udpate to newer JDK. Reported to usptream
- Missing Requires: beust-jcommander ?
- Missing Requires on java(c). Tbh, I'm not sure if you need only java-headless, or whole java-devel.



===== MUST items =====

Generic:
[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "*No copyright* Apache License 2.0", "Unknown or generated",
     "Apache License 2.0". 26 files have unknown license. Detailed output
     of licensecheck in /home/jvanek/review/1977799-classpathless-
     compiler/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory
     names).
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[!]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[-]: Package is not known to require an ExcludeArch tag.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 10240 bytes in 1 files.
[x]: Package complies to the Packaging Guidelines
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: If (and only if) the source package includes the text of the
     license(s) in its own file, then that file, containing the text of the
     license(s) for the package is included in %license.
[x]: Package requires other packages for directories it uses.
[x]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package must not depend on deprecated() packages.
[x]: Package use %makeinstall only when make install DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package does not use a name that already exists.
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as
     provided in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Packages must not store files under /srv, /opt or /usr/local

===== SHOULD items =====

Generic:
[-]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
[!]: Final provides and requires are sane (see attachments).
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed
     files.
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Fully versioned dependency in subpackages if applicable.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== EXTRA items =====

Generic:
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: classpathless-compiler-1.3-1.fc35.noarch.rpm
          classpathless-compiler-javadoc-1.3-1.fc35.noarch.rpm
          classpathless-compiler-1.3-1.fc35.src.rpm
classpathless-compiler.noarch: W: spelling-error %description -l en_US classpath -> class path, class-path, classmate
classpathless-compiler.noarch: W: no-manual-page-for-binary cplc
classpathless-compiler.src: W: spelling-error %description -l en_US classpath -> class path, class-path, classmate
3 packages and 0 specfiles checked; 0 errors, 3 warnings.




Rpmlint (installed packages)
----------------------------
Cannot parse rpmlint output:


Source checksums
----------------
https://github.com/mkoncek/classpathless-compiler/archive/refs/tags/1.3.tar.gz :
  CHECKSUM(SHA256) this package     : a542ff8e44622854dd4d3820ad3b2669224ec3de0c65ec62ee0d0543a1b58fb2
  CHECKSUM(SHA256) upstream package : a542ff8e44622854dd4d3820ad3b2669224ec3de0c65ec62ee0d0543a1b58fb2


Requires
--------
classpathless-compiler (rpmlib, GLIBC filtered):
    (java-headless or java-11-headless)
    /usr/bin/bash
    javapackages-filesystem
    mvn(com.beust:jcommander)

classpathless-compiler-javadoc (rpmlib, GLIBC filtered):
    javapackages-filesystem



Provides
--------
classpathless-compiler:
    classpathless-compiler
    mvn(io.github.mkoncek:classpathless-compiler)
    mvn(io.github.mkoncek:classpathless-compiler:pom:)

classpathless-compiler-javadoc:
    classpathless-compiler-javadoc



Jar and class files in source
-----------------------------
./classpathless-compiler-1.3/src/test/resources/io/github/mkoncek/classpathless/impl/NestedHello/Hello.class
./classpathless-compiler-1.3/src/test/resources/io/github/mkoncek/classpathless/impl/NestedHello/Hello$Inner.class
./classpathless-compiler-1.3/src/test/resources/io/github/mkoncek/classpathless/impl/AnonymousHello/Hello.class
./classpathless-compiler-1.3/src/test/resources/io/github/mkoncek/classpathless/impl/AnonymousHello/Hello$1.class
./classpathless-compiler-1.3/src/test/resources/io/github/mkoncek/classpathless/impl/AnonymousHello/Hello$InnerInterface.class
./classpathless-compiler-1.3/src/test/resources/io/github/mkoncek/classpathless/impl/import-default-package/Main.class
./classpathless-compiler-1.3/src/test/resources/io/github/mkoncek/classpathless/impl/import-default-package/Imported.class
./classpathless-compiler-1.3/src/test/resources/io/github/mkoncek/classpathless/impl/SimpleHello/Hello.class


Generated by fedora-review 0.7.6 (b083f91) last change: 2020-11-10
Command line :/usr/bin/fedora-review -b 1977799 -m fedora-rawhide-x86_64
Buildroot used: fedora-rawhide-x86_64
Active plugins: Generic, Java, Shell-api
Disabled plugins: C/C++, fonts, SugarActivity, R, Haskell, Perl, PHP, Python, Ocaml
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 14 Marián Konček 2021-07-16 10:34:10 UTC
.spec and .srpm files updated again, added lines:
Requires:       java-11-openjdk-headless
Requires:       beust-jcommander
Requires:       javapackages-tools

java-11-openjdk-headless because the package uses openjdk's compiler API
beust-jcommander is used by the CLI tool
javapackages-tools is needed for %jpackage_script

Comment 15 jiri vanek 2021-07-16 11:04:14 UTC
hi!

Yes, gave sense. I would still opt for java-headless. in f33 and upo. To have java-11-openjdk-headless would make sense only inf 32 and down.
BY ysing  java-headless it will automatically switch to jedk17 in f36 or f37. If it wil break, then it will be time to fix cplc.

Are you *sure* you do not require devel??

Comment 16 Marián Konček 2021-07-16 11:41:12 UTC
Updated to:
Requires:       java-headless

I tested the installed package in a mock without java-devel and the CLI tool works.

Comment 17 jiri vanek 2021-07-16 12:08:37 UTC
Thanx. With:
Requires:       java-headless
Requires:       beust-jcommander
Requires:       javapackages-tools

it is ok to go!

Comment 19 Gwyn Ciesla 2021-07-16 13:54:18 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/classpathless-compiler

Comment 20 Marián Konček 2021-07-16 16:32:00 UTC
Bodhi Update:
https://bodhi.fedoraproject.org/updates/FEDORA-2021-de7b59ff96

Comment 21 jiri vanek 2021-07-19 07:54:02 UTC
great!
 Pls, do also updates to stable branches and epels. Can you please make me coadmin?

Comment 22 Fedora Update System 2021-07-19 08:33:51 UTC
FEDORA-2021-bc209e6bb7 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-bc209e6bb7

Comment 23 Fedora Update System 2021-07-19 08:35:13 UTC
FEDORA-2021-86832a887c has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-86832a887c

Comment 24 Fedora Update System 2021-07-19 08:35:32 UTC
FEDORA-EPEL-2021-ae70544a34 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-ae70544a34

Comment 25 Fedora Update System 2021-07-19 08:35:49 UTC
FEDORA-EPEL-2021-7711415458 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-7711415458

Comment 26 Fedora Update System 2021-07-20 01:01:22 UTC
FEDORA-2021-86832a887c has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2021-86832a887c \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-86832a887c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 27 Fedora Update System 2021-07-20 01:41:22 UTC
FEDORA-EPEL-2021-7711415458 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-7711415458

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 28 Fedora Update System 2021-07-20 01:47:17 UTC
FEDORA-2021-bc209e6bb7 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2021-bc209e6bb7 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-bc209e6bb7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 29 Fedora Update System 2021-07-20 01:50:17 UTC
FEDORA-EPEL-2021-ae70544a34 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-ae70544a34

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 30 Fedora Update System 2021-07-23 01:13:17 UTC
FEDORA-2021-e2ae2d06e5 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-e2ae2d06e5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-e2ae2d06e5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 31 Fedora Update System 2021-07-23 01:23:20 UTC
FEDORA-EPEL-2021-31aafe39f6 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-31aafe39f6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 32 Fedora Update System 2021-07-23 01:26:01 UTC
FEDORA-2021-30590b552a has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-30590b552a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-30590b552a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 33 Fedora Update System 2021-07-23 01:35:26 UTC
FEDORA-EPEL-2021-2ee5364fa3 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-2ee5364fa3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 34 Fedora Update System 2021-08-01 04:04:34 UTC
FEDORA-2021-30590b552a has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 35 Fedora Update System 2021-08-01 04:04:41 UTC
FEDORA-2021-e2ae2d06e5 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 36 Fedora Update System 2021-08-06 14:34:03 UTC
FEDORA-EPEL-2021-097cf54a7e has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-097cf54a7e

Comment 37 Fedora Update System 2021-08-06 14:38:54 UTC
FEDORA-EPEL-2021-d76288c2d2 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-d76288c2d2

Comment 38 Fedora Update System 2021-08-06 14:57:40 UTC
FEDORA-EPEL-2021-dfa547d2c8 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-dfa547d2c8

Comment 39 Fedora Update System 2021-08-06 15:02:14 UTC
FEDORA-EPEL-2021-146416904c has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-146416904c

Comment 40 Fedora Update System 2021-08-07 01:19:01 UTC
FEDORA-EPEL-2021-146416904c has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-146416904c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 41 Fedora Update System 2021-08-07 13:31:14 UTC
FEDORA-EPEL-2021-dfa547d2c8 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-dfa547d2c8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 42 Fedora Update System 2021-08-12 10:53:09 UTC
FEDORA-EPEL-2021-8e8965c9c0 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-8e8965c9c0

Comment 43 Fedora Update System 2021-08-13 01:29:01 UTC
FEDORA-EPEL-2021-8e8965c9c0 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-8e8965c9c0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 44 Fedora Update System 2021-08-15 00:38:48 UTC
FEDORA-EPEL-2021-146416904c has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 45 Fedora Update System 2021-08-21 01:31:45 UTC
FEDORA-EPEL-2021-8e8965c9c0 has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, 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.