Bug 2435617 - Review Request: chunkah - OCI building tool for content-based container image layers
Summary: Review Request: chunkah - OCI building tool for content-based container image...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: John Eckersberg
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/jlebon/chunkah
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-01-31 01:03 UTC by Jonathan Lebon
Modified: 2026-03-20 18:22 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-03-20 18:22:06 UTC
Type: ---
Embargoed:
jeckersb: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 10082132 to 10094180 (412 bytes, patch)
2026-02-04 19:10 UTC, Fedora Review Service
no flags Details | Diff

Description Jonathan Lebon 2026-01-31 01:03:17 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/jlebon/chunkah/srpm-builds/10081962/chunkah.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/jlebon/chunkah/srpm-builds/10081962/chunkah-0.1.1-1.fc43.src.rpm

Description:

chunkah is an OCI building tool that takes a flat rootfs and outputs a
layered OCI image with content-based layers. It optimizes container image
layer reuse by grouping files based on their content (e.g., by RPM package)
rather than by Dockerfile instruction order.

It is a generalized successor to rpm-ostree's build-chunked-oci command.

Fedora Account System Username: jlebon

Comment 1 Fedora Review Service 2026-01-31 01:56:37 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10082132
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2435617-chunkah/fedora-rawhide-x86_64/10082132-chunkah/fedora-review/review.txt

Found issues:

- No gcc, gcc-c++ or clang found in BuildRequires
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/C_and_C++/

Please know that there can be false-positives.

---
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 2 John Eckersberg 2026-02-04 03:08:57 UTC
Package Review
==============

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


Issues:
=======

- (Blocker) Must provide `bundled(crate(xxx))` for each dependency.
  Looks like this is handled by %cargo_vendor_manifest described here:

  https://docs.fedoraproject.org/en-US/packaging-guidelines/Rust/#_using_vendor_tarballs

  bootc currently does this and looks correct so should be easy to
  just copy from there.

- (Non-blocker) We should probably have at least a basic manpage.  For
  reference bootc generates most of that from clap but it's somewhat
  involved and I don't think it's worth holding the review up over it.

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

Generic:
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
     Note: Using prebuilt packages
[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: "Unknown or generated", "*No copyright* Apache License 2.0",
     "*No copyright* MIT License", "*No copyright* GNU General Public
     License, Version 3", "BSD 0-Clause License", "*No copyright* The
     Unlicense", "MIT License", "Apache License 2.0 and/or MIT License",
     "zlib License", "*No copyright* Apache License (v2.0) or MIT license",
     "Apache License 2.0", "GNU Lesser General Public License, Version
     2.1", "Unicode License Agreement - Data Files and Software (2016)",
     "Apache License (v2.0) or MIT license", "Apache License (v2.0) or MIT
     license and/or MIT License", "*No copyright* zlib License", "*No
     copyright* GNU General Public License, Version 2", "*No copyright*
     Boost Software License 1.0". 5033 files have unknown license. Detailed
     output of licensecheck in /var/lib/copr-
     rpmbuild/results/chunkah/licensecheck.txt
[x]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.

     Reviewer note covering this and previous item:

     The spec correctly lists chunkah itself as licensed MIT OR Apache-2.0.

     The list of licenses included via the dependencies is generated
     at build-time via `cargo license` and packaged as
     LICENSE.dependencies.     
[x]: %build honors applicable compiler flags or justifies otherwise.
[!]: Package contains no bundled libraries or specifies bundled libraries
     with Provides: bundled(<libname>) if unbundling is not possible.
[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.
[x]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[x]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
[x]: Package complies to the Packaging Guidelines
[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]: The License field must be a valid SPDX expression.
[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]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 9495 bytes in 1 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

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

Generic:
[x]: Reviewer should test that the package builds in mock.
[-]: 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).
     Reviewer note: Ok minus the `bundled` thing noted previously.
[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.
[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]: 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]: 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 debuginfo package(s).
     Note: No rpmlint messages.
[x]: Rpmlint is run on all installed packages.
     Note: No rpmlint messages.
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.


Rpmlint
-------
Checking: chunkah-0.1.1-1.fc44.x86_64.rpm
          chunkah-0.1.1-1.fc44.src.rpm
============================ rpmlint session starts ============================
rpmlint: 2.8.0
configuration:
    /usr/lib/python3.14/site-packages/rpmlint/configdefaults.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/tmp5en0epn6')]
checks: 32, packages: 2

chunkah.src: E: spelling-error ('rootfs', "%description -l en_US rootfs -> roots, roofs, root's")
chunkah.src: E: spelling-error ("ostree's", "%description -l en_US ostree's -> shoetree's, street's, store's")
chunkah.src: E: spelling-error ('oci', '%description -l en_US oci -> oi, loci, sci')
chunkah.x86_64: E: spelling-error ('rootfs', "%description -l en_US rootfs -> roots, roofs, root's")
chunkah.x86_64: E: spelling-error ("ostree's", "%description -l en_US ostree's -> shoetree's, street's, store's")
chunkah.x86_64: E: spelling-error ('oci', '%description -l en_US oci -> oi, loci, sci')
chunkah.x86_64: W: no-manual-page-for-binary chunkah
 2 packages and 0 specfiles checked; 6 errors, 1 warnings, 7 filtered, 6 badness; has taken 0.7 s 




Rpmlint (debuginfo)
-------------------
Checking: chunkah-debuginfo-0.1.1-1.fc44.x86_64.rpm
============================ rpmlint session starts ============================
rpmlint: 2.8.0
configuration:
    /usr/lib/python3.14/site-packages/rpmlint/configdefaults.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/tmp21km_369')]
checks: 32, packages: 1

 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 5 filtered, 0 badness; has taken 1.0 s 





Rpmlint (installed packages)
----------------------------
(none): E: there is no installed rpm "chunkah".
(none): E: there is no installed rpm "chunkah-debuginfo".
There are no files to process nor additional arguments.
Nothing to do, aborting.
============================ rpmlint session starts ============================
rpmlint: 2.8.0
configuration:
    /usr/lib/python3.14/site-packages/rpmlint/configdefaults.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: 32, packages: 2

 0 packages and 0 specfiles checked; 0 errors, 0 warnings, 0 filtered, 0 badness; has taken 0.0 s 



Source checksums
----------------
https://github.com/jlebon/chunkah/releases/download/v0.1.1/chunkah-0.1.1.tar.gz :
  CHECKSUM(SHA256) this package     : d3f8482610f0ae346adfc7835b05c4ab953224d72a8323dc489e70d1d414f888
  CHECKSUM(SHA256) upstream package : d3f8482610f0ae346adfc7835b05c4ab953224d72a8323dc489e70d1d414f888
https://github.com/jlebon/chunkah/releases/download/v0.1.1/chunkah-0.1.1-vendor.tar.gz :
  CHECKSUM(SHA256) this package     : 0fde3ee6d2e0da8c0cf99d5941bd93dd0df19197448d8ffb7680db9f6a69ce1b
  CHECKSUM(SHA256) upstream package : 0fde3ee6d2e0da8c0cf99d5941bd93dd0df19197448d8ffb7680db9f6a69ce1b


Requires
--------
chunkah (rpmlib, GLIBC filtered):
    ld-linux-x86-64.so.2()(64bit)
    libc.so.6()(64bit)
    libcrypto.so.3()(64bit)
    libcrypto.so.3(OPENSSL_3.0.0)(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3)(64bit)
    libgcc_s.so.1(GCC_4.2.0)(64bit)
    libm.so.6()(64bit)
    libssl.so.3()(64bit)
    libssl.so.3(OPENSSL_3.0.0)(64bit)
    libz.so.1()(64bit)
    rtld(GNU_HASH)



Provides
--------
chunkah:
    chunkah
    chunkah(x86-64)



Generated by fedora-review 0.11.0 (05c5b26) last change: 2025-11-29
Command line :/bin/fedora-review --no-colors --prebuilt --rpm-spec --name chunkah --mock-config /var/lib/copr-rpmbuild/results/configs/child.cfg
Buildroot used: fedora-rawhide-x86_64
Active plugins: Generic, Shell-api, C/C++
Disabled plugins: PHP, Ocaml, R, Perl, SugarActivity, Java, fonts, Python, Haskell
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH

Comment 3 Jonathan Lebon 2026-02-04 18:59:58 UTC
Awesome, thank you for the review!

Spec URL: https://download.copr.fedorainfracloud.org/results/jlebon/chunkah/srpm-builds/10092440/chunkah.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/jlebon/chunkah/srpm-builds/10092440/chunkah-0.1.1-1.fc43.src.rpm

(In reply to John Eckersberg from comment #2)
> - (Blocker) Must provide `bundled(crate(xxx))` for each dependency.
>   Looks like this is handled by %cargo_vendor_manifest described here:
> 
>  
> https://docs.fedoraproject.org/en-US/packaging-guidelines/Rust/
> #_using_vendor_tarballs
> 
>   bootc currently does this and looks correct so should be easy to
>   just copy from there.

Good catch. Fixed!

> - (Non-blocker) We should probably have at least a basic manpage.  For
>   reference bootc generates most of that from clap but it's somewhat
>   involved and I don't think it's worth holding the review up over it.

Yes, I need to figure out the manpage strategy. And now I see bootc is using something similar to coreos-installer. I might do the same...

Comment 4 Fedora Review Service 2026-02-04 19:10:42 UTC
Created attachment 2128204 [details]
The .spec file difference from Copr build 10082132 to 10094180

Comment 5 Fedora Review Service 2026-02-04 19:10:45 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10094180
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2435617-chunkah/fedora-rawhide-x86_64/10094180-chunkah/fedora-review/review.txt

Found issues:

- No gcc, gcc-c++ or clang found in BuildRequires
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/C_and_C++/

Please know that there can be false-positives.

---
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 6 John Eckersberg 2026-02-04 21:53:15 UTC
LGTM, I can plainly see in the autogenerated review template that the `Provides` looks good now!  I won't re-paste the whole template but here's the new `Provides` since I suspect the copr template will get garbage collected at some point, but this comment will persist until the heat death of the universe:


Provides
--------
chunkah:
    bundled(crate(adler2))
    bundled(crate(aho-corasick))
    bundled(crate(ambient-authority))
    bundled(crate(android_system_properties))
    bundled(crate(anstyle))
    bundled(crate(anyhow))
    bundled(crate(autocfg))
    bundled(crate(bitflags))
    bundled(crate(block2))
    bundled(crate(bumpalo))
    bundled(crate(camino))
    bundled(crate(canon-json))
    bundled(crate(cap-primitives))
    bundled(crate(cap-std))
    bundled(crate(cap-std-ext))
    bundled(crate(cap-tempfile))
    bundled(crate(cc))
    bundled(crate(cfg-if))
    bundled(crate(cfg_aliases))
    bundled(crate(chrono))
    bundled(crate(clap))
    bundled(crate(clap_builder))
    bundled(crate(clap_derive))
    bundled(crate(clap_lex))
    bundled(crate(const_format))
    bundled(crate(const_format_proc_macros))
    bundled(crate(core-foundation-sys))
    bundled(crate(crc32fast))
    bundled(crate(ctrlc))
    bundled(crate(darling))
    bundled(crate(darling_core))
    bundled(crate(darling_macro))
    bundled(crate(derive_builder))
    bundled(crate(derive_builder_core))
    bundled(crate(derive_builder_macro))
    bundled(crate(dispatch2))
    bundled(crate(equivalent))
    bundled(crate(errno))
    bundled(crate(fastrand))
    bundled(crate(filetime))
    bundled(crate(find-msvc-tools))
    bundled(crate(flate2))
    bundled(crate(fnv))
    bundled(crate(foreign-types))
    bundled(crate(foreign-types-shared))
    bundled(crate(fs-set-times))
    bundled(crate(getrandom))
    bundled(crate(getset))
    bundled(crate(hashbrown))
    bundled(crate(heck))
    bundled(crate(hex))
    bundled(crate(iana-time-zone))
    bundled(crate(iana-time-zone-haiku))
    bundled(crate(ident_case))
    bundled(crate(indexmap))
    bundled(crate(io-extras))
    bundled(crate(io-lifetimes))
    bundled(crate(ipnet))
    bundled(crate(itoa))
    bundled(crate(js-sys))
    bundled(crate(libc))
    bundled(crate(libredox))
    bundled(crate(libz-sys))
    bundled(crate(linux-raw-sys))
    bundled(crate(log))
    bundled(crate(maplit))
    bundled(crate(maybe-owned))
    bundled(crate(memchr))
    bundled(crate(miniz_oxide))
    bundled(crate(nix))
    bundled(crate(num-traits))
    bundled(crate(objc2))
    bundled(crate(objc2-encode))
    bundled(crate(oci-spec))
    bundled(crate(ocidir))
    bundled(crate(once_cell))
    bundled(crate(openssl))
    bundled(crate(openssl-macros))
    bundled(crate(openssl-sys))
    bundled(crate(pkg-config))
    bundled(crate(ppv-lite86))
    bundled(crate(proc-macro-error-attr2))
    bundled(crate(proc-macro-error2))
    bundled(crate(proc-macro2))
    bundled(crate(quote))
    bundled(crate(r-efi))
    bundled(crate(rand))
    bundled(crate(rand_chacha))
    bundled(crate(rand_core))
    bundled(crate(redox_syscall))
    bundled(crate(regex))
    bundled(crate(regex-automata))
    bundled(crate(regex-syntax))
    bundled(crate(rpm-qa))
    bundled(crate(rustix))
    bundled(crate(rustix-linux-procfs))
    bundled(crate(rustversion))
    bundled(crate(serde))
    bundled(crate(serde_core))
    bundled(crate(serde_derive))
    bundled(crate(serde_json))
    bundled(crate(shlex))
    bundled(crate(simd-adler32))
    bundled(crate(strsim))
    bundled(crate(strum))
    bundled(crate(strum_macros))
    bundled(crate(syn))
    bundled(crate(tar))
    bundled(crate(tempfile))
    bundled(crate(thiserror))
    bundled(crate(thiserror-impl))
    bundled(crate(unicode-ident))
    bundled(crate(unicode-xid))
    bundled(crate(uuid))
    bundled(crate(vcpkg))
    bundled(crate(wasi))
    bundled(crate(wasip2))
    bundled(crate(wasm-bindgen))
    bundled(crate(wasm-bindgen-macro))
    bundled(crate(wasm-bindgen-macro-support))
    bundled(crate(wasm-bindgen-shared))
    bundled(crate(windows-core))
    bundled(crate(windows-implement))
    bundled(crate(windows-interface))
    bundled(crate(windows-link))
    bundled(crate(windows-result))
    bundled(crate(windows-strings))
    bundled(crate(windows-sys))
    bundled(crate(windows-targets))
    bundled(crate(windows_aarch64_gnullvm))
    bundled(crate(windows_aarch64_msvc))
    bundled(crate(windows_i686_gnu))
    bundled(crate(windows_i686_gnullvm))
    bundled(crate(windows_i686_msvc))
    bundled(crate(windows_x86_64_gnu))
    bundled(crate(windows_x86_64_gnullvm))
    bundled(crate(windows_x86_64_msvc))
    bundled(crate(winx))
    bundled(crate(wit-bindgen))
    bundled(crate(xattr))
    bundled(crate(zerocopy))
    bundled(crate(zerocopy-derive))
    bundled(crate(zmij))
    chunkah
    chunkah(x86-64)

Comment 7 Fedora Admin user for bugzilla script actions 2026-02-05 16:20:07 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/chunkah

Comment 8 Fabio Valentini 2026-03-19 22:24:43 UTC
Beware that the License tag of the package is not correct (or at the very least, incomplete). The spec file includes the comment that there are more licenses due to statically linked dependencies, but they are not actually represented by the License tag. From the most recent build's build.log, those would be:

### BEGIN LICENSE SUMMARY ###
# (MIT OR Apache-2.0) AND Unicode-3.0
# 0BSD OR MIT OR Apache-2.0
# Apache-2.0
# Apache-2.0 OR MIT
# Apache-2.0 WITH LLVM-exception
# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
# BSD-2-Clause OR Apache-2.0 OR MIT
# LGPL-2.1-or-later
# MIT
# MIT OR Apache-2.0
# MIT OR Apache-2.0 OR LGPL-2.1-or-later
# MIT OR Zlib OR Apache-2.0
# Unlicense OR MIT
# Zlib
# Zlib OR Apache-2.0 OR MIT
###  END LICENSE SUMMARY  ###

All terms other than the project's own "MIT OR Apache-2.0" (and the equivalent "Apache-2.0 OR MIT") are not correctly represented in the spec file's License tag.

Comment 9 Jonathan Lebon 2026-03-20 18:22:06 UTC
Thank you for catching this, Fabio!

It's now fixed in v0.3.1.

Also, I forgot to close this bug. This is now shipping in Rawhide!


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