Bug 2139799 - Review Request: java-11-openjdk-portable - reusable OpenJDK 11 tarball
Summary: Review Request: java-11-openjdk-portable - reusable OpenJDK 11 tarball
Keywords:
Status: CLOSED CURRENTRELEASE
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: 2022-11-03 13:29 UTC by jandrlik
Modified: 2024-01-28 08:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-01-28 08:15:52 UTC
Type: ---
Embargoed:
jvanek: fedora-review+


Attachments (Terms of Use)

Description jandrlik 2022-11-03 13:29:57 UTC
Spec URL: https://jandrlik.fedorapeople.org/java-11-openjdk.spec
SRPM URL: https://jandrlik.fedorapeople.org/java-11-openjdk-portable-11.0.17.0.8-2.fc36.src.rpm
Description: package to split OpenJDK integration from build and binary itself.
Fedora Account System Username: jandrlik

Comment 1 jiri vanek 2022-11-08 09:57:41 UTC
Maybe you can reviwe the  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=2138915 for me?

Comment 2 jiri vanek 2022-11-08 10:09:48 UTC
First issue - you have to rename the specfile java-11-openjdk-portable.spec please

Comment 3 jiri vanek 2022-11-08 10:15:31 UTC
%if (0%{?rhel} > 0 && 0%{?rhel} < 8)
BuildRequires: devtoolset-8-gcc
BuildRequires: devtoolset-8-gcc-c++
BuildRequires: java-%{buildjdkver}-openjdk-devel
%endif

The BuildRequires: java-%{buildjdkver}-openjdk-devel in this block is redundant. You ahlready have ot  on line 754

Comment 7 jiri vanek 2022-11-09 09:26:43 UTC
pls update (in new comment) spec and srpm links!

Comment 9 jandrlik 2022-11-09 11:28:17 UTC
rpmbuild --without fastdebug --without slowdebug

java-11-openjdk-portable-11.0.17.0.8-2.fc36.x86_64.rpm
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.jre..x86_64.tar.xz
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.jre..x86_64.tar.xz.sha256sum
java-11-openjdk-portable-devel-11.0.17.0.8-2.fc36.x86_64.rpm
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.debuginfo.jdk..x86_64.tar.xz
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.debuginfo.jdk..x86_64.tar.xz.sha256sum
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.jdk..x86_64.tar.xz
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.jdk..x86_64.tar.xz.sha256sum
java-11-openjdk-portable-static-libs-11.0.17.0.8-2.fc36.x86_64.rpm
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.static-libs.x86_64.tar.xz
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.static-libs.x86_64.tar.xz.sha256sum

hm I see a problem.. -,-

Comment 10 jandrlik 2022-11-09 13:41:07 UTC
rpmbuild --without fastdebug --without slowdebug

java-11-openjdk-portable-11.0.17.0.8-2.fc36.x86_64.rpm
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.jre.x86_64.tar.xz
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.jre.x86_64.tar.xz.sha256sum
java-11-openjdk-portable-devel-11.0.17.0.8-2.fc36.x86_64.rpm
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.debuginfo.jdk.x86_64.tar.xz
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.debuginfo.jdk.x86_64.tar.xz.sha256sum
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.jdk.x86_64.tar.xz
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.jdk.x86_64.tar.xz.sha256sum
java-11-openjdk-portable-static-libs-11.0.17.0.8-2.fc36.x86_64.rpm
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.static-libs.x86_64.tar.xz
/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.fc36.portable.static-libs.x86_64.tar.xz.sha256sum

updated src and spec should be under the links in https://bugzilla.redhat.com/show_bug.cgi?id=2139799#c8

Comment 11 jiri vanek 2022-11-10 08:26:15 UTC
Package Review
==============

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



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

C/C++:
[x]: Package does not contain kernel modules.
[-]: Package contains no static executables.

Jdk is portable as for https://fedoraproject.org/wiki/Changes/JdkInTreeLibsAndStdclibStatic#Build_all_JDKs_in_Fedora_against_in-tree_libraries_and_with_static_stdc.2B.2Blib

[x]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[x]: Package does not contain any libtool archives (.la)
[x]: Rpath absent or only used for internal libs.

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.
[!]: 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.

Thhe %license should be honoured even in case of this tarball

