Bug 2363205

Summary: Review Request: hyprgraphics - Graphics library for Hyprland
Product: [Fedora] Fedora Reporter: Jannik Müller <nighti>
Component: Package ReviewAssignee: Pavel Solovev <daron439>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: daron439, package-review
Target Milestone: ---Keywords: AutomationTriaged
Target Release: ---Flags: daron439: fedora-review+
Hardware: All   
OS: Linux   
URL: https://github.com/hyprwm/hyprgraphics
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-15 22:59:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The .spec file difference from Copr build 8984918 to 9052337 none

Description Jannik Müller 2025-04-30 21:08:34 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/nightishaman/hyprland/fedora-rawhide-x86_64/08984874-hyprgraphics/hyprgraphics.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/nightishaman/hyprland/fedora-rawhide-x86_64/08984874-hyprgraphics/hyprgraphics-0.1.3-1.fc43.src.rpm
Description: Hyprgraphics is a small C++ library with graphics / resource related utilities used across the hypr* ecosystem.
Fedora Account System Username: nightishaman

Hyprgraphics is needed to update the Hyprland package.

Comment 1 Fedora Review Service 2025-04-30 21:18:08 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8984918
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2363205-hyprgraphics/fedora-rawhide-x86_64/08984918-hyprgraphics/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 2 Pavel Solovev 2025-05-03 10:41:21 UTC
hyprgraphics.src: W: summary-ended-with-dot The hyprland cursor format, library and utilities.
And it's from the hyprcursor package. 


[!]: Package must own all directories that it creates.
     Note: Directories without known owners:
     /usr/include/hyprgraphics/cairo, /usr/include/hyprgraphics,
     /usr/include/hyprgraphics/image, /usr/include/hyprgraphics/color

Replace 
%{_includedir}/hyprgraphics/cairo/CairoSurface.hpp
%{_includedir}/hyprgraphics/color/Color.hpp
%{_includedir}/hyprgraphics/image/Image.hpp
with
%{_includedir}/hyprgraphics/


https://docs.fedoraproject.org/en-US/packaging-guidelines/#_test_suites
Add
%check
%ctest


Missing optional support for libjxl
https://github.com/hyprwm/hyprgraphics/blob/60754910946b4e2dc1377b967b7156cb989c5873/CMakeLists.txt#L63

Comment 3 Jannik Müller 2025-05-09 20:18:06 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/nightishaman/hyprland/fedora-rawhide-x86_64/09015606-hyprgraphics/hyprgraphics.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/nightishaman/hyprland/fedora-rawhide-x86_64/09015606-hyprgraphics/hyprgraphics-0.1.3-1.fc43.src.rpm
Description: Hyprgraphics is a small C++ library with graphics / resource related utilities used across the hypr* ecosystem.
Fedora Account System Username: nightishaman

Thanks for the review, I really appreciate it. I'm sorry for the errors. That was very embarrassing and I fixed it here.
Unfortunately, big endian architectures like s390x wont allow it to compile since hyprgraphics has an endianness check, so I disabled that architecture.

Comment 4 Pavel Solovev 2025-05-09 20:54:39 UTC
The failure is limited to jpeg - it's possible to skip that test like this:

%check
%ifarch s390x
rm tests/resource/images/hyprland.jpg
%endif
%ctest


You're using %if %{with libjxl}, but the build conditional(%bcond libjxl 1) is missing.

Comment 5 Jannik Müller 2025-05-15 21:03:43 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/nightishaman/hyprland/fedora-rawhide-x86_64/09052322-hyprgraphics/hyprgraphics.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/nightishaman/hyprland/fedora-rawhide-x86_64/09052322-hyprgraphics/hyprgraphics-0.1.3-1.fc43.src.rpm
Description: Hyprgraphics is a small C++ library with graphics / resource related utilities used across the hypr* ecosystem.
Fedora Account System Username: nightishaman

Fixed that.

Comment 6 Fedora Review Service 2025-05-15 21:15:47 UTC
Created attachment 2090025 [details]
The .spec file difference from Copr build 8984918 to 9052337

Comment 7 Fedora Review Service 2025-05-15 21:15:49 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9052337
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2363205-hyprgraphics/fedora-rawhide-x86_64/09052337-hyprgraphics/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 8 Pavel Solovev 2025-05-15 21:39:38 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.
[x]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[x]: ldconfig not called in %post and %postun for Fedora 28 and later.
[x]: Package does not contain any libtool archives (.la)
[x]: Package contains no static executables.
[x]: Rpath absent or only used for internal libs.
[x]: Development (unversioned) .so files in -devel subpackage, if present.

