Bug 2443333 - Review Request: rocm-filesystem7.2 - ROCm directories
Summary: Review Request: rocm-filesystem7.2 - ROCm directories
Keywords:
Status: RELEASE_PENDING
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jeremy Newton
QA Contact: Fedora Extras Quality Assurance
URL: https://fedoraproject.org
Whiteboard:
Depends On:
Blocks: 2443331
TreeView+ depends on / blocked
 
Reported: 2026-02-27 15:33 UTC by Tom.Rix
Modified: 2026-03-10 16:20 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
alexjnewt: fedora-review+


Attachments (Terms of Use)

Comment 1 Jeremy Newton 2026-02-27 16:15:54 UTC
wouldn't the convention be rocm-filesystem7.2?

E.g. see llvm packages, where it's llvm21, llvm20, llvm19, etc

Comment 2 Tom.Rix 2026-02-27 16:24:41 UTC
ROCm upstream uses rocm-<MAJOR>.<MINOR>
So this naming is consistent with upstream.

Comment 3 Jeremy Newton 2026-02-27 19:07:02 UTC
Yes, but llvm doesn't use the extra "-"

Upstream rocm vendor packages also do this too, e.g.:

https://repo.radeon.com/rocm/rhel10/7.2/main/rocm7.2.0-7.2.0.70200-43.el10.x86_64.rpm

where rocm7.2.0 is the package name.

Comment 4 Jeremy Newton 2026-02-27 19:10:41 UTC
to clarify, my suggestion is:

-%global pkg_suffix -%{rocm_release}
+%global pkg_suffix %{rocm_release}

To align with upstream vendor packages and other fedora packages.
Even GCC does this where packages have the version tacked on without a separator.

Comment 5 Tom.Rix 2026-02-27 20:26:54 UTC
That would break a lot of things that use it in paths.
Let me think about this and resubmit

Comment 6 Fedora Review Service 2026-02-28 03:22:56 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10178451
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2443333-rocm-filesystem-7.2/fedora-rawhide-x86_64/10178451-rocm-filesystem-7.2/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 7 Tom.Rix 2026-02-28 14:40:51 UTC
Spec URL: https://trix.fedorapeople.org/rocm-filesystem7.2.spec
SRPM URL: https://trix.fedorapeople.org/rocm-filesystem7.2-7.2.0-3.fc45.src.rpm

For the pkg_suffix change.
I earlier, I confused pkg_suffix and pkg_prefix.
This is a pretty easy change.
I am working on updating the other packages.

Comment 8 Fedora Review Service 2026-03-01 04:37:09 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10179947
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2443333-rocm-filesystem7.2/fedora-rawhide-x86_64/10179947-rocm-filesystem7.2/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 9 Jeremy Newton 2026-03-09 12:10:06 UTC
Fedora review flagged some directories:
     Note: Directories without known owners: /usr/lib64/rocm,
     /usr/lib64/rocm/rocm-7.2/lib, /usr/lib64/rocm/rocm-7.2

rocm-llvm-filesystem owns /usr/lib64/rocm (I think), although it's an odd choice architecturally.
You need to make sure you add a requires rocm-llvm-filesystem to this package avoid directory orphaning.
The other two needs to be added to this package:

%dir %{pkg_prefix}
%dir %{pkg_prefix}/%{pkg_libdir}

Other than that, it's good

===== 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]: 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: Checking patched sources after %prep for licenses. No licenses
     found. Please check the source files for licenses manually.
[!]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/lib64/rocm/rocm-7.2/lib,
     /usr/lib64/rocm/rocm-7.2
[!]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/lib64/rocm,
     /usr/lib64/rocm/rocm-7.2/lib, /usr/lib64/rocm/rocm-7.2
[x]: 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.
[x]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[x]: Requires correct, justified where necessary.
[x]: 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
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[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]: The License field must be a valid SPDX expression.
[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:
[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).
[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.
[-]: 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.
[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]: Spec use %global instead of %define unless justified.

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

Generic:
[x]: Rpmlint is run on all installed packages.
     Note: No rpmlint messages.

Comment 10 Tom.Rix 2026-03-09 21:49:42 UTC
SRPM URL: https://trix.fedorapeople.org/rocm-filesystem7.2-7.2.0-3.fc45.src.rpm
Spec URL: https://trix.fedorapeople.org/rocm-filesystem7.2.spec

To get who own /usr/lib64/rocm/rocm-7.2 and /usr/lib64/rocm/rocm-7.2/lib
I add these
%if %{with compat}
%dir %{pkg_prefix}/
%dir %{pkg_prefix}/%{pkg_libdir}
%endif

To who owns /usr/lib64/rocm, I added this

%if %{with compat}
BuildRequires: rocm-filsystem
Requires: rocm-filesystem
%endif

In the normal case this is the line in %files

%dir %{pkg_prefix}/%{pkg_libdir}/rocm

rocm-llvm-filesystem used to own this, now it owns only the llvm/* dirs

Comment 11 Fedora Review Service 2026-03-09 21:52:45 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10205150
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2443333-rocm-filesystem7.2/fedora-rawhide-x86_64/10205150-rocm-filesystem7.2/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 12 Jeremy Newton 2026-03-10 00:16:05 UTC
Thanks, approved

Comment 13 Fedora Admin user for bugzilla script actions 2026-03-10 16:20:35 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rocm-filesystem7.2


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