Bug 2188439 - Review Request: crun-wasm - Provides crun built with wasm support
Summary: Review Request: crun-wasm - Provides crun built with wasm support
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: Package Review
Version: epel9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/containers/crun
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-20 18:25 UTC by Lokesh Mandvekar
Modified: 2023-05-18 04:38 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-05-18 04:36:57 UTC
Type: ---
Embargoed:
jnovy: fedora-review+


Attachments (Terms of Use)

Description Lokesh Mandvekar 2023-04-20 18:25:26 UTC
Spec URL: https://pagure.io/crun-wasm/raw/main/f/crun-wasm.spec
SRPM URL: https://pagure.io/crun-wasm/blob/main/f/SRPMS/crun-wasm-0.0-1.fc38.src.rpm
Description: Provides crun built with wasm support
Fedora Account System Username: lsm5

koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=100180586

Comment 1 Lokesh Mandvekar 2023-04-20 18:26:30 UTC
assigning to Jindrich with prior agreement :)

Comment 2 Fedora Review Service 2023-04-20 18:30:32 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5810031
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2188439-crun-wasm/fedora-rawhide-x86_64/05810031-crun-wasm/fedora-review/review.txt

Please take a look if any issues were found.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 3 Fabio Valentini 2023-04-20 18:45:17 UTC
I'm curious, why isn't this just a subpackage of crun, given that this package has no sources, and exclusively contains a single symlink and some RPM metadata?