[-]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "*No copyright* GNU General Public
     License, Version 2 Apache License 2.0", "*No copyright* GNU General
     Public License, Version 2", "GNU General Public License, Version 2",
     "GNU General Public License v2.0 only", "*No copyright* BSD 3-Clause
     License", "*No copyright* GNU General Public License v2.0 only", "BSD
     3-Clause License", "GNU General Public License v2.0 or later GNU
     General Public License v2.0 only [generated file]", "GNU General
     Public License v2.0 or later GNU General Public License v2.0 only",
     "*No copyright* Mozilla Public License 2.0", "*No copyright* Public
     domain GNU General Public License v2.0 only", "*No copyright* Public
     domain GNU General Public License v2.0 only [generated file]", "*No
     copyright* [generated file]", "GNU General Public License v2.0 only
     [generated file]", "Cryptix Public License", "BSD 2-Clause License",
     "Unicode License Agreement - Data Files and Software (2016)", "zlib
     License", "Freetype Project License", "MIT License", "MIT (old) ISC
     License", "MIT Open Group variant", "Apache License 2.0", "W3C
     Software Notice and License (2002-12-31)", "Standard ML of New Jersey
     License", "Apache License 1.1", "*No copyright* GNU Lesser General
     Public License, Version 2.1", "zlib License MIT License", "BSD
     2-Clause License GNU General Public License v2.0 only", "MIT (old)",
     "ISC License", "MIT License GNU General Public License v2.0 only",
     "BSD 3-Clause License [generated file]", "GNU General Public License,
     Version 3", "BSD 3-Clause License GNU General Public License v2.0
     only", "zlib License GNU General Public License v2.0 only", "*No
     copyright* MIT License GNU General Public License v2.0 only", "libpng
     License GNU General Public License v2.0 only", "MIT Open Group variant
     GNU General Public License v2.0 only", "BSD 3-Clause License GNU
     General Public License v3.0 or later", "GNU Lesser General Public
     License v2.1 or later", "Public domain GNU General Public License v2.0
     only", "Unicode License Agreement - Data Files and Software (2015) GNU
     General Public License v2.0 only", "Freetype Project License
     [generated file]", "W3C License GNU General Public License v2.0 only",
     "Khronos License GNU General Public License v2.0 only", "Apache
     License 1.1 GNU General Public License v2.0 only", "W3C Software
     Notice and License (1998-07-20)", "*No copyright* Apache License 2.0",
     "Freetype Project License XFree86 License", "NTP License", "*No
     copyright* MIT License", "W3C License", "*No copyright* Public
     domain". 9180 files have unknown license. Detailed output of
     licensecheck in /home/jvanek/2139799-java-11-openjdk-
     portable/licensecheck.txt
[!]: License file installed when any subpackage combination is installed.

licnse file is not honoured at all. need fixing

[x]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.
[!]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/lib/jvm

Afaik usr/lib/jvm is owned by jpackagetools, but need to be doubel checked

[x]: %build honors applicable compiler flags or justifies otherwise.
[!]: 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.
[x]: 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.
[!]: Useful -debuginfo package or justification otherwise.

Debuginfo is external for release and internal fro fast and slow debug. This sonds correct.
Afaik a step is needed, to pack release bianries twice. Once before the debuginfo strip. Once after.
This is big change, and current state is BETTER. So leaving it as it is

[!]: Package is not known to require an ExcludeArch tag.

java_arches have to be honoured

[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]: Package requires other packages for directories it uses.
[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]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 0 bytes in 0 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

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

Generic:
[x]: Uses parallel make %{?_smp_mflags} macro.

as per jdk project build recomandations

[x]: 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).
[-]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in
     java-11-openjdk-portable-slowdebug , java-11-openjdk-portable-
     fastdebug , java-11-openjdk-portable-devel , java-11-openjdk-portable-
     devel-slowdebug , java-11-openjdk-portable-devel-fastdebug ,
     java-11-openjdk-portable-static-libs , java-11-openjdk-portable-
     static-libs-slowdebug , java-11-openjdk-portable-static-libs-fastdebug
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[x]: SourceX tarball generation or download is documented.
     Note: Package contains tarball without URL, check comments
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
on java arches

[-]: %check is present and all tests pass.
[-]: Packages should try to preserve timestamps of original installed
     files.
