https://bugzilla.redhat.com/show_bug.cgi?id=2540370



--- Comment #1 from Adam Jackson <[email protected]> ---
fedora-review(1) highlights below. 

- Header files in -devel subpackage, if present.
  Note: intel-dpcpp :
  /usr/lib64/dpcpp/lib/clang/22/include/__clang_cuda_builtin_vars.h [...]

Here and generally we should probably follow the example of how
rocm-compilersupport bundles its llvm. For rocm the Requires chain is hipcc ->
rocm-device-libs -> rocm-clang-devel.

- Development (unversioned) .so files in -devel subpackage, if present.
  Note: Unversioned so-files directly in %_libdir.
  See: https://docs.fedoraproject.org/en-US/packaging-
  guidelines/#_devel_packages

This seems to be complaining about the various collector plugins,
libsycl_profiler_collector.so and friends. I suspect these are in %{_libdir}
because they're dlopen'd without an explicit path; but, depending where that
dlopen call actually is, DT_RUNPATH might already be in the calling object and
we could put them in %{_libdir}/dpcpp/lib instead.

- Static libraries in -static or -devel subpackage, providing -devel if
  present.
  Note: Package has .a files: intel-dpcpp, intel-dpcpp-devel, intel-dpcpp-
  xptifw-devel. Illegal package name: intel-dpcpp. Does not provide
  -static: intel-dpcpp.
  See: https://docs.fedoraproject.org/en-US/packaging-
  guidelines/#packaging-static-libraries

This is about %{_libdir}/dpcpp/lib/clang/22/lib/*.a; here again, follow
rocm-compilersupport.

None of the automated review checks fail. Non-automated checks:

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

C/C++:
[x]: Package does not contain kernel modules.

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.
[X]: License file installed when any subpackage combination is installed.
[X]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.
[!]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/lib64/dpcpp/lib,
     /usr/lib64/dpcpp

See the rocm-llvm-filesystem package.

[!]: %build honors applicable compiler flags or justifies otherwise.

We shouldn't disable debuginfo. This does use a lot of disk space, but most of
that is eliminated if you build with -DBUILD_SHARED_LIBS=ON and set an
appropriate symbol version string so as not to conflict with LLVM_22.1 or
whatever from the base llvm release.

[!]: Package contains no bundled libraries or specifies bundled libraries
     with Provides: bundled(<libname>) if unbundling is not possible.

Mostly correct, but rocm-compilersupport has bundled(llvm-project) =
%{llvm_maj_ver} so we probably should too.

[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

As above.

[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.
[!]: Useful -debuginfo package or justification otherwise.

As above.

[!]: Package is not known to require an ExcludeArch tag.

Package has ExclusiveArch: x86_64, which is suboptimal. At a minimum we should
build this for ppc64le and aarch64 as well... but given that we're not gating
the build on passing the self-tests I feel like we should just remove the
ExclusiveArch line.

[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 26656 bytes in 2 files.
[x]: Package complies to the Packaging Guidelines

===== 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).
[!]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in intel-
     dpcpp-runtime , intel-dpcpp-devel , intel-dpcpp-xptifw , intel-dpcpp-
     xptifw-devel
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[!]: %check is present and all tests pass.

Have not tested whether this passes yet. rocm-compilersupport doesn't seem to
run this, but base llvm does... up to you, but if you can tolerate the
increased build time I'd recommend it.

[x]: Packages should try to preserve timestamps of original installed
     files.
[x]: Spec use %global instead of %define unless justified.
     Note: %define requiring justification: %define autorelease(e:s:pb:n)
     %{?-p:0.}%{lua:

False positive warning, this is from the system rpm macros and isn't your
fault.


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2540370

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202540370%23c1

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to