Comment 4 Lokesh Mandvekar 2023-04-20 18:50:05 UTC
(In reply to Fabio Valentini from comment #3)
> I'm curious, why isn't this just a subpackage of crun, given that this
> package has no sources, and exclusively contains a single symlink and some
> RPM metadata?

Yes, so openshift is looking to enable wasm support and they will likely be pulling in wasmedge from EPEL.
For that, we need `crun-wasm` in EPEL as RHEL doesn't want to ship `crun-wasm` without a wasm library being present in RHEL itself.

If crun-wasm is going into epel as a separate package, I'd rather keep the packaging consistent in Fedora as well. That's why the stripping out of crun-wasm into a new package.

If it helps, I can include a README in the package or a comment in the spec itself.

Comment 5 Fabio Valentini 2023-04-20 18:53:26 UTC
Ok, that kind of makes sense. But then you could make it an EPEL-only package? There's no requirement for EPEL packages to also exist in Fedora.

Comment 6 Lokesh Mandvekar 2023-04-20 18:57:49 UTC
(In reply to Fabio Valentini from comment #5)
> Ok, that kind of makes sense. But then you could make it an EPEL-only
> package? There's no requirement for EPEL packages to also exist in Fedora.

Sure I could. But I think this would make things more consistent and less confusing. But if FPC strongly feels this should be epel-only, I can live with that.

Comment 7 Jindrich Novy 2023-04-21 09:09:22 UTC
Can we start EPEL-only review Lokesh if this doesn't go to Fedora?

Comment 8 Fabio Valentini 2023-04-21 11:59:05 UTC
> But if FPC strongly feels this should be epel-only, I can live with that.

I don't feel strongly about this (I hoped to make this clear by prefacing my initial comment with "I'm curious"), and I didn't speak on behalf of the FPC. I only wanted to ask, since the package looks rather unusual.

Comment 9 Lokesh Mandvekar 2023-04-21 12:36:32 UTC
(In reply to Jindrich Novy from comment #7)
> Can we start EPEL-only review Lokesh if this doesn't go to Fedora?

alright. I suspect this package won't need frequent changes once setup, so fine by me.

(In reply to Fabio Valentini from comment #8)
> > But if FPC strongly feels this should be epel-only, I can live with that.
> 
> I don't feel strongly about this (I hoped to make this clear by prefacing my
> initial comment with "I'm curious"), and I didn't speak on behalf of the
> FPC. I only wanted to ask, since the package looks rather unusual.

ack. got it.


Changed product to Fedora EPEL and version to epel9. Hope that's all we need to make this an epel package review.

Comment 10 Lokesh Mandvekar 2023-04-21 13:01:15 UTC
epel9 scratch build

Comment 11 Lokesh Mandvekar 2023-04-21 13:01:28 UTC
(In reply to Lokesh Mandvekar from comment #10)
> epel9 scratch build

https://koji.fedoraproject.org/koji/taskinfo?taskID=100212683

Comment 12 Jindrich Novy 2023-05-04 12:14:16 UTC
===== 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.
[ ]: 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.
[ ]: License field in the package spec file matches the actual license.
     Note: There is no build directory. Running licensecheck on vanilla
     upstream sources. No licenses found. Please check the source files for
     licenses manually.
[ ]: %build honors applicable compiler flags or justifies otherwise.
[ ]: Package contains no bundled libraries without FPC exception.
[ ]: Changelog in prescribed format.
[ ]: 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
[ ]: Package uses nothing in %doc for runtime.
[ ]: Package consistently uses macros (instead of hard-coded directory
     names).
[ ]: Package is named according to the Package Naming Guidelines.
[ ]: Package does not generate any conflict.
[ ]: 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.
[ ]: Sources used to build the package match the upstream source, as
     provided in the spec URL.
     Note: Package has no sources or they are generated by developer
[ ]: Spec file is legible and written in American English.
[ ]: Package contains systemd file(s) if in need.
[ ]: Useful -debuginfo package or justification otherwise.
[ ]: Package is not known to require an ExcludeArch tag.
[ ]: 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 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]: 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:
[ ]: 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).
[ ]: Package functions as described.
[ ]: Latest version is packaged.
[ ]: 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.
[ ]: %check is present and all tests pass.
[ ]: 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]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: SourceX is a working URL.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[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]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: crun-wasm-0.0-1.fc39.x86_64.rpm
          crun-wasm-0.0-1.fc39.src.rpm
======================================================================================================== rpmlint session starts =======================================================================================================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.11/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
rpmlintrc: [PosixPath('/tmp/tmpz2dimubm')]
checks: 31, packages: 2

crun-wasm.x86_64: W: no-manual-page-for-binary crun-wasm
crun-wasm.x86_64: W: no-documentation
crun-wasm.x86_64: E: no-binary
crun-wasm.x86_64: W: dangling-symlink /usr/bin/crun-wasm /usr/bin/crun
========================================================================= 2 packages and 0 specfiles checked; 1 errors, 3 warnings, 1 badness; has taken 0.1 s ========================================================================




Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.11/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: 1

crun-wasm.x86_64: W: no-manual-page-for-binary crun-wasm
crun-wasm.x86_64: W: no-documentation
crun-wasm.x86_64: E: no-binary
crun-wasm.x86_64: W: dangling-symlink /usr/bin/crun-wasm /usr/bin/crun
 1 packages and 0 specfiles checked; 1 errors, 3 warnings, 1 badness; has taken 0.0 s 



Requires
--------
crun-wasm (rpmlib, GLIBC filtered):
    crun
    wasm-library



Provides
--------
crun-wasm:
    crun-wasm
    crun-wasm(x86-64)



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

Comment 13 Jindrich Novy 2023-05-04 12:16:02 UTC
Looks good. Please note this package just a wrapper so any License related bits doesn't make sense here.

On the documentation side - assuming it's also deferred to the symlinked wasm Lokesh?

Comment 14 Lokesh Mandvekar 2023-05-05 13:59:18 UTC
(In reply to Jindrich Novy from comment #13)
> Looks good. Please note this package just a wrapper so any License related
> bits doesn't make sense here.

But, we do need *some* license specification though, right?
> 
> On the documentation side - assuming it's also deferred to the symlinked
> wasm Lokesh?

symlink to the crun binary.

Comment 15 Jindrich Novy 2023-05-05 18:09:36 UTC
Yes, the license would help.

Comment 16 Lokesh Mandvekar 2023-05-05 18:27:23 UTC
(In reply to Jindrich Novy from comment #15)
> Yes, the license would help.

So, is this good to go?

Comment 17 Jindrich Novy 2023-05-05 18:33:27 UTC
Just one more question - why does the package obsolete itself?

Epoch: 1
Version: 0.0
Obsoletes: %{name} <= 1.8.4-1

Was there a previous version anywhere?

Regarding license - should it be added as text too?

Comment 18 Lokesh Mandvekar 2023-05-05 18:39:22 UTC
(In reply to Jindrich Novy from comment #17)
> Just one more question - why does the package obsolete itself?
> 
> Epoch: 1
> Version: 0.0
> Obsoletes: %{name} <= 1.8.4-1
> 
> Was there a previous version anywhere?

Ugh, you're right. Cruft from when I intended to make crun-wasm separate across the board for all fedoras. Good catch, I'll remove that.
 
> Regarding license - should it be added as text too?

Sure, I can add it in the rpm itself.

Thanks!

Comment 19 Lokesh Mandvekar 2023-05-05 18:49:07 UTC
Spec URL: https://pagure.io/crun-wasm/raw/main/f/crun-wasm.spec
SRPM URL: https://pagure.io/crun-wasm/blob/main/f/SRPMS/crun-wasm-0.0-1.fc39.src.rpm


- Switched to regular changelog as autochangelog may not be supported on rhel yet.
- Added GPL2 license
- Removed epoch and obsoletes.

PTAL. Thanks Jindrich.

Comment 20 Fedora Review Service 2023-05-05 18:49:44 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5891123
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2188439-crun-wasm/srpm-builds/05891123/builder-live.log.gz

Please make sure the package builds successfully at least for Fedora Rawhide.

- If the build failed for unrelated reasons (e.g. temporary network
  unavailability), please ignore it.
- If the build failed because of missing BuildRequires, please make sure they
  are listed in the "Depends On" field


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 22 Fedora Review Service 2023-05-09 12:42:55 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5900512
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2188439-crun-wasm/fedora-rawhide-x86_64/05900512-crun-wasm/fedora-review/review.txt

Please take a look if any issues were found.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 24 Jindrich Novy 2023-05-09 13:33:49 UTC
Thanks for clarification of ExclusiveArch in spec - LGTM.

Comment 25 Fedora Admin user for bugzilla script actions 2023-05-09 13:34:49 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/crun-wasm

Comment 26 Fedora Update System 2023-05-09 13:53:30 UTC
FEDORA-EPEL-2023-92c1e25f32 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-92c1e25f32

Comment 27 Fedora Update System 2023-05-09 13:57:19 UTC
FEDORA-EPEL-2023-691f514484 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-691f514484

Comment 28 Fedora Update System 2023-05-10 01:52:11 UTC
FEDORA-EPEL-2023-691f514484 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-2023-691f514484

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

Comment 29 Fedora Update System 2023-05-10 03:03:52 UTC
FEDORA-EPEL-2023-92c1e25f32 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-92c1e25f32

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

Comment 30 Fedora Update System 2023-05-18 04:36:57 UTC
FEDORA-EPEL-2023-92c1e25f32 has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 31 Fedora Update System 2023-05-18 04:38:02 UTC
FEDORA-EPEL-2023-691f514484 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.