[x]: Spec use %global instead of %define unless justified.
     Note: %define requiring justification: %define debug_package %{nil},
     %define __os_install_post %{nil}, %define __brp_strip_static_archive
     %{nil}, %define is_release_build() %( if [ "%{?1}" ==
     "%{debug_suffix_unquoted}" -o "%{?1}" ==
     "%{fastdebug_suffix_unquoted}" ]; then echo "0" ; else echo "1"; fi ),
     %define _lto_cflags %{nil}, %define buildoutputdir()
     %{expand:build/jdk%{featurever}.build%{?1}}, %define
     installoutputdir() %{expand:install/jdk%{featurever}.install%{?1}},
     %define uniquejavadocdir() %{expand:%{fullversion}.%{_arch}%{?1}},
     %define uniquesuffix() %{expand:%{fullversion}.%{_arch}%{?1}}, %define
     jreportablenameimpl() %(echo %{uniquesuffix ""} | sed
     "s;el7\\_([0-9]\\)*;portable%{1}.jre.;g" | sed
     "s;openjdkportable;el;g"), %define jdkportablenameimpl() %(echo
     %{uniquesuffix ""} | sed "s;el7\\_([0-9]\\)*;portable%{1}.jdk.;g" |
     sed "s;openjdkportable;el;g"), %define staticlibsportablenameimpl()
     %(echo %{uniquesuffix ""} | sed
     "s;el7\\_([0-9]\\)*;portable%{1}.static-libs.;g" | sed
     "s;openjdkportable;el;g"), %define jreportablenameimpl() %(echo
     %{uniquesuffix ""} | sed "s;fc\\([0-9]\\)*;\\0.portable%{1}.jre;g" |
     sed "s;openjdkportable;el;g"), %define jdkportablenameimpl() %(echo
     %{uniquesuffix ""} | sed "s;fc\\([0-9]\\)*;\\0.portable%{1}.jdk;g" |
     sed "s;openjdkportable;el;g"), %define staticlibsportablenameimpl()
     %(echo %{uniquesuffix ""} | sed
     "s;fc\\([0-9]\\)*;\\0.portable%{1}.static-libs;g" | sed
     "s;openjdkportable;el;g"), %define jreportablearchive()
     %{expand:%{jreportablenameimpl -- %%{1}}.tar.xz}, %define
     jdkportablearchive() %{expand:%{jdkportablenameimpl -- %%{1}}.tar.xz},
     %define staticlibsportablearchive()
     %{expand:%{staticlibsportablenameimpl -- %%{1}}.tar.xz}, %define
     jreportablename() %{expand:%{jreportablenameimpl -- %%{1}}}, %define
     jdkportablename() %{expand:%{jdkportablenameimpl -- %%{1}}}, %define
     staticlibsportablename() %{expand:%{jdkportablenameimpl -- %%{1}}},
     %define etcjavadir() %{expand:%{etcjavasubdir}/%{uniquesuffix --
     %{?1}}}, %define sdkdir() %{expand:%{uniquesuffix -- %{?1}}}, %define
     jrelnk()
     %{expand:jre-%{javaver}-%{origin}-%{version}-%{release}.%{_arch}%{?1}},
     %define sdkbindir() %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin},
     %define jrebindir() %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin},
     %define java_rpo() %{expand:, %define java_devel_rpo() %{expand:,
     %define java_static_libs_rpo() %{expand:, %define component %(echo
     %{name} | sed "s;-portable;;g")
[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]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: SourceX is a working URL.

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

Generic:
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.
[x]: Package should not use obsolete m4 macros
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Cannot parse rpmlint output:


Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.2.0
configuration:
    /usr/lib/python3.10/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/licenses.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 32, packages: 9

java-11-openjdk-portable-devel-slowdebug.x86_64: E: summary-too-long OpenJDK 11 Runtime and Development Environment portable edition unoptimised with full debugging on
java-11-openjdk-portable-static-libs-slowdebug.x86_64: E: summary-too-long OpenJDK 11 libraries for static linking - portable edition unoptimised with full debugging on
java-11-openjdk-portable-static-libs-fastdebug.x86_64: E: summary-too-long OpenJDK 11 libraries for static linking - portable edition optimised with full debugging on
java-11-openjdk-portable-slowdebug.x86_64: E: summary-too-long OpenJDK 11 Runtime Environment portable edition unoptimised with full debugging on
java-11-openjdk-portable-devel-fastdebug.x86_64: E: summary-too-long OpenJDK 11 Runtime and Development Environment portable edition optimised with full debugging on
java-11-openjdk-portable-devel-slowdebug.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-devel.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-static-libs-slowdebug.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-static-libs-fastdebug.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-slowdebug.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-static-libs.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-devel-fastdebug.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-fastdebug.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-devel-slowdebug.x86_64: W: no-documentation
java-11-openjdk-portable-devel.x86_64: W: no-documentation
java-11-openjdk-portable-slowdebug.x86_64: W: no-documentation
java-11-openjdk-portable-devel-fastdebug.x86_64: W: no-documentation
java-11-openjdk-portable-fastdebug.x86_64: W: no-documentation
java-11-openjdk-portable.x86_64: W: no-documentation
java-11-openjdk-portable-devel-slowdebug.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-devel.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-static-libs-slowdebug.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-static-libs-fastdebug.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-slowdebug.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-static-libs.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-devel-fastdebug.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-fastdebug.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-devel-slowdebug.x86_64: E: description-line-too-long This package is unoptimised with full debugging. Install only as needed and remove ASAP.
java-11-openjdk-portable-static-libs-slowdebug.x86_64: E: description-line-too-long This package is unoptimised with full debugging. Install only as needed and remove ASAP.
java-11-openjdk-portable-static-libs-fastdebug.x86_64: E: description-line-too-long This package is optimised with full debugging. Install only as needed and remove ASAP.
java-11-openjdk-portable-slowdebug.x86_64: E: description-line-too-long This package is unoptimised with full debugging. Install only as needed and remove ASAP.
java-11-openjdk-portable-devel-fastdebug.x86_64: E: description-line-too-long This package is optimised with full debugging. Install only as needed and remove ASAP.
java-11-openjdk-portable-fastdebug.x86_64: E: description-line-too-long This package is optimised with full debugging. Install only as needed and remove ASAP.
 9 packages and 0 specfiles checked; 11 errors, 24 warnings, 11 badness; has taken 0.1 s 



Requires
--------
java-11-openjdk-portable (rpmlib, GLIBC filtered):

java-11-openjdk-portable-slowdebug (rpmlib, GLIBC filtered):

java-11-openjdk-portable-fastdebug (rpmlib, GLIBC filtered):

java-11-openjdk-portable-devel (rpmlib, GLIBC filtered):

java-11-openjdk-portable-devel-slowdebug (rpmlib, GLIBC filtered):

java-11-openjdk-portable-devel-fastdebug (rpmlib, GLIBC filtered):

java-11-openjdk-portable-static-libs (rpmlib, GLIBC filtered):

java-11-openjdk-portable-static-libs-slowdebug (rpmlib, GLIBC filtered):

java-11-openjdk-portable-static-libs-fastdebug (rpmlib, GLIBC filtered):



Provides
--------
java-11-openjdk-portable:
    bundled(freetype)
    bundled(giflib)
    bundled(harfbuzz)
    bundled(lcms2)
    bundled(libjpeg)
    bundled(libpng)
    java-11-openjdk-portable
    java-11-openjdk-portable(x86-64)

java-11-openjdk-portable-slowdebug:
    java-11-openjdk-portable-slowdebug
    java-11-openjdk-portable-slowdebug(x86-64)

java-11-openjdk-portable-fastdebug:
    java-11-openjdk-portable-fastdebug
    java-11-openjdk-portable-fastdebug(x86-64)

java-11-openjdk-portable-devel:
    java-11-openjdk-portable-devel
    java-11-openjdk-portable-devel(x86-64)

java-11-openjdk-portable-devel-slowdebug:
    java-11-openjdk-portable-devel-slowdebug
    java-11-openjdk-portable-devel-slowdebug(x86-64)

java-11-openjdk-portable-devel-fastdebug:
    java-11-openjdk-portable-devel-fastdebug
    java-11-openjdk-portable-devel-fastdebug(x86-64)

java-11-openjdk-portable-static-libs:
    java-11-openjdk-portable-static-libs
    java-11-openjdk-portable-static-libs(x86-64)

java-11-openjdk-portable-static-libs-slowdebug:
    java-11-openjdk-portable-static-libs-slowdebug
    java-11-openjdk-portable-static-libs-slowdebug(x86-64)

java-11-openjdk-portable-static-libs-fastdebug:
    java-11-openjdk-portable-static-libs-fastdebug
    java-11-openjdk-portable-static-libs-fastdebug(x86-64)



Generated by fedora-review 0.9.0 (6761b6c) last change: 2022-08-23
Command line :/usr/bin/fedora-review -b 2139799 -m fedora-36-x86_64
Buildroot used: fedora-36-x86_64
Active plugins: Shell-api, C/C++, Generic
Disabled plugins: R, Python, SugarActivity, PHP, Haskell, Ocaml, fonts, Perl, Java
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 12 jiri vanek 2022-11-10 08:33:30 UTC
The license must be fixed
the java arches must be honoured

usr/lib/jvm die ownership must be clarified

final porvides are ok at the end it seems (please eyball too)
bundling is ok as per https://fedoraproject.org/wiki/Changes/JdkInTreeLibsAndStdclibStatic#Build_all_JDKs_in_Fedora_against_in-tree_libraries_and_with_static_stdc.2B.2Blib

the debuginfo is ok to fix later after pkg is done.



Please fix the lciense and java arches in the current srpm and spec file.

Once this is done, please start second spec and srpm, which will be actually based on fedora specfiles, and will have added portbale tarball logic.  it is crucial to keep both specfiles/srpms so it can be diffed. TY!

Comment 13 jiri vanek 2022-11-30 11:41:07 UTC
also please do that second row in fork+branch Aka my https://src.fedoraproject.org/fork/jvanek/rpms/java-17-openjdk/tree/fedoraPortable2 )

Comment 14 jiri vanek 2022-12-17 10:01:42 UTC
runnign review now.

Comment 15 jiri vanek 2022-12-18 09:43:51 UTC
Package Review
==============

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



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

C/C++:
[-]: Provides: bundled(gnulib) in place as required.
     Note: Sources not installed
[x]: Package does not contain kernel modules.
[-]: Package contains no static executables.
[x]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[x]: Package does not contain any libtool archives (.la)
[x]: Rpath absent or only used for internal libs.

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]: 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]: License field in the package spec file matches the actual license.
     Note: There is no build directory. Running licensecheck on vanilla
     upstream sources. Licenses found: "Unknown or generated", "GNU Affero
     General Public License v3.0 or later", "*No copyright* GNU General
     Public License, Version 2 Apache License 2.0", "*No copyright* GNU
     General Public License, Version 2", "GNU General Public License,
     Version 2", "GNU General Public License v2.0 only", "*No copyright*
     BSD 3-Clause License", "*No copyright* GNU General Public License v2.0
     only", "BSD 3-Clause License", "GNU General Public License v2.0 or
     later GNU General Public License v2.0 only [generated file]", "GNU
     General Public License v2.0 or later GNU General Public License v2.0
     only", "*No copyright* Mozilla Public License 2.0", "*No copyright*
     Public domain GNU General Public License v2.0 only", "*No copyright*
     Public domain GNU General Public License v2.0 only [generated file]",
     "*No copyright* [generated file]", "GNU General Public License v2.0
     only [generated file]", "Cryptix Public License", "BSD 2-Clause
     License", "Unicode License Agreement - Data Files and Software
     (2016)", "zlib License", "Freetype Project License", "MIT License",
     "MIT (old) ISC License", "MIT Open Group variant", "Apache License
     2.0", "W3C Software Notice and License (2002-12-31)", "Standard ML of
     New Jersey License", "Apache License 1.1", "*No copyright* GNU Lesser
     General Public License, Version 2.1", "zlib License MIT License", "BSD
     2-Clause License GNU General Public License v2.0 only", "MIT (old)",
     "ISC License", "MIT License GNU General Public License v2.0 only",
     "BSD 3-Clause License [generated file]", "GNU General Public License,
     Version 3", "BSD 3-Clause License GNU General Public License v2.0
     only", "zlib License GNU General Public License v2.0 only", "*No
     copyright* MIT License GNU General Public License v2.0 only", "libpng
     License GNU General Public License v2.0 only", "MIT Open Group variant
     GNU General Public License v2.0 only", "BSD 3-Clause License GNU
     General Public License v3.0 or later", "GNU Lesser General Public
     License v2.1 or later", "Public domain GNU General Public License v2.0
     only", "Unicode License Agreement - Data Files and Software (2015) GNU
     General Public License v2.0 only", "Freetype Project License
7     [generated file]", "W3C License GNU General Public License v2.0 only",
     "Khronos License GNU General Public License v2.0 only", "Apache
     License 1.1 GNU General Public License v2.0 only", "W3C Software
     Notice and License (1998-07-20)", "*No copyright* Apache License 2.0",
     "Freetype Project License XFree86 License", "NTP License", "*No
     copyright* MIT License", "W3C License", "*No copyright* Public
     domain". 9181 files have unknown license. Detailed output of
     licensecheck in /home/jvanek/2139799-java-11-openjdk-
     portable/licensecheck.txt
[!]: License file installed when any subpackage combination is installed.
[x]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.
[!]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/lib/jvm
[x]: %build honors applicable compiler flags or justifies otherwise.
[-]: Package contains no bundled libraries without FPC exception.
     Note: Especially check following dirs for bundled code:
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/java.desktop/windows/native/include,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/jdk.internal.ed/share/classes/jdk/internal/editor/external,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/java.naming/share/classes/com/sun/jndi/ldap/ext,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/src/sun/nio/cs/ext,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/java.base/share/classes/sun/net/ext,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/java.xml/share/classes/org/xml/sax/ext,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/jquery/external,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/test/fmw/gtest/include,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/jdk.localedata/share/classes/sun/text/resources/ext,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/jdk.charsets/share/classes/sun/nio/cs/ext,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/java.base/windows/native/include,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/java.base/share/native/include,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/java.desktop/macosx/native/include,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/jdk.localedata/share/classes/sun/util/resources/ext,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/jdk.accessibility/windows/native/include,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/java.desktop/share/native/include,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/java.base/unix/native/include,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/java.desktop/unix/native/include,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/hotspot/os/posix/include,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/test/jaxp/javax/xml/jaxp/libs,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/hotspot/share/include,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/java.desktop/share/native/libfreetype/include,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/hotspot/os/windows/include,
     /home/jvanek/2139799-java-11-openjdk-portable/upstream-
     unpacked/Source0/openjdk/src/jdk.jdwp.agent/share/native/include
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[x]: 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.
[x]: Package contains systemd file(s) if in need.
[-]: Useful -debuginfo package or justification otherwise.
[-]: Package is not known to require an ExcludeArch tag.
[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]: Package requires other packages for directories it uses.
[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]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 0 bytes in 0 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

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

Generic:
[x]: Uses parallel make %{?_smp_mflags} macro.
[x]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
[x]: Final provides and requires are sane (see attachments).
[x]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in
     java-11-openjdk-portable-slowdebug , java-11-openjdk-portable-
     fastdebug , java-11-openjdk-portable-devel , java-11-openjdk-portable-
     devel-slowdebug , java-11-openjdk-portable-devel-fastdebug ,
     java-11-openjdk-portable-static-libs , java-11-openjdk-portable-
     static-libs-slowdebug , java-11-openjdk-portable-static-libs-fastdebug
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[x]: SourceX tarball generation or download is documented.
     Note: Package contains tarball without URL, check comments
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[-]: Package should compile and build into binary rpms on all supported
     architectures.
[!]: %check is present and all tests pass.
[-]: Packages should try to preserve timestamps of original installed
     files.
[-]: Spec use %global instead of %define unless justified.
     Note: %define requiring justification: %define debug_package %{nil},
     %define __os_install_post %{nil}, %define __brp_strip_static_archive
     %{nil}, %define is_release_build() %( if [ "%{?1}" ==
     "%{debug_suffix_unquoted}" -o "%{?1}" ==
     "%{fastdebug_suffix_unquoted}" ]; then echo "0" ; else echo "1"; fi ),
     %define _lto_cflags %{nil}, %define buildoutputdir()
     %{expand:build/jdk%{featurever}.build%{?1}}, %define
     installoutputdir() %{expand:install/jdk%{featurever}.install%{?1}},
     %define uniquejavadocdir() %{expand:%{fullversion}.%{_arch}%{?1}},
     %define uniquesuffix() %{expand:%{fullversion}.%{_arch}%{?1}}, %define
     jreportablenameimpl() %(echo %{uniquesuffix ""} | sed
     "s;el7\\_([0-9]\\)*;portable%{1}.jre.;g" | sed
     "s;openjdkportable;el;g"), %define jdkportablenameimpl() %(echo
     %{uniquesuffix ""} | sed "s;el7\\_([0-9]\\)*;portable%{1}.jdk.;g" |
     sed "s;openjdkportable;el;g"), %define staticlibsportablenameimpl()
     %(echo %{uniquesuffix ""} | sed
     "s;el7\\_([0-9]\\)*;portable%{1}.static-libs.;g" | sed
     "s;openjdkportable;el;g"), %define jreportablenameimpl() %(echo
     %{uniquesuffix ""} | sed "s;fc\\([0-9]\\)*;\\0.portable%{1}.jre;g" |
     sed "s;openjdkportable;el;g"), %define jdkportablenameimpl() %(echo
     %{uniquesuffix ""} | sed "s;fc\\([0-9]\\)*;\\0.portable%{1}.jdk;g" |
     sed "s;openjdkportable;el;g"), %define staticlibsportablenameimpl()
     %(echo %{uniquesuffix ""} | sed
     "s;fc\\([0-9]\\)*;\\0.portable%{1}.static-libs;g" | sed
     "s;openjdkportable;el;g"), %define jreportablearchive()
     %{expand:%{jreportablenameimpl -- %%{1}}.tar.xz}, %define
     jdkportablearchive() %{expand:%{jdkportablenameimpl -- %%{1}}.tar.xz},
     %define staticlibsportablearchive()
     %{expand:%{staticlibsportablenameimpl -- %%{1}}.tar.xz}, %define
     jreportablename() %{expand:%{jreportablenameimpl -- %%{1}}}, %define
     jdkportablename() %{expand:%{jdkportablenameimpl -- %%{1}}}, %define
     staticlibsportablename() %{expand:%{jdkportablenameimpl -- %%{1}}},
     %define etcjavadir() %{expand:%{etcjavasubdir}/%{uniquesuffix --
     %{?1}}}, %define sdkdir() %{expand:%{uniquesuffix -- %{?1}}}, %define
     jrelnk()
     %{expand:jre-%{javaver}-%{origin}-%{version}-%{release}.%{_arch}%{?1}},
     %define sdkbindir() %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin},
     %define jrebindir() %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin},
     %define java_rpo() %{expand:, %define java_devel_rpo() %{expand:,
     %define java_static_libs_rpo() %{expand:, %define component %(echo
     %{name} | sed "s;-portable;;g")
[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]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: SourceX is a working URL.

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

Generic:
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.
[x]: Package should not use obsolete m4 macros
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Cannot parse rpmlint output:


Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.10/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 31, packages: 9

java-11-openjdk-portable-devel-fastdebug.x86_64: E: summary-too-long OpenJDK 11 Runtime and Development Environment portable edition optimised with full debugging on
java-11-openjdk-portable-devel-slowdebug.x86_64: E: summary-too-long OpenJDK 11 Runtime and Development Environment portable edition unoptimised with full debugging on
java-11-openjdk-portable-slowdebug.x86_64: E: summary-too-long OpenJDK 11 Runtime Environment portable edition unoptimised with full debugging on
java-11-openjdk-portable-static-libs-slowdebug.x86_64: E: summary-too-long OpenJDK 11 libraries for static linking - portable edition unoptimised with full debugging on
java-11-openjdk-portable-static-libs-fastdebug.x86_64: E: summary-too-long OpenJDK 11 libraries for static linking - portable edition optimised with full debugging on
java-11-openjdk-portable-devel-fastdebug.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-devel.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-devel-slowdebug.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-slowdebug.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-static-libs.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-static-libs-slowdebug.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-static-libs-fastdebug.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-fastdebug.x86_64: W: only-non-binary-in-usr-lib
java-11-openjdk-portable-devel-fastdebug.x86_64: W: no-documentation
java-11-openjdk-portable-devel.x86_64: W: no-documentation
java-11-openjdk-portable-devel-slowdebug.x86_64: W: no-documentation
java-11-openjdk-portable.x86_64: W: no-documentation
java-11-openjdk-portable-slowdebug.x86_64: W: no-documentation
java-11-openjdk-portable-fastdebug.x86_64: W: no-documentation
java-11-openjdk-portable.x86_64: E: no-binary
java-11-openjdk-portable-slowdebug.x86_64: E: no-binary
java-11-openjdk-portable-static-libs.x86_64: E: no-binary
java-11-openjdk-portable-static-libs-slowdebug.x86_64: E: no-binary
java-11-openjdk-portable-static-libs-fastdebug.x86_64: E: no-binary
java-11-openjdk-portable-fastdebug.x86_64: E: no-binary
java-11-openjdk-portable-devel-fastdebug.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-devel.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-devel-slowdebug.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-slowdebug.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-static-libs.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-static-libs-slowdebug.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-static-libs-fastdebug.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-fastdebug.x86_64: W: invalid-license-exception advertising
java-11-openjdk-portable-devel-fastdebug.x86_64: E: description-line-too-long This package is optimised with full debugging. Install only as needed and remove ASAP.
java-11-openjdk-portable-devel-slowdebug.x86_64: E: description-line-too-long This package is unoptimised with full debugging. Install only as needed and remove ASAP.
java-11-openjdk-portable-slowdebug.x86_64: E: description-line-too-long This package is unoptimised with full debugging. Install only as needed and remove ASAP.
java-11-openjdk-portable-static-libs-slowdebug.x86_64: E: description-line-too-long This package is unoptimised with full debugging. Install only as needed and remove ASAP.
java-11-openjdk-portable-static-libs-fastdebug.x86_64: E: description-line-too-long This package is optimised with full debugging. Install only as needed and remove ASAP.
java-11-openjdk-portable-fastdebug.x86_64: E: description-line-too-long This package is optimised with full debugging. Install only as needed and remove ASAP.
 9 packages and 0 specfiles checked; 17 errors, 24 warnings, 17 badness; has taken 6.2 s 



Requires
--------
java-11-openjdk-portable (rpmlib, GLIBC filtered):

java-11-openjdk-portable-slowdebug (rpmlib, GLIBC filtered):

java-11-openjdk-portable-fastdebug (rpmlib, GLIBC filtered):

java-11-openjdk-portable-devel (rpmlib, GLIBC filtered):

java-11-openjdk-portable-devel-slowdebug (rpmlib, GLIBC filtered):

java-11-openjdk-portable-devel-fastdebug (rpmlib, GLIBC filtered):

java-11-openjdk-portable-static-libs (rpmlib, GLIBC filtered):

java-11-openjdk-portable-static-libs-slowdebug (rpmlib, GLIBC filtered):

java-11-openjdk-portable-static-libs-fastdebug (rpmlib, GLIBC filtered):



Provides
--------
java-11-openjdk-portable:
    bundled(freetype)
    bundled(giflib)
    bundled(harfbuzz)
    bundled(lcms2)
    bundled(libjpeg)
    bundled(libpng)
    java-11-openjdk-portable
    java-11-openjdk-portable(x86-64)

java-11-openjdk-portable-slowdebug:
    java-11-openjdk-portable-slowdebug
    java-11-openjdk-portable-slowdebug(x86-64)

java-11-openjdk-portable-fastdebug:
    java-11-openjdk-portable-fastdebug
    java-11-openjdk-portable-fastdebug(x86-64)

java-11-openjdk-portable-devel:
    java-11-openjdk-portable-devel
    java-11-openjdk-portable-devel(x86-64)

java-11-openjdk-portable-devel-slowdebug:
    java-11-openjdk-portable-devel-slowdebug
    java-11-openjdk-portable-devel-slowdebug(x86-64)

java-11-openjdk-portable-devel-fastdebug:
    java-11-openjdk-portable-devel-fastdebug
    java-11-openjdk-portable-devel-fastdebug(x86-64)

java-11-openjdk-portable-static-libs:
    java-11-openjdk-portable-static-libs
    java-11-openjdk-portable-static-libs(x86-64)

java-11-openjdk-portable-static-libs-slowdebug:
    java-11-openjdk-portable-static-libs-slowdebug
    java-11-openjdk-portable-static-libs-slowdebug(x86-64)

java-11-openjdk-portable-static-libs-fastdebug:
    java-11-openjdk-portable-static-libs-fastdebug
    java-11-openjdk-portable-static-libs-fastdebug(x86-64)



Generated by fedora-review 0.9.0 (6761b6c) last change: 2022-08-23
Command line :/usr/bin/fedora-review -b 2139799 -m fedora-36-x86_64
Buildroot used: fedora-36-x86_64
Active plugins: C/C++, Generic, Shell-api
Disabled plugins: Ocaml, Haskell, Java, PHP, R, SugarActivity, Python, fonts, Perl
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH


hints:
[-]: Package contains no static executables - contains, as per https://fedoraproject.org/wiki/Changes/JdkInTreeLibsAndStdclibStatic OK
[!] License file installed when any subpackage combination is installe - not ok. Licences are missing. See jdk17 portable and content of /usr/share/licences - https://koji.fedoraproject.org/koji/rpminfo?rpmID=32619423
    Note, that I merge all icences during build, and then reuse them in all packages, 
[!] Note: Directories without known owners: /usr/lib/jvm
   Do y ou rRequires: javapackages-tools?
[x]: %build honors applicable compiler flags or justifies otherwise. - hoored as much as jdk accepts
[-]: Package contains no bundled libraries without FPC exception - https://fedoraproject.org/wiki/Changes/JdkInTreeLibsAndStdclibStatic OK
[!]: Requires correct, justified where necessary. - missing jpackage tools? Or maybe better, /usr/lib/jvm?
[-]: Useful -debuginfo package or justification otherwise. Debuginfo needs very carefuel TBD
[!]: Package is not known to require an ExcludeArch tag.
  Missing:
ExclusiveArch:  %{java_arches}
?
[-]: %check is present and all tests pass.  - Is shenandoahcheck enabled?
[-]: Spec use %global instead of %define unless justified. - ok

Comment 16 jiri vanek 2022-12-18 09:45:20 UTC
licences shodl be fixed
/usr/lib/jvm  should be TESTED, and if test fails, it shoudl be fixed
ExclusiveArch:  %{java_arches} must be fixed
shenandoah have to bde double checked

Comment 17 jiri vanek 2022-12-18 09:48:28 UTC
cat build.log  | grep -e "/bin/java -XX:+UseShenandoahGC -version" -A 5
+ /builddir/build/BUILD/java-11-openjdk-11.0.17.0.8-2.fc36.x86_64/install/jdk11.install-slowdebug/images/jdk//bin/java -XX:+UseShenandoahGC -version
openjdk version "11.0.17" 2022-10-18
OpenJDK Runtime Environment (Red_Hat-11.0.17.0.8-2.fc36) (slowdebug build 11.0.17+8)
OpenJDK 64-Bit Server VM (Red_Hat-11.0.17.0.8-2.fc36) (slowdebug build 11.0.17+8, mixed mode)
+ /builddir/build/BUILD/java-11-openjdk-11.0.17.0.8-2.fc36.x86_64/install/jdk11.install-slowdebug/images/jdk/bin/javac -d . /builddir/build/SOURCES/TestCryptoLevel.java
+ /builddir/build/BUILD/java-11-openjdk-11.0.17.0.8-2.fc36.x86_64/install/jdk11.install-slowdebug/images/jdk/bin/java --add-opens java.base/javax.crypto=ALL-UNNAMED TestCryptoLevel
--
+ /builddir/build/BUILD/java-11-openjdk-11.0.17.0.8-2.fc36.x86_64/install/jdk11.install-fastdebug/images/jdk//bin/java -XX:+UseShenandoahGC -version
openjdk version "11.0.17" 2022-10-18
OpenJDK Runtime Environment (Red_Hat-11.0.17.0.8-2.fc36) (fastdebug build 11.0.17+8)
OpenJDK 64-Bit Server VM (Red_Hat-11.0.17.0.8-2.fc36) (fastdebug build 11.0.17+8, mixed mode)
+ /builddir/build/BUILD/java-11-openjdk-11.0.17.0.8-2.fc36.x86_64/install/jdk11.install-fastdebug/images/jdk/bin/javac -d . /builddir/build/SOURCES/TestCryptoLevel.java
+ /builddir/build/BUILD/java-11-openjdk-11.0.17.0.8-2.fc36.x86_64/install/jdk11.install-fastdebug/images/jdk/bin/java --add-opens java.base/javax.crypto=ALL-UNNAMED TestCryptoLevel
--
+ /builddir/build/BUILD/java-11-openjdk-11.0.17.0.8-2.fc36.x86_64/install/jdk11.install/images/jdk//bin/java -XX:+UseShenandoahGC -version
openjdk version "11.0.17" 2022-10-18
OpenJDK Runtime Environment (Red_Hat-11.0.17.0.8-2.fc36) (build 11.0.17+8)
OpenJDK 64-Bit Server VM (Red_Hat-11.0.17.0.8-2.fc36) (build 11.0.17+8, mixed mode)
+ /builddir/build/BUILD/java-11-openjdk-11.0.17.0.8-2.fc36.x86_64/install/jdk11.install/images/jdk/bin/javac -d . /builddir/build/SOURCES/TestCryptoLevel.java
+ /builddir/build/BUILD/java-11-openjdk-11.0.17.0.8-2.fc36.x86_64/install/jdk11.install/images/jdk/bin/java --add-opens java.base/javax.crypto=ALL-UNNAMED TestCryptoLevel


shenandoah looks good.

Comment 19 jiri vanek 2022-12-22 09:54:35 UTC
Hello; licences are fine.
The ExclusiveArch is present in your repo, is present in srpm, but not in published spec. Please be sure you merge your repo.

How is the /usr/lib/jvm dir behaving ?

Comment 20 jiri vanek 2022-12-22 10:30:43 UTC
I had tried VM, with remvoed javapackages-filesystem which indeed owns /usr/lib/jvm and tried to install this portables. It worked. Thus I consider this review as finished.
I wille mail otehr java maintainers and if it will be found guilty, we will add javapackages-filesystem to all portable rpms.

Comment 21 jiri vanek 2022-12-22 10:31:02 UTC
pacakge is approved

Comment 22 Package Review 2024-01-28 08:15:52 UTC
Package is now in repositories, closing review.


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