[neon/backports-noble/cpuinfo-noble/Neon/unstable] debian: backport cpuinfo for onnxruntime for pipewire for kwin

Carlos De Maine null at kde.org
Sat Sep 26 08:50:45 BST 2026


Git commit 3af009e6bf933fccd3a9acec1599cf33df74836e by Carlos De Maine.
Committed on 26/09/2026 at 07:50.
Pushed by carlosdem into branch 'Neon/unstable'.

backport cpuinfo for onnxruntime for pipewire for kwin

A  +257  -0    debian/changelog
A  +129  -0    debian/control
A  +57   -0    debian/copyright
A  +1    -0    debian/cpuinfo.install
A  +4    -0    debian/cpuinfo.lintian-overrides
A  +1    -0    debian/libcpuinfo-dev.docs
A  +4    -0    debian/libcpuinfo-dev.install
A  +1    -0    debian/libcpuinfo0.install
A  +44   -0    debian/libcpuinfo0.symbols
A  +13   -0    debian/not-installed
A  +28   -0    debian/patches/Fix-cmake-config-install.patch
A  +13   -0    debian/patches/cmake-soversion.patch
A  +17   -0    debian/patches/fix-ftbts-implicit-function-syscall.patch
A  +4    -0    debian/patches/series
A  +15   -0    debian/patches/unused/skip-core-known-uarch-test.patch
A  +23   -0    debian/rules
A  +1    -0    debian/source/format
A  +20   -0    debian/tests/control
A  +4    -0    debian/watch

