From 0c6775e44a3e644c5a8acccd3d330f095c91c123 Mon Sep 17 00:00:00 2001 From: Uladzislau Marhunou <115481427+NotNachalas@users.noreply.github.com> Date: Sat, 18 Jul 2026 12:25:45 +0300 Subject: [PATCH] [lfreist-hwinfo] Fix GCC build (#52933) --- ports/lfreist-hwinfo/fix-gcc-build.patch | 12 ++++++++++++ ports/lfreist-hwinfo/portfile.cmake | 4 +++- ports/lfreist-hwinfo/vcpkg.json | 2 ++ versions/baseline.json | 2 +- versions/l-/lfreist-hwinfo.json | 5 +++++ 5 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 ports/lfreist-hwinfo/fix-gcc-build.patch diff --git a/ports/lfreist-hwinfo/fix-gcc-build.patch b/ports/lfreist-hwinfo/fix-gcc-build.patch new file mode 100644 index 0000000000..f91ce44550 --- /dev/null +++ b/ports/lfreist-hwinfo/fix-gcc-build.patch @@ -0,0 +1,12 @@ +diff --git a/src/linux/disk.cpp b/src/linux/disk.cpp +index 59a9ba3..15bb58a 100644 +--- a/src/linux/disk.cpp ++++ b/src/linux/disk.cpp +@@ -13,6 +13,7 @@ + #include + #include + #include ++#include + + namespace { + diff --git a/ports/lfreist-hwinfo/portfile.cmake b/ports/lfreist-hwinfo/portfile.cmake index 78ff0f0245..3bcbcaba9e 100644 --- a/ports/lfreist-hwinfo/portfile.cmake +++ b/ports/lfreist-hwinfo/portfile.cmake @@ -4,6 +4,7 @@ vcpkg_from_github( REF fff0ffb494aa8f8cb8537a35d0032235d6d5b5cc SHA512 9100d6a5e39096d1aa36b462499e3937fd6c829887c7cab23ebb4ac8798f9abc844111df0bc781190780f164e8e2df93b1f0dbbc2d6ac824601910b03009ed3e HEAD_REF main + PATCHES fix-gcc-build.patch ) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" HWINFO_BUILD_SHARED) @@ -14,6 +15,7 @@ vcpkg_cmake_configure( OPTIONS -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF + -DHWINFO_GPU_OPENCL=OFF -DHWINFO_SHARED=${HWINFO_BUILD_SHARED} -DHWINFO_STATIC=${HWINFO_BUILD_STATIC} ) @@ -24,7 +26,7 @@ vcpkg_cmake_config_fixup( CONFIG_PATH "lib/cmake/hwinfo" ) vcpkg_copy_pdbs() -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE" "${SOURCE_PATH}/include/hwinfo/utils/pci.ids.h") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") diff --git a/ports/lfreist-hwinfo/vcpkg.json b/ports/lfreist-hwinfo/vcpkg.json index 6409a36b19..72c7c1aa9a 100644 --- a/ports/lfreist-hwinfo/vcpkg.json +++ b/ports/lfreist-hwinfo/vcpkg.json @@ -1,8 +1,10 @@ { "name": "lfreist-hwinfo", "version-date": "2025-07-10", + "port-version": 1, "description": "hwinfo provides an easy-to-use and modern C++ API for retrieving hardware information of your systems components such as CPU, RAM, GPU, Disks, Mainboard, ...", "homepage": "https://github.com/lfreist/hwinfo", + "license": "MIT AND BSD-3-Clause", "supports": "!(uwp | android)", "dependencies": [ { diff --git a/versions/baseline.json b/versions/baseline.json index 3116a9dd66..a1a940420d 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4730,7 +4730,7 @@ }, "lfreist-hwinfo": { "baseline": "2025-07-10", - "port-version": 0 + "port-version": 1 }, "lib3mf": { "baseline": "2.5.0", diff --git a/versions/l-/lfreist-hwinfo.json b/versions/l-/lfreist-hwinfo.json index 91f6b2a4f2..1921a14c34 100644 --- a/versions/l-/lfreist-hwinfo.json +++ b/versions/l-/lfreist-hwinfo.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "b65bc2228e0764c20162ff4422a75251b5358177", + "version-date": "2025-07-10", + "port-version": 1 + }, { "git-tree": "80d2e44ad00001466a33b67e361bb77ce741b5b5", "version-date": "2025-07-10",