DFSG NEW Queue

DFSG, Licensing & New Packages Team

Review: amd-device-libs-21 7.1.1+ds-1~exp2

Package Information

DescriptionAMD specific device-side language runtime libraries

Set of AMD specific device-side language runtime libraries, specifically: the Open Compute library controls, the Open Compute Math library, the Open Compute Kernel library, the OpenCL built-in library, the HIP built-in library, and the Heterogeneous Compute built-in library.

MaintainerDebian ROCm Team <debian-ai@lists.debian.org>
Changed ByCordell Bloor <cgmb@debian.org>
Sponsorcgmb@debian.org
Distributionexperimental
Architectureany
VCSgit: https://salsa.debian.org/rocm-team/amd-device-libs.git (browse)
Trackerhttps://tracker.debian.org/pkg/amd-device-libs-21
Uploaded10 days ago

New Package Report

.changes◂
Architecturesource amd64
Distributionexperimental
DateFri, 13 Nov 2026 11:39:24 -0600
Sourceamd-device-libs-21
Version7.1.1+ds-1~exp2
Changed-ByCordell Bloor <cgmb@debian.org>
Changelog◂
amd-device-libs-21 (7.1.1+ds-1~exp2) experimental; urgency=medium
 .
   * d/copyright: add SunPro licence notice for erf/lgamma
     implementation files
 .
 amd-device-libs-21 (7.1.1+ds-1~exp1) experimental; urgency=medium
 .
   * Initial packaging
     * Move rocm-device-libs-21 binary package out of src:rocm-llvm
       into src:amd-device-libs-21
.dsc◂
Priorityoptional
Componentmain
Package-Listrocm-device-libs-21 deb libs optional arch=any
Sectionlibs
debian/copyright◂
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: llvm-project
Source: https://github.com/ROCm/llvm-project
Files-Excluded: amd/comgr
                amd/git-hooks
                amd/hipcc
                amd/README.md
                amd/utils
                .azuredevops
                .ci
                .clang-format
                .clang-tidy
                .git-blame-ignore-revs
                .gitattributes
                .github
                .gitignore
                .mailmap
                CODE_OF_CONDUCT.md
                CONTRIBUTING.md
                LICENSE.TXT
                README.md
                SECURITY.md
                bolt
                clang
                clang-tools-extra
                cmake
                compiler-rt
                cross-project-tests
                flang
                flang-rt
                libc
                libclc
                libcxx
                libcxxabi
                libunwind
                lld
                lldb
                llvm
                llvm-libgcc
                mlir
                offload
                openmp
                polly
                pstl
                pyproject.toml
                revert_patches.txt
                runtimes
                third-party
                utils
Comment: These are LLVM sources from upstream repository, but
 we only want to build the device-libs component. We isolate the
 device-libs for two reasons: (1) there's a B-D chain where comgr
 needs rocr-runtime, which needs the device-libs, which is cyclical
 if comgr and device-libs are produced by from the same source
 package, and (2) the device-libs binaries are compiled to LLVM bitcode
 and are therefore only guaranteed to be compatible with the LLVM
 major version that built them.

