diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-02 11:00:10 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-02 11:00:10 +0000 |
commit | 4c506c69909bdb43fda5e36c79b165e404d3b86b (patch) | |
tree | b0f9d49fd462021c82f6ebbbbafb92e1a0eae3da /dev-libs/cpuinfo | |
parent | 81f73a84efe20818880d8c52c55a3bd067115b06 (diff) |
gentoo auto-resync : 02:12:2023 - 11:00:10
Diffstat (limited to 'dev-libs/cpuinfo')
-rw-r--r-- | dev-libs/cpuinfo/Manifest | 3 | ||||
-rw-r--r-- | dev-libs/cpuinfo/cpuinfo-2023.01.13.ebuild | 43 | ||||
-rw-r--r-- | dev-libs/cpuinfo/files/cpuinfo-2023.01.13-test.patch | 18 |
3 files changed, 64 insertions, 0 deletions
diff --git a/dev-libs/cpuinfo/Manifest b/dev-libs/cpuinfo/Manifest index c7d24c64b15c..70a18cff8792 100644 --- a/dev-libs/cpuinfo/Manifest +++ b/dev-libs/cpuinfo/Manifest @@ -1,6 +1,9 @@ AUX cpuinfo-2022.03.26-gentoo.patch 1268 BLAKE2B 182386f080c1aca057dc91cc878236ce589233f47173e2c4eb3421505be18c24171b9c58f2c8a50f6b54992761513cd864070734dd74bf411fcc9585b8c17454 SHA512 bea50072b201d7120c8163ebca975e2101399fadb3ed4b8828dc20afdfbdab5040683219ddfbecc7bc694def2b30efa2bec256311c8ac3cd7d1ab67591295e84 +AUX cpuinfo-2023.01.13-test.patch 432 BLAKE2B 31cb0cb7b75445651a2d82143bdfce28f636ab4692c3c4f4f503646b61af952c8599f17192d15ff43d20ad9a0a4cc26410057efd44aa9b9837ff1cdba319663d SHA512 e6a730137c621946a7839b3273e163382ad35a8881f0fd848e70f3fe02820a3196044a235f5d301e0443e2d376321ff17f3256f8aa27e1ae66fc220bbf6f0d96 DIST cpuinfo-2022.03.26.tar.gz 3503965 BLAKE2B 03607ea04de156907d230dc9f009d72bf6d36ae7391c190c68dbc3f9a4c395e8ec72f935f6ae032d6b1341432278df3aee6f9fe7f7cad1b82784ecec5084d373 SHA512 dbbe4f3e1d5ae74ffc8ba2cba0ab745a23f4993788f4947825ef5125dd1cbed3e13e0c98e020e6fcfa9879f54f06d7cba4de73ec29f77649b6a27b4ab82c8f1c DIST cpuinfo-2022.08.19.tar.gz 3512624 BLAKE2B 909ebde6c522d514641dcbe16586bc972327b8564cb12fa6db25b8978a0a840e627154430f97dd37f024ea4f36a45db8ca5033e6e076390383dd9b35307bed5f SHA512 b3342ce0a1f842084ff53efdfd15c44586ac7cd36249211e2925d84aa1f33ee8d6f76cd62ea20e91d8b908c3c8afda5a47516008b69749504024b9813a623ee2 +DIST cpuinfo-2023.01.13.tar.gz 3513605 BLAKE2B eee9765f30b1dca6f39fb0b1f387f5e1cfaf544e5c9b256391aea913c5b67a012ef45f5afecfcda4a34ab64ca8da2f20e37db58cb4d463f8e312a04965cd40df SHA512 96bd11d3453e98cf1130f0862614e813861e20111655f8c472f29f17048a07d712b4f84b511760fdee995cf3d695112371af0c21cbd144ee3fb6fb6153dd2829 EBUILD cpuinfo-2022.03.26-r1.ebuild 894 BLAKE2B e4d7b5c15f660e5e23afdc4c4f89df0af6211ff45429911875a7e4464cdf5eef633ee563e15626481428143788d8b2d63e76f89b38da007ee0ef44c0c711d9c7 SHA512 34d863c1bd6abbd2607e7ddeeb44f648c8b24f4c50d3d1909450e5c0e465ef28689d57e55af31caf03e725a3421a5d6b86a9f1422eb7dc96cb23cdc86c775c91 EBUILD cpuinfo-2022.08.19.ebuild 906 BLAKE2B 5395cf008fb40443b8929f8c83680164bee23844c437bab9cb5d9110df146db12b3f3bee957cdaeaa880c0bf1efe74e0ae93527a4e54a3e20bcb9c58fbb5ef98 SHA512 45528b7df2699a5e3818813e0e5ee3941a17e456e7da2c5c8855a4b65d896a1b261944e3c143f6c7500a1b231d41aee2cb48031b12b6b35b781ed21de795e371 +EBUILD cpuinfo-2023.01.13.ebuild 937 BLAKE2B af15c89bba1ebff2538cc46b68c612da31e6d45b94e0bd9d7ba6b84ab959166d31492c421b6e1eb6216dab1dba7c79b1b197e8a10a6bcb25a1daf963cdf8208c SHA512 4b96b40ea10605871748b5832940c63d22b79ba27222bcd8593a793c2b79a9b200ae3834d1b53e8d01b8fbbc072806bac46bf5005ef8870afc7815d5b43b84ce MISC metadata.xml 328 BLAKE2B 160050e4c013753fd69c5a153bf5c63d0627fb2dc96f170f5d2d4a9585b53771fb32866db5a99c27a878402c54c2f10ff43a56718acec5afd5e7b6827c8884d1 SHA512 032c753ed917179bba2cb457ee87b3a8ce6941032138d4cdf59ff764907da93c779fd1ff01a36778d99fefa89f0a2fdf43d1871a9db9e82d6ecfdcbe8bb198fe diff --git a/dev-libs/cpuinfo/cpuinfo-2023.01.13.ebuild b/dev-libs/cpuinfo/cpuinfo-2023.01.13.ebuild new file mode 100644 index 000000000000..3b0ec9465234 --- /dev/null +++ b/dev-libs/cpuinfo/cpuinfo-2023.01.13.ebuild @@ -0,0 +1,43 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit cmake + +CommitId=6481e8bef08f606ddd627e4d3be89f64d62e1b8a + +DESCRIPTION="CPU INFOrmation library" +HOMEPAGE="https://github.com/pytorch/cpuinfo/" +SRC_URI="https://github.com/pytorch/${PN}/archive/${CommitId}.tar.gz + -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +BDEPEND="test? ( dev-cpp/gtest )" +RESTRICT="!test? ( test )" + +S="${WORKDIR}"/${PN}-${CommitId} + +PATCHES=( + "${FILESDIR}"/${PN}-2022.03.26-gentoo.patch + "${FILESDIR}"/${P}-test.patch +) + +src_prepare() { + cmake_src_prepare + + # >=dev-cpp/gtest-1.13.0 depends on building with at least C++14 standard + sed -i -e 's/CXX_STANDARD 11/CXX_STANDARD 14/' \ + CMakeLists.txt || die "sed failed" +} + +src_configure() { + local mycmakeargs=( + -DCPUINFO_BUILD_BENCHMARKS=OFF + -DCPUINFO_BUILD_UNIT_TESTS=$(usex test ON OFF) + ) + cmake_src_configure +} diff --git a/dev-libs/cpuinfo/files/cpuinfo-2023.01.13-test.patch b/dev-libs/cpuinfo/files/cpuinfo-2023.01.13-test.patch new file mode 100644 index 000000000000..65c051556fff --- /dev/null +++ b/dev-libs/cpuinfo/files/cpuinfo-2023.01.13-test.patch @@ -0,0 +1,18 @@ +--- a/test/init.cc 2023-12-02 09:02:56.240873209 +0100 ++++ b/test/init.cc 2023-12-02 09:04:23.240867364 +0100 +@@ -304,6 +304,7 @@ + cpuinfo_deinitialize(); + } + ++#if 0 + TEST(CORE, known_uarch) { + ASSERT_TRUE(cpuinfo_initialize()); + for (uint32_t i = 0; i < cpuinfo_get_cores_count(); i++) { +@@ -314,6 +315,7 @@ + } + cpuinfo_deinitialize(); + } ++#endif + + TEST(CLUSTERS_COUNT, within_bounds) { + ASSERT_TRUE(cpuinfo_initialize()); |