Generic:
[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "BSD 3-Clause License". 32 files have
     unknown license. Detailed output of licensecheck in
     /home/builduser/build/2363205-hyprgraphics/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[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.
[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 successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: If (and only if) the source package includes the text of the
     license(s) in its own file, then that file, containing the text of the
     license(s) for the package is included in %license.
[x]: 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 855 bytes in 1 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.
[x]: Final provides and requires are sane (see attachments).
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed
     files.
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Fully versioned dependency in subpackages if applicable.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: The placement of pkgconfig(.pc) files are correct.
[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: 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: hyprgraphics-0.1.3-1.fc43.x86_64.rpm
          hyprgraphics-devel-0.1.3-1.fc43.x86_64.rpm
          hyprgraphics-0.1.3-1.fc43.src.rpm
============================ rpmlint session starts ============================
rpmlint: 2.7.0
configuration:
    /usr/lib/python3.13/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/tmpzy3fi7m4')]
checks: 32, packages: 3

hyprgraphics-devel.x86_64: W: no-documentation
 3 packages and 0 specfiles checked; 0 errors, 1 warnings, 21 filtered, 0 badness; has taken 0.2 s 




Rpmlint (debuginfo)
-------------------
Checking: hyprgraphics-debuginfo-0.1.3-1.fc43.x86_64.rpm
============================ rpmlint session starts ============================
rpmlint: 2.7.0
configuration:
    /usr/lib/python3.13/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/tmpa9qubibu')]
checks: 32, packages: 1

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





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

hyprgraphics-devel.x86_64: W: no-documentation
 3 packages and 0 specfiles checked; 0 errors, 1 warnings, 23 filtered, 0 badness; has taken 0.3 s 



Source checksums
----------------
https://github.com/hyprwm/hyprgraphics/archive/v0.1.3/hyprgraphics-0.1.3.tar.gz :
  CHECKSUM(SHA256) this package     : 0e11457135a9e7160cf147d361fae3c5dc40035a4ebd894c5d409baa896f43cf
  CHECKSUM(SHA256) upstream package : 0e11457135a9e7160cf147d361fae3c5dc40035a4ebd894c5d409baa896f43cf


Requires
--------
hyprgraphics (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libcairo.so.2()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3.1)(64bit)
    libhyprutils.so.1()(64bit)
    libjpeg.so.62()(64bit)
    libjpeg.so.62(LIBJPEGTURBO_6.2)(64bit)
    libjpeg.so.62(LIBJPEG_6.2)(64bit)
    libjxl.so.0.11()(64bit)
    libjxl.so.0.11(JXL_0)(64bit)
    libjxl_threads.so.0.11()(64bit)
    libjxl_threads.so.0.11(JXL_0)(64bit)
    libm.so.6()(64bit)
    libmagic.so.1()(64bit)
    libspng.so.0()(64bit)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.9)(64bit)
    libwebp.so.7()(64bit)
    rtld(GNU_HASH)

hyprgraphics-devel (rpmlib, GLIBC filtered):
    /usr/bin/pkg-config
    hyprgraphics(x86-64)
    libhyprgraphics.so.0()(64bit)



Provides
--------
hyprgraphics:
    hyprgraphics
    hyprgraphics(x86-64)
    libhyprgraphics.so.0()(64bit)

hyprgraphics-devel:
    hyprgraphics-devel
    hyprgraphics-devel(x86-64)
    pkgconfig(hyprgraphics)



Generated by fedora-review 0.10.0 (e79b66b) last change: 2023-07-24
Command line :/usr/bin/fedora-review -b 2363205
Buildroot used: fedora-rawhide-x86_64
Active plugins: Shell-api, Generic, C/C++
Disabled plugins: Java, Ocaml, fonts, SugarActivity, Perl, PHP, R, Python, Haskell
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH

Approved.

Comment 9 Jannik Müller 2025-05-15 21:52:39 UTC
Thanks!

Comment 10 Fedora Admin user for bugzilla script actions 2025-05-15 22:25:06 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/hyprgraphics

Comment 11 Fedora Update System 2025-05-15 22:40:05 UTC
FEDORA-2025-626b5391e5 (hyprgraphics-0.1.3-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-626b5391e5

Comment 12 Fedora Update System 2025-05-15 22:59:16 UTC
FEDORA-2025-626b5391e5 (hyprgraphics-0.1.3-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.