https://invent.kde.org/neon/backports-noble/cpuinfo-noble/-/commit/3af009e6bf933fccd3a9acec1599cf33df74836e

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..dadd077
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,257 @@
+cpuinfo (0.0~git20250327.39ea79a-1) unstable; urgency=medium
+
+  * New upstream version 0.0~git20250327.39ea79a.
+
+ -- Shengqi Chen <harry at debian.org>  Thu, 10 Apr 2025 13:54:37 +0800
+
+cpuinfo (0.0~git20250203.aaac07e-1) unstable; urgency=medium
+
+  * New upstream version 0.0~git20250203.aaac07e
+  * d/control: add myself in uploaders
+
+ -- Shengqi Chen <harry at debian.org>  Wed, 12 Feb 2025 23:38:33 +0800
+
+cpuinfo (0.0~git20250110.8a1772a-1) unstable; urgency=medium
+
+  * Team upload.
+  * New upstream version 0.0~git20250110.8a1772a
+    Please use this version for PyTorch/v2.6+ release
+  * d/patches: remove patches applied by upstream
+  * d/control: use correct std-ver 4.7.0
+  * Switch cmake backend to ninja
+  * Fix incorrect architectures in cpuinfo.lintian-overrides
+
+ -- Shengqi Chen <harry at debian.org>  Thu, 23 Jan 2025 17:00:28 +0800
+
+cpuinfo (0.0~git20240830.fa1c679-5) unstable; urgency=medium
+
+  * Team upload.
+  * d/test: remove non-existent cpuinfo-dump, add names to tests
+  * d/patches: remove useless disable-auxv-dump-on-arm.patch
+
+ -- Shengqi Chen <harry-chen at outlook.com>  Sat, 14 Sep 2024 22:45:47 +0800
+
+cpuinfo (0.0~git20240830.fa1c679-4) unstable; urgency=medium
+
+  * Team upload.
+  * d/symbols: add one new symbol on arm platforms
+  * d/lintian-overrides: add arch-dependent tags
+  * d/patches: backport upstream patch to fix bug on non-SVE arm hardware
+
+ -- Shengqi Chen <harry-chen at outlook.com>  Thu, 12 Sep 2024 22:13:07 +0800
+
+cpuinfo (0.0~git20240830.fa1c679-3) unstable; urgency=medium
+
+  * Team upload.
+  * d/patches: update patch to fix FTBTS on unsupported platforms
+  * d/tests: run cpuinfo-dump on ARM platforms
+  * d/patches: add patch to remove auxv-dump on ARM platforms
+
+ -- Shengqi Chen <harry-chen at outlook.com>  Thu, 05 Sep 2024 14:30:20 +0800
+
+cpuinfo (0.0~git20240830.fa1c679-2) unstable; urgency=medium
+
+  * d/control: compile cpuinfo on riscv64
+  * d/tests: only run tests on their supported architectures
+  * d/rules: allow dh_auto_test to fail, remove relative patch
+  * d/patches: add patch to fix FTBTS on some officially-unsupported
+    platforms
+
+ -- Shengqi Chen <harry-chen at outlook.com>  Wed, 04 Sep 2024 17:56:47 +0800
+
+cpuinfo (0.0~git20240830.fa1c679-1) unstable; urgency=medium
+
+  * Team upload.
+  * New upstream version 0.0~git20240830.fa1c679
+    Please use this version for PyTorch/v2.4.x
+  * d/patches: refresh existing patches, fix Forwarded header
+  * d/control: bump std-ver to 4.7.0.1 (no changes required)
+
+ -- Shengqi Chen <harry-chen at outlook.com>  Tue, 03 Sep 2024 00:47:13 +0800
+
+cpuinfo (0.0~git20231104.d6860c4-1~exp1) experimental; urgency=medium
+
+  * New upstream version 0.0~git20231104.d6860c4
+    + Please pin to this snapshot for PyTorch/v2.3.X
+  * Rebase and refresh existing patches.
+  * Deprecate clog following upstream.
+  * Refresh symbols control file.
+  * Upload to experimental.
+
+ -- Mo Zhou <lumin at debian.org>  Thu, 11 Jul 2024 00:54:38 -0400
+
+cpuinfo (0.0~git20230113.6481e8b-2) unstable; urgency=medium
+
+  * Upload to unstable.
+
+ -- Mo Zhou <lumin at debian.org>  Sun, 31 Dec 2023 17:09:47 -0500
+
+cpuinfo (0.0~git20230113.6481e8b-1) experimental; urgency=medium
+
+  * New upstream version 0.0~git20230113.6481e8b
+    Please pin to this snapshot for PyTorch/v2.1.X release.
+  * Quilt refresh patchset.
+  * Upload to experimental.
+
+ -- Mo Zhou <lumin at debian.org>  Thu, 28 Dec 2023 14:44:52 -0500
+
+cpuinfo (0.0~git20220819.8ec7bd9-3) unstable; urgency=medium
+
+  * Skip the uarch test which fails on P+E Intel CPUs.
+    It fails simply because the upstream has not yet added the
+    code for the new architectures. But at least the ISA and
+    Cache detection are still functional on the new CPUs.
+    (Closes: #1024774)
+
+ -- Mo Zhou <lumin at debian.org>  Mon, 11 Sep 2023 20:12:00 -0400
+
+cpuinfo (0.0~git20220819.8ec7bd9-2) unstable; urgency=medium
+
+  * Upload to unstable.
+
+ -- Mo Zhou <lumin at debian.org>  Fri, 18 Aug 2023 15:53:18 -0400
+
+cpuinfo (0.0~git20220819.8ec7bd9-1) experimental; urgency=medium
+
+  * Upload to experimental.
+  * New upstream version 0.0~git20220819.8ec7bd9
+  * Please pin to this snapshot for PyTorch/v2.0.1 release.
+  * Remove the shlibs:Depends from -dev package.
+  * Update lintian overrides.
+
+ -- Mo Zhou <lumin at debian.org>  Sun, 25 Jun 2023 21:03:28 +0000
+
+cpuinfo (0.0~git20220617.082deff-2) unstable; urgency=medium
+
+  * Team upload.
+  * Install cmake files in the correction location (Closes: #1024772)
+
+ -- Dylan Aïssi <daissi at debian.org>  Sat, 17 Jun 2023 10:04:14 +0200
+
+cpuinfo (0.0~git20220617.082deff-1) unstable; urgency=medium
+
+  * New upstream version 0.0~git20220617.082deff
+    This snapshot should be ok for PyTorch/v1.12.X release.
+  * Install newly exported cmake config files.
+
+ -- Mo Zhou <lumin at debian.org>  Thu, 23 Jun 2022 21:53:07 -0700
+
+cpuinfo (0.0~git20220131.85e931e-1) unstable; urgency=medium
+
+  * New upstream version 0.0~git20220131.85e931e
+    There is no ABI/API change since git20201217.5916273, so this snapshot
+    should be fine for the PyTorch/v1.8.X LTS release.
+  * Install the new pkg-config file in -dev package.
+  * Bump Standards-Version to 4.6.0.1 (no change).
+
+ -- Mo Zhou <lumin at debian.org>  Mon, 21 Feb 2022 14:08:05 -0500
+
+cpuinfo (0.0~git20201217.5916273-2) unstable; urgency=medium
+
+  * Upload to unstable.
+
+ -- Mo Zhou <lumin at debian.org>  Thu, 02 Sep 2021 02:05:57 +0000
+
+cpuinfo (0.0~git20201217.5916273-1) experimental; urgency=medium
+
+  * New upstream version 0.0~git20201217.5916273
+    Please pin to this snapshot for PyTorch/v1.8.1
+  * Refresh existing patches.
+
+ -- Mo Zhou <lumin at debian.org>  Wed, 19 May 2021 13:03:47 +0800
+
+cpuinfo (0.0~git20200612.63b2545-2) unstable; urgency=medium
+
+  * Allow building libcpuinfo{0,-dev} on other architectures.
+  * Change maintainer to Deep Learning Team <debian-ai at l.d.o>.
+  * Please pin to this upstream snapshot for PyTorch 1.7.0.
+
+ -- Mo Zhou <lumin at debian.org>  Thu, 29 Oct 2020 13:28:03 +0800
+
+cpuinfo (0.0~git20200612.63b2545-1) unstable; urgency=medium
+
+  * New upstream version 0.0~git20200612.63b2545
+  * Refresh symbols control file (+1 new symbol)
+
+ -- Mo Zhou <lumin at debian.org>  Mon, 31 Aug 2020 10:14:21 +0800
+
+cpuinfo (0.0~git20200422.a1e0b95-2) unstable; urgency=medium
+
+  * Install libclog.a and clog.h in libcpuinfo-dev,
+    as clog is used by too many reverse dependencies.
+  * Bump debhelper compat level to 13.
+  * Apply wrap-and-sort.
+
+ -- Mo Zhou <lumin at debian.org>  Thu, 30 Apr 2020 23:05:06 +0800
+
+cpuinfo (0.0~git20200422.a1e0b95-1) unstable; urgency=medium
+
+  * New upstream version 0.0~git20200422.a1e0b95
+  * Incorporate upstream LICENSE updates to d/copyright.
+  * Update my mail address in control and d/copyright.
+  * Bump Standards-Version to 4.5.0 (no change).
+  * Specify Rules-Requires-Root: no.
+  * Specify Build-Depends-Package in symbols control file.
+  * Refresh symbols control file (new symbols)
+  * B-D on debhelper-compat (= 12) and deprecate d/compat.
+
+ -- Mo Zhou <lumin at debian.org>  Thu, 23 Apr 2020 13:35:55 +0800
+
+cpuinfo (0.0~git20190201.d5e37ad-2) unstable; urgency=medium
+
+  [ Rafael David Tinoco ]
+  * debian/rules: Set CPUINFO_LOG_LEVEL to error only (LP: #1840847)
+
+ -- Mo Zhou <cdluminate at gmail.com>  Thu, 22 Aug 2019 07:01:35 +0000
+
+cpuinfo (0.0~git20190201.d5e37ad-1) unstable; urgency=medium
+
+  * New upstream version 0.0~git20190201.d5e37ad
+  * Remove add-binaries-install.patch, merged upstream.
+
+ -- Mo Zhou <cdluminate at gmail.com>  Mon, 04 Feb 2019 06:36:46 +0000
+
+cpuinfo (0.0~git20190118.da0a91b-1) unstable; urgency=medium
+
+  [ Alexander GQ Gerasiov ]
+  * Add debian/patches/add-binaries-install.patch instead of
+    arch-specific cpuinfo.install files.
+  * d/control: Limit Architecture with only supported ones.
+
+  [ Mo Zhou ]
+  * New upstream version 0.0~git20190118.da0a91b
+
+ -- Mo Zhou <cdluminate at gmail.com>  Wed, 30 Jan 2019 02:02:25 +0000
+
+cpuinfo (0.0~git20181227.2d2bfa4-1) unstable; urgency=medium
+
+  * New upstream version 0.0~git20181227.2d2bfa4
+  * Bump Standards-Version to 4.3.0 (no change).
+  * Bump debhelper compat to 12.
+
+ -- Mo Zhou <cdluminate at gmail.com>  Sat, 12 Jan 2019 05:33:49 +0000
+
+cpuinfo (0.0~git20181219.a974884-2) unstable; urgency=medium
+
+  * Allow output to stderr during autopkgtest.
+  * Change default log level to "warning" to make the library quiet.
+    (Closes: #918177)
+
+ -- Mo Zhou <cdluminate at gmail.com>  Sat, 05 Jan 2019 02:01:09 +0000
+
+cpuinfo (0.0~git20181219.a974884-1) unstable; urgency=medium
+
+  * New upstream version 0.0~git20181219.a974884
+  * Fix FTBFS on i386, due to missing shared object in ld's path.
+  * Fix FTBFS on arm* because files to be installed diverges from x86.
+  * Add watch file to monitor upstream git HEAD.
+  * Refresh symbols control file.
+  * Dump cpu information before running tests, for debugging purpose.
+
+ -- Mo Zhou <cdluminate at gmail.com>  Wed, 19 Dec 2018 12:09:13 +0000
+
+cpuinfo (0.0~git20181113.3bf2c72-1) unstable; urgency=low
+
+  * Initial release. (Closes: #915979)
+
+ -- Mo Zhou <cdluminate at gmail.com>  Sun, 09 Dec 2018 06:03:10 +0000
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..7cbef16
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,129 @@
+Source: cpuinfo
+Section: science
+Homepage: https://github.com/pytorch/cpuinfo
+Priority: optional
+Standards-Version: 4.7.0
+Vcs-Git: https://salsa.debian.org/deeplearning-team/cpuinfo.git
+Vcs-Browser: https://salsa.debian.org/deeplearning-team/cpuinfo
+Maintainer: Debian Deep Learning Team <debian-ai at lists.debian.org>
+Uploaders: Mo Zhou <lumin at debian.org>, Shengqi Chen <harry at debian.org>
+Build-Depends: cmake, debhelper-compat (= 13), googletest, ninja-build
+Rules-Requires-Root: no
+
+Package: cpuinfo
+Architecture: amd64 arm64 armel armhf i386 x32 riscv64
+Multi-Arch: no
+Depends: libcpuinfo0 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
+Description: CPU INFOrmation library (binary utilities)
+ cpuinfo is a library to detect essential for performance optimization
+ information about host CPU.
+ .
+ Features
+ .
+   - **Cross-platform** availability:
+     - Linux, Windows, macOS, Android, and iOS operating systems
+     - x86, x86-64, ARM, and ARM64 architectures
+   - Modern **C/C++ interface**
+     - Thread-safe
+     - No memory allocation after initialization
+     - No exceptions thrown
+   - Detection of **supported instruction sets**, up to AVX512 (x86) and
+     ARMv8.3 extensions
+   - Detection of SoC and core information:
+     - **Processor (SoC) name**
+     - Integrated **GPU name** (Android/iOS only)
+     - Vendor, **microarchitecture**, and ID (**MIDR** on ARM, **CPUID**
+       leaf 1 EAX value on x86) for each CPU core
+   - Detection of **cache information**:
+     - Cache type (instruction/data/unified), size and line size
+     - Cache associativity
+     - Cores and logical processors (hyper-threads) sharing the cache
+   - Detection of **topology information** (relative between logical
+     processors, cores, and processor packages)
+   - Well-tested **production-quality** code:
+     - 60+ mock tests based on data from real devices
+     - Includes work-arounds for common bugs in hardware and OS kernels
+     - Supports systems with heterogenous cores, such as **big.LITTLE**
+       and Max.Med.Min
+   - Permissive **open-source** license (Simplified BSD)
+ .
+ This package ships with several binary utilities.
+
+Package: libcpuinfo-dev
+Section: libdevel
+Architecture: any
+Depends: libcpuinfo0 (= ${binary:Version}), ${misc:Depends}
+Description: CPU INFOrmation library (header file)
+ cpuinfo is a library to detect essential for performance optimization
+ information about host CPU.
+ .
+ Features
+ .
+   - **Cross-platform** availability:
+     - Linux, Windows, macOS, Android, and iOS operating systems
+     - x86, x86-64, ARM, and ARM64 architectures
+   - Modern **C/C++ interface**
+     - Thread-safe
+     - No memory allocation after initialization
+     - No exceptions thrown
+   - Detection of **supported instruction sets**, up to AVX512 (x86) and
+     ARMv8.3 extensions
+   - Detection of SoC and core information:
+     - **Processor (SoC) name**
+     - Integrated **GPU name** (Android/iOS only)
+     - Vendor, **microarchitecture**, and ID (**MIDR** on ARM, **CPUID**
+       leaf 1 EAX value on x86) for each CPU core
+   - Detection of **cache information**:
+     - Cache type (instruction/data/unified), size and line size
+     - Cache associativity
+     - Cores and logical processors (hyper-threads) sharing the cache
+   - Detection of **topology information** (relative between logical
+     processors, cores, and processor packages)
+   - Well-tested **production-quality** code:
+     - 60+ mock tests based on data from real devices
+     - Includes work-arounds for common bugs in hardware and OS kernels
+     - Supports systems with heterogenous cores, such as **big.LITTLE**
+       and Max.Med.Min
+   - Permissive **open-source** license (Simplified BSD)
+ .
+ This package ships with the header file.
+
+Package: libcpuinfo0
+Section: libs
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: CPU INFOrmation library (shared object)
+ cpuinfo is a library to detect essential for performance optimization
+ information about host CPU.
+ .
+ Features
+ .
+   - **Cross-platform** availability:
+     - Linux, Windows, macOS, Android, and iOS operating systems
+     - x86, x86-64, ARM, and ARM64 architectures
+   - Modern **C/C++ interface**
+     - Thread-safe
+     - No memory allocation after initialization
+     - No exceptions thrown
+   - Detection of **supported instruction sets**, up to AVX512 (x86) and
+     ARMv8.3 extensions
+   - Detection of SoC and core information:
+     - **Processor (SoC) name**
+     - Integrated **GPU name** (Android/iOS only)
+     - Vendor, **microarchitecture**, and ID (**MIDR** on ARM, **CPUID**
+       leaf 1 EAX value on x86) for each CPU core
+   - Detection of **cache information**:
+     - Cache type (instruction/data/unified), size and line size
+     - Cache associativity
+     - Cores and logical processors (hyper-threads) sharing the cache
+   - Detection of **topology information** (relative between logical
+     processors, cores, and processor packages)
+   - Well-tested **production-quality** code:
+     - 60+ mock tests based on data from real devices
+     - Includes work-arounds for common bugs in hardware and OS kernels
+     - Supports systems with heterogenous cores, such as **big.LITTLE**
+       and Max.Med.Min
+   - Permissive **open-source** license (Simplified BSD)
+ .
+ This package ships with the shared object.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ec3647b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,57 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Source: https://github.com/pytorch/cpuinfo
+
+Files: *
+Copyright:
+  2010-2012, Marat Dukhan
+  2012-2017, Georgia Institute of Technology
+  2017, Georgia Institute of Technology
+  2017-2018, Facebook Inc.
+  2018, Marat Dukhan
+  2019 Google LLC
+License: BSD-2-clause
+
+Files: debian/*
+Copyright: 2018-2020 Mo Zhou <lumin at debian.org>
+License: Expat
+
+License: BSD-2-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ * Redistributions of source code must retain the above copyright notice, this
+   list of conditions and the following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+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.
diff --git a/debian/cpuinfo.install b/debian/cpuinfo.install
new file mode 100644
index 0000000..ec8e54a
--- /dev/null
+++ b/debian/cpuinfo.install
@@ -0,0 +1 @@
+usr/bin/*  usr/bin/
diff --git a/debian/cpuinfo.lintian-overrides b/debian/cpuinfo.lintian-overrides
new file mode 100644
index 0000000..84e7618
--- /dev/null
+++ b/debian/cpuinfo.lintian-overrides
@@ -0,0 +1,4 @@
+binary-without-manpage [usr/bin/cache-info]
+binary-without-manpage [usr/bin/cpu-info]
+[amd64 i386 x32]: binary-without-manpage [usr/bin/cpuid-dump]
+binary-without-manpage [usr/bin/isa-info]
diff --git a/debian/libcpuinfo-dev.docs b/debian/libcpuinfo-dev.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/libcpuinfo-dev.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/libcpuinfo-dev.install b/debian/libcpuinfo-dev.install
new file mode 100644
index 0000000..720ba35
--- /dev/null
+++ b/debian/libcpuinfo-dev.install
@@ -0,0 +1,4 @@
+usr/include/cpuinfo.h
+usr/lib/*/libcpuinfo.so
+usr/lib/*/pkgconfig/libcpuinfo.pc
+usr/lib/*/cmake/cpuinfo
diff --git a/debian/libcpuinfo0.install b/debian/libcpuinfo0.install
new file mode 100644
index 0000000..51a2573
--- /dev/null
+++ b/debian/libcpuinfo0.install
@@ -0,0 +1 @@
+usr/lib/*/libcpuinfo.so.*
diff --git a/debian/libcpuinfo0.symbols b/debian/libcpuinfo0.symbols
new file mode 100644
index 0000000..3d28db4
--- /dev/null
+++ b/debian/libcpuinfo0.symbols
@@ -0,0 +1,44 @@
+libcpuinfo.so.0 libcpuinfo0 #MINVER#
+* Build-Depends-Package: libcpuinfo-dev
+ (arch=arm64 armhf armel)cpuinfo_arm_fixup_raspberry_pi_chipset at Base 0.0~git20240830.fa1c679
+ cpuinfo_deinitialize at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_cluster at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_clusters at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_clusters_count at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_core at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_cores at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_cores_count at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_current_core at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_current_processor at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_current_uarch_index at Base 0.0~git20200422.a1e0b95
+ cpuinfo_get_current_uarch_index_with_default at Base 0.0~git20200612.63b2545
+ cpuinfo_get_l1d_cache at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_l1d_caches at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_l1d_caches_count at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_l1i_cache at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_l1i_caches at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_l1i_caches_count at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_l2_cache at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_l2_caches at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_l2_caches_count at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_l3_cache at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_l3_caches at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_l3_caches_count at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_l4_cache at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_l4_caches at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_l4_caches_count at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_max_cache_size at Base 0.0~git20200422.a1e0b95
+ cpuinfo_get_package at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_packages at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_packages_count at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_processor at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_processors at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_processors_count at Base 0.0~git20181113.3bf2c72
+ cpuinfo_get_uarch at Base 0.0~git20200422.a1e0b95
+ cpuinfo_get_uarchs at Base 0.0~git20200422.a1e0b95
+ cpuinfo_get_uarchs_count at Base 0.0~git20200422.a1e0b95
+ cpuinfo_initialize at Base 0.0~git20181113.3bf2c72
+ (arch=amd64 arm64 armhf armel i386 x32)cpuinfo_isa at Base 0.0~git20181113.3bf2c72
+ cpuinfo_vlog_error at Base 0.0~git20231104.d6860c4
+ cpuinfo_vlog_fatal at Base 0.0~git20231104.d6860c4
+
diff --git a/debian/not-installed b/debian/not-installed
new file mode 100644
index 0000000..8b1b29b
--- /dev/null
+++ b/debian/not-installed
@@ -0,0 +1,13 @@
+usr/include/gtest
+usr/include/gmock
+usr/lib/*/libgmock*
+usr/lib/*/libgtest*
+usr/lib/*/pkgconfig/gmock.pc
+usr/lib/*/pkgconfig/gmock_main.pc
+usr/lib/*/pkgconfig/gtest_main.pc
+usr/lib/*/pkgconfig/gtest.pc
+usr/lib/*/cmake/GTest/GTestConfig.cmake
+usr/lib/*/cmake/GTest/GTestConfigVersion.cmake
+usr/lib/*/cmake/GTest/GTestTargets.cmake exists 
+usr/lib/*/cmake/GTest/GTestTargets-none.cmake
+usr/lib/*/cmake/GTest/*
diff --git a/debian/patches/Fix-cmake-config-install.patch b/debian/patches/Fix-cmake-config-install.patch
new file mode 100644
index 0000000..e10824d
--- /dev/null
+++ b/debian/patches/Fix-cmake-config-install.patch
@@ -0,0 +1,28 @@
+Description: cmake files are installed in the wrong location which make them
+ unusable and broken.
+Bug-Debian: http://bugs.debian.org/1024772
+Author: Dylan Aïssi <daissi at debian.org>
+Forwarded: not-needed
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -324,9 +324,9 @@
+ GET_FILENAME_COMPONENT(CONFIG_FILE_PATH ${CMAKE_CURRENT_BINARY_DIR}/cpuinfo-config.cmake ABSOLUTE)
+ CONFIGURE_PACKAGE_CONFIG_FILE(
+   cmake/cpuinfo-config.cmake.in ${CONFIG_FILE_PATH}
+-  INSTALL_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME})
++  INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
+ INSTALL(FILES ${CONFIG_FILE_PATH}
+-  DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}) # cpuinfo_DIR ${prefix}/share/cpuinfo
++  DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
+ 
+ INSTALL(TARGETS cpuinfo
+   EXPORT cpuinfo-targets
+@@ -336,7 +336,7 @@
+ 
+ INSTALL(EXPORT cpuinfo-targets
+   NAMESPACE ${PROJECT_NAME}:: # IMPORTED cpuinfo::cpuinfo
+-  DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME})
++  DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
+ 
+ # ---[ cpuinfo micro-benchmarks
+ IF(CPUINFO_SUPPORTED_PLATFORM AND CPUINFO_BUILD_BENCHMARKS)
diff --git a/debian/patches/cmake-soversion.patch b/debian/patches/cmake-soversion.patch
new file mode 100644
index 0000000..f15aecf
--- /dev/null
+++ b/debian/patches/cmake-soversion.patch
@@ -0,0 +1,13 @@
+set upstream ABI version as 0
+Author: Mo Zhou
+Forward: not-needed
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -254,6 +254,7 @@
+   ADD_LIBRARY(cpuinfo ${CPUINFO_SRCS})
+ ELSEIF(CPUINFO_LIBRARY_TYPE STREQUAL "shared")
+   ADD_LIBRARY(cpuinfo SHARED ${CPUINFO_SRCS})
++  set_target_properties(cpuinfo PROPERTIES SOVERSION 0)
+ ELSEIF(CPUINFO_LIBRARY_TYPE STREQUAL "static")
+   ADD_LIBRARY(cpuinfo STATIC ${CPUINFO_SRCS})
+ ELSE()
diff --git a/debian/patches/fix-ftbts-implicit-function-syscall.patch b/debian/patches/fix-ftbts-implicit-function-syscall.patch
new file mode 100644
index 0000000..9e25d7b
--- /dev/null
+++ b/debian/patches/fix-ftbts-implicit-function-syscall.patch
@@ -0,0 +1,17 @@
+Description: Fix FTBTS problem: implicit declaration of function 'syscall'
+Author: Shengqi Chen <harry-chen at outlook.com>
+Forwarded: not-needed
+Last-Update: 2024-09-05
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -315,6 +315,8 @@
+   ENDIF()
+ ELSE()
+   TARGET_COMPILE_DEFINITIONS(cpuinfo INTERFACE CPUINFO_SUPPORTED_PLATFORM=0)
++  TARGET_COMPILE_DEFINITIONS(cpuinfo PRIVATE _GNU_SOURCE=1)
++  TARGET_COMPILE_DEFINITIONS(cpuinfo_internals PRIVATE _GNU_SOURCE=1)
+ ENDIF()
+ 
+ ADD_LIBRARY(${PROJECT_NAME}::cpuinfo ALIAS cpuinfo)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1a196f3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+cmake-soversion.patch
+Fix-cmake-config-install.patch
+# unused/skip-core-known-uarch-test.patch
+fix-ftbts-implicit-function-syscall.patch
diff --git a/debian/patches/unused/skip-core-known-uarch-test.patch b/debian/patches/unused/skip-core-known-uarch-test.patch
new file mode 100644
index 0000000..5c295f1
--- /dev/null
+++ b/debian/patches/unused/skip-core-known-uarch-test.patch
@@ -0,0 +1,15 @@
+Description: skip the Core.known_uarch test from init-test.
+ It fails on P+E core intel CPUs, solely because upstream has
+ not added the code for these architectures.
+Forwarded: not-needed
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -813,7 +813,7 @@
+   CPUINFO_TARGET_ENABLE_CXX11(init-test)
+   CPUINFO_TARGET_RUNTIME_LIBRARY(init-test)
+   TARGET_LINK_LIBRARIES(init-test PRIVATE cpuinfo gtest gtest_main)
+-  ADD_TEST(NAME init-test COMMAND init-test)
++  ADD_TEST(NAME init-test COMMAND init-test --gtest_filter=-CORE.known_uarch)
+ 
+   IF(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Android")
+     ADD_EXECUTABLE(get-current-test test/get-current.cc)
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1f38a0d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+	dh $@ -Scmake+ninja
+
+override_dh_auto_configure:
+	dh_auto_configure -- \
+		-DGOOGLETEST_SOURCE_DIR=/usr/src/googletest/ \
+		-DCPUINFO_BUILD_BENCHMARKS=OFF \
+		-DCPUINFO_LIBRARY_TYPE=shared \
+		-DCPUINFO_LOG_LEVEL=error \
+		-DCMAKE_SKIP_RPATH=ON
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	if [ -r /proc/cpuinfo ]; then cat /proc/cpuinfo ; else false; fi
+	if [ -x ./$(shell ls -d obj-*)/cpuid-dump ]; then ./$(shell ls -d obj-*)/cpuid-dump; fi
+	-LD_LIBRARY_PATH=$(shell pwd)/$(shell ls -d obj-*) dh_auto_test
+endif
+
+override_dh_missing:
+	dh_missing --list-missing
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..bc8fb9e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,20 @@
+Test-Command: /usr/bin/cache-info
+Features: test-name=cache-info
+Architecture: amd64 i386 x32 arm64 armel armhf
+Restrictions: allow-stderr
+
+Test-Command: /usr/bin/cpu-info
+Features: test-name=cpu-info
+Architecture: amd64 i386 x32 arm64 armel armhf
+Restrictions: allow-stderr
+
+Test-Command: /usr/bin/isa-info
+Features: test-name=isa-info
+Architecture: amd64 i386 x32 arm64 armel armhf
+Restrictions: allow-stderr
+
+Test-Command: /usr/bin/cpuid-dump
+Features: test-name=cpuid-dump-x86
+Architecture: amd64 i386 x32
+Restrictions: allow-stderr
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..e680d36
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+opts="mode=git, pgpmode=none" \
+https://github.com/pytorch/cpuinfo \
+HEAD debian uupdate


More information about the Neon-commits mailing list