Files: amd/device-libs/*
Copyright: 2014-2016, Advanced Micro Devices, Inc.
License: NCSA

Files: amd/device-libs/ocml/src/erfcD.cl
       amd/device-libs/ocml/src/erfcF.cl
       amd/device-libs/ocml/src/lgamma_rD.cl
       amd/device-libs/ocml/src/lgamma_rF.cl
Copyright: 2014-2016, Advanced Micro Devices, Inc.
           1993, Sun Microsystems, Inc.
License: NCSA and SunPro
Comment: These files began with Sun's netlib erf/lgamma implementations and
 were extended by AMD. AMD's contributions are distributed under NCSA, while
 the SunPro permissive notice is retained for the portions derived from Sun's
 original code, as required by that notice.

Files: debian/*
Copyright: 2022, Maxime Chambonnet <maxzor@maxzor.eu>
           2022-2023, Étienne Mollier <emollier@debian.org>
           2022-2026, Cordell Bloor <cgmb@debian.org>
           2024, Xuanteng Huang <xuanteng.huang@outlook.com>
License: Expat
Comment: The debian metafiles originated from src:rocm-llvm, but have had
 further modifications and updates.

License: SunPro
 Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
 .
 Developed at SunPro, a Sun Microsystems, Inc. business.
 Permission to use, copy, modify, and distribute this
 software is freely granted, provided that this notice
 is preserved.

License: Expat
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 .
 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.

License: NCSA
 University of Illinois/NCSA
 Open Source License
 .
 All rights reserved.
 .
 Permission is hereby granted, free of charge, to any person obtaining a copy of
 this software and associated documentation files (the "Software"), to deal with
 the Software without restriction, including without limitation the rights to
 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 of the Software, and to permit persons to whom the Software is furnished to do
 so, subject to the following conditions:
 .
 * Redistributions of source code must retain the above copyright notice,
   this list of conditions and the following disclaimers.
 * Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimers in the
   documentation and/or other materials provided with the distribution.
 * Neither the names of the LLVM Team, University of Illinois at
   Urbana-Champaign, nor the names of its contributors may be used to
   endorse or promote products derived from this Software without specific
   prior written permission.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
 SOFTWARE.

DFSG Assistant LLM REVIEW 0 blocker, 0 important, 2 minor

This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.

Reviewed 10 days ago.

Report◂

DFSG NEW review for amd-device-libs-21 version 7.1.1+ds-1~exp2

Summary

  • Licensing is DFSG-compliant and debian/copyright is accurate: Yes
  • Packaging is of good quality: Yes
  • Issues: 0 blocker, 0 important, 2 minor
  • debian/watch: version 5
  • debian/copyright: machine-readable
  • Scan before the review: nothing found

Licensing

The source is only amd/device-libs (the LLVM tree named in Files-Excluded is gone), and every file there is under AMD's University of Illinois/NCSA licence, given in amd/device-libs/LICENSE.TXT and reproduced in full in debian/copyright. Four files in ocml/src (erfcD.cl, erfcF.cl, lgamma_rD.cl, lgamma_rF.cl) also carry Sun's 1993 netlib permission notice; debian/copyright has a separate stanza for them, names both holders, and includes the SunPro text. The file is DEP-5 with the correct Format line, the debian/* stanza covers the packaging, all three licence texts are present, and no non-free, unlicensed or provenance-unclear files were found.

Packaging

Modern, clean packaging: compat 14 with debhelper-compat, an out-of-source CMake build, current Standards-Version 4.7.4, correct Vcs-* and DEP-12 metadata, a single DEP-3-style backport marked Applied-Upstream, and a binary that only carries data files. Two minor defects: the shipped AMDDeviceLibsConfig.cmake resolves its imported targets to /usr/lib/amdgcn/bitcode, where nothing is installed, and the build directory is declared only for configure/build/install, so the upstream ctest suite never runs and build.device-libs is never cleaned.

Issues

minor packaging 1. Installed AMDDeviceLibsConfig.cmake points its imported targets at /usr/lib/amdgcn/bitcode, which the package does not install ◂
  • Files: debian/rocm-device-libs-21.install:1-2, amd/device-libs/cmake/Packages.cmake:17,24-45, amd/device-libs/AMDDeviceLibsConfig.cmake.in:11-12
  • Basis: inferred from what was read, not seen directly
  • Evidence: install file: usr/lib/${DEB_HOST_MULTIARCH}/cmake/AMDDeviceLibs usr/lib/llvm-21/lib/cmake; Packages.cmake: set(PACKAGE_PREFIX ${CMAKE_INSTALL_LIBDIR}/cmake/AMDDeviceLibs), string(REGEX REPLACE "/" ";" count "${PACKAGE_PREFIX}"), then one get_filename_component(... PATH) per component and IMPORTED_LOCATION "${AMD_DEVICE_LIBS_PREFIX}/amdgcn/bitcode/..."
  • Problem: dh_auto_configure configures with -DCMAKE_INSTALL_LIBDIR=lib/<multiarch> (Debian::Debhelper::Buildsystem::cmake), so the generated config walks up four directories, one per component of lib/x86_64-linux-gnu/cmake/AMDDeviceLibs. The .install relocates the file to /usr/lib/llvm-21/lib/cmake/AMDDeviceLibs, one level shallower, so find_package(AMDDeviceLibs) computes /usr/lib as the prefix and every imported static target as /usr/lib/amdgcn/bitcode/.bc. The bitcode is installed to /usr/lib/llvm-21/lib/clang/21/amdgcn/bitcode, so the paths do not exist; even at the depth the code assumes, the '/amdgcn/bitcode' suffix under the prefix is not where this package puts the bitcode. Any downstream CMake project that uses the shipped package gets targets pointing at nonexistent files.
  • Fix: Make the generated install-tree config point at the clang resource directory: patch Packages.cmake/AMDDeviceLibsConfig.cmake.in (e.g. derive the prefix correctly despite the relocation and use lib/clang/21/amdgcn/bitcode as the suffix), or install the config at the depth its own computation expects with the bitcode below that prefix. Verify with a small find_package(AMDDeviceLibs REQUIRED CONFIG) consumer.
minor packaging 2. dh_auto_test is never given the build directory, so the upstream ctest suite does not run; dh_auto_clean likewise leaves build.device-libs behind ◂
  • Files: debian/rules:13-27
  • Basis: checked, in the package or with a reference tool
  • Evidence: override_dh_auto_configure: dh_auto_configure --buildsystem=cmake --sourcedir=amd/device-libs --builddir=build.device-libs and override_dh_auto_build: dh_auto_build --builddir=build.device-libs, while %: is plain dh $@; the only CMakeLists.txt is amd/device-libs/CMakeLists.txt. dh_auto_test's own header on the reviewing system says PROMISE: DH NOOP WITHOUT cli-options(BUILDSYSTEM) buildsystem(test), and Debian::Debhelper::Buildsystem::cmake's check_auto_buildable() requires a CMakeLists.txt in the source directory it is given (the top level, here) or a Makefile in the default obj- directory.
  • Problem: Upstream enables testing (amd/device-libs/CMakeLists.txt: enable_testing(), add_subdirectory(test/compile)), which sets up the constant-fold and ISA compile tests, but neither dh_auto_test nor dh_auto_clean is told about build.device-libs. dh therefore skips both: the tests never run during the build (and there is no debian/tests either, so nothing tests the package at all), and after debian/rules clean the build.device-libs/ tree with its CMakeCache.txt and generated bitcode is left in the source tree, where a later source build from that tree would take it into the .debian.tar.
  • Fix: Add override_dh_auto_test: dh_auto_test --buildsystem=cmake --sourcedir=amd/device-libs --builddir=build.device-libs (or run ctest there), and remove build.device-libs in dh_auto_clean or via debian/clean. A small autopkgtest that compiles one kernel would also cover this in the archive.
Verified ◂
  • debian/copyright is DEP-5 with Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/, two Files stanzas plus debian/*, and stand-alone License paragraphs for NCSA, SunPro and Expat; the NCSA and SunPro grants and the Expat notice are reproduced in full.
  • The tree holds only amd/device-libs (712 files); every path in Files-Excluded is absent, and the top-level utils pattern does not exclude amd/device-libs/utils/ (patterns are anchored at the top of the tree, copyright-format 6.9).
  • The only copyright holders in the tree are Advanced Micro Devices, Inc. (LICENSE.TXT 2014-2016, ockl/inc/amd_hsa_*.h and hsa.h 2014-2015) and Sun Microsystems, Inc. (1993, in ocml/src/erfcD.cl, erfcF.cl, lgamma_rD.cl, lgamma_rF.cl); both are named in debian/copyright. The prescan likewise found every holder named, and it listed no files for me to account for.
  • All other files carry the AMD/NCSA boilerplate This file is distributed under the University of Illinois Open Source License. See LICENSE.TXT for details. or no header at all (LICENSE.TXT, README.md, doc/OCML.md, doc/OCKL.md, ockl/src/*.ll, opencl/src/devenq/devenq.h, .clang-format, .gitignore); all are covered by Files: amd/device-libs/* with License: NCSA.
  • The SunPro stanza quotes Developed at SunPro, a Sun Microsystems, Inc. business., the wording in erfcD.cl/erfcF.cl; lgamma_rD.cl and lgamma_rF.cl say Developed at SunSoft instead. The permission text is otherwise identical, each file still carries its own notice, and the stanza's holder and terms are right, so this is not a licensing defect.
  • No images, fonts, PDFs, archives or built objects: the tree is .cl/.h/.ll/.cmake/.md/.txt text. The .ll files (ockl/src/base-image-intrinsics.ll and siblings) are checked-in IR sources beginning with target datalayout/triple, not build products.
  • debian/patches/cmake-4-compat.patch is a backport of upstream commit a18cc4c7cb51 (has Applied-Upstream), touches only amd/device-libs/cmake/OCL.cmake and adds a CMake >= 4 guard; it brings in no third-party file.
  • Build-Depends match the build: find_package(Clang) needs libclang-21-dev (its ClangConfig/ClangTargets define the imported clang executable used via $<TARGET_FILE:clang>), llvm-21-dev pulls llvm-21 and llvm-21-tools (llvm-link, opt, llvm-objdump, FileCheck), and clang-21 provides /usr/lib/llvm-21/bin/clang.
  • At compat 14 dh_install expands ${DEB_HOST_MULTIARCH} in .install files (dh_install(1), compat 13 onwards), and dh_gencontrol injects the relationship substvars itself, so the explicit ${shlibs:Depends}/${misc:Depends} are harmless.
  • Standards-Version 4.7.4 matches the reviewing system's Policy (4.7.4.1), so it is current.
  • The bitcode is installed to /usr/lib/llvm-21/lib/clang/21/amdgcn/bitcode, the clang resource directory; on the reviewing system /usr/lib/llvm-21/lib/clang/21 has no amdgcn entry, so there is no file conflict with clang-21/llvm-21, and the CMake dir destination /usr/lib/llvm-21/lib/cmake sits next to llvm and clang (only the path computation inside the config is wrong, see the issue).
  • debian/not-installed: usr/share/doc/* matches only the usr/share/doc/ROCm-Device-Libs/LICENSE.TXT that the upstream install rule writes (d/copyright carries the licence); the usr/bin/hipconfig, usr/bin/hipvars.pm and usr/hip/* entries are leftovers from src:rocm-llvm and match nothing built here (harmless).
  • Read debian/{changelog,control,rules,copyright,README.source,gbp.conf,salsa-ci.yml,ci-piuparts.sh,files-excluded.sh,not-installed,rocm-device-libs-21.install,source/format,upstream/metadata} and the patch; the experimental changelog (7.1.1+ds-1~exp1/exp2), the move of the rocm-device-libs-21 binary out of src:rocm-llvm and the gbp pristine-tar/branch setup are consistent.
  • rocm-device-libs-21 7.0.2+dfsg-4 is in the archive from src:rocm-llvm (apt-cache); the new binary has the same name and a higher version, so it upgrades it without Breaks/Replaces.
  • uscan found upstream releases with debian/watch; a newer upstream version is available (upstream 7.2.4, packaged 7.1.1+ds), which is not a fault of the package.
Not confirmed ◂
  • The AMDDeviceLibsConfig.cmake failure was derived from reading Packages.cmake and debhelper's cmake build system, not from a build; a find_package(AMDDeviceLibs) consumer would show it.
  • Whether the config is consumed by any package in the archive (and whether the rocm-llvm-built 7.0.2 copy had the same problem) could not be checked: apt-cache shows control fields only, not file lists or paths.
  • Not built or run: the test suite and the bitcode contents were not executed.
Proposed changes ◂

None.

Uploader's response to the LLM review

The LLM has identified real issues, but I do not believe they are blocking. The AMDDeviceLibsConfig.cmake bug is probably real, but it has affected the device-libs packages since Trixie and AFAIK nobody noticed. I'll try to fix it before my upload to unstable, but if I cannot then I will file a bug. I fixed the lack of tests and incomplete dh_auto_clean in my src:amd-device-libs-22 upload, and I will apply those same fixes to src:amd-device-libs-21 during the unstable upload. The AMDDeviceLibsConfig.cmake and dh_auto_clean problems identified by the LLM also affect the existing rocm-device-libs-21 package from src:rocm-llvm on unstable that I am replacing, so we're not introducing new bugs.

— Cordell Bloor (cgmb), 10 days ago

Review Information

accepted — allocated to awm 2 days ago, started 2 days ago, completed 2 days ago.

Final Comment

Other Reviews of this Package

VersionHashAllocatedCompletedReviewerStatusDetails
7.1.1+ds-1~exp1 1d345402… 2026-11-13 08:07 2026-11-13 08:07 dfsg-uploader rejected VIEW

Back to Dashboard | View all reviews for this package