Bug 2569282

Summary: Review Request: the-level - Zero-copy CPU/GPU shared memory and an async 2D engine for i915
Product: [Fedora] Fedora Reporter: Americo Simoes <amexsimoes>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: fedora, package-review
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 177841    

Description Americo Simoes 2026-11-10 03:07:46 UTC
Spec URL: https://github.com/SimoesCTT/the-level/releases/download/v0.1.0/the-level.spec
SRPM URL: https://github.com/SimoesCTT/the-level/releases/download/v0.1.0/the-level-0.1.0-1.fc43.src.rpm

Description:
The Level provides two small C libraries for zero-copy CPU/GPU shared memory on Linux. chipmem allocates an i915 GEM object, exports it as a DMA-BUF, and provides one explicit coherency handoff. blit is a programmable async 2D engine on the same buffers. Verified on Intel Skylake-U.

This is my first package and I need a sponsor.

Fedora Account System Username: simoesctt

Comment 1 Fedora Review Service 2026-11-10 03:50:36 UTC
Cannot find any valid SRPM URL for this ticket. Common causes are:

- You didn't specify `SRPM URL: ...` in the ticket description
  or any of your comments
- The URL schema isn't HTTP or HTTPS
- The SRPM package linked in your URL doesn't match the package name specified
  in the ticket summary


---
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 4 Artur Frenszek-Iwicki 2026-11-10 20:39:36 UTC
> %autosetup -n %{name}-%{version}
%{name}-%{version} is the default value for the -n option, so you can drop it.

> export CFLAGS="%{optflags}"
You don't need to do this; CFLAGS/LDFLAGS are exported automatically.

> %check
> make -C chipmem check || :
Why run a test if you're going to ignore the failure?

> %files
> %dir %{_includedir}/the-level
> %{_includedir}/the-level/chipmem.h
> %{_includedir}/the-level/blit.h
Instead of using "%dir %{_includedir}/the-level and then listing the files inside,
you can just use "%{_includedir}/the-level", which will pull in the directory
with all the files inside it.

Also, consider moving the detailed description to the -devel package,
as this spec does not produce the main "the-level" package.

Comment 5 Americo Simoes 2026-11-10 21:40:01 UTC
Thanks for the review. All four points addressed:

1. %autosetup without -n.
2. Dropped the export CFLAGS line; the Makefiles append include paths
   with += and honor the automatic %{optflags}.
3. The chipmem test exits 77 when there is no render node (the mock
   chroot has no /dev/dri). The Makefile's check target now treats
   exit 77 as success, so the spec uses plain `make -C chipmem check`.
4. Dropped the -devel subpackage. The package is header-only; there is
   no main package to describe. The spec now produces a single
   `the-level` package that owns %{_includedir}/the-level, with
   %license and %doc.

New build:
Spec URL: https://download.copr.fedorainfracloud.org/results/simoesctt/the-level/fedora-43-x86_64/11301142-the-level/the-level.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/simoesctt/the-level/fedora-43-x86_64/11301142-the-level/the-level-0.1.0-1.fc43.src.rpm