pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/py-torch



Module Name:    pkgsrc
Committed By:   wiz
Date:           Tue Aug 19 15:05:39 UTC 2025

Modified Files:
        pkgsrc/math/py-torch: distinfo
        pkgsrc/math/py-torch/patches: patch-cmake_Dependencies.cmake
Added Files:
        pkgsrc/math/py-torch/patches: patch-third__party_FP16_CMakeLists.txt
            patch-third__party_gloo_CMakeLists.txt
            patch-third__party_ittapi_CMakeLists.txt
            patch-third__party_protobuf_cmake_CMakeLists.txt
            patch-third__party_psimd_CMakeLists.txt
            patch-third__party_tensorpipe_third__party_libuv_CMakeLists.txt

Log Message:
py-torch: fix build with cmake 4


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/math/py-torch/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/math/py-torch/patches/patch-cmake_Dependencies.cmake
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/math/py-torch/patches/patch-third__party_FP16_CMakeLists.txt \
    pkgsrc/math/py-torch/patches/patch-third__party_gloo_CMakeLists.txt \
    pkgsrc/math/py-torch/patches/patch-third__party_ittapi_CMakeLists.txt \
    pkgsrc/math/py-torch/patches/patch-third__party_protobuf_cmake_CMakeLists.txt \
    pkgsrc/math/py-torch/patches/patch-third__party_psimd_CMakeLists.txt \
    pkgsrc/math/py-torch/patches/patch-third__party_tensorpipe_third__party_libuv_CMakeLists.txt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/py-torch/distinfo
diff -u pkgsrc/math/py-torch/distinfo:1.3 pkgsrc/math/py-torch/distinfo:1.4
--- pkgsrc/math/py-torch/distinfo:1.3   Sun Jan 26 12:33:03 2025
+++ pkgsrc/math/py-torch/distinfo       Tue Aug 19 15:05:38 2025
@@ -1,13 +1,14 @@
-$NetBSD: distinfo,v 1.3 2025/01/26 12:33:03 wiz Exp $
+$NetBSD: distinfo,v 1.4 2025/08/19 15:05:38 wiz Exp $
 
 BLAKE2s (pytorch-v2.5.1.tar.gz) = 299bbffbdde5673d420cf21f08c3bcc518b233e63a19231e6a631980849bd8b9
 SHA512 (pytorch-v2.5.1.tar.gz) = a8882608c2ab6467a58d60c6df84c9f1004b43eafeba57db499dbbfdecc09db2e221b9d4c344c8af7c0bea6252e874c400483502dca24a0b474c376b9fef1dd4
 Size (pytorch-v2.5.1.tar.gz) = 298929057 bytes
 SHA1 (patch-c10_core_Scalar.h) = bc7a922886c2683589d1dc428c55ac43b3a36716
 SHA1 (patch-c10_macros_Macros.h) = d2b9b14000767b25babe15166b1b825a00cfc4ea
-SHA1 (patch-cmake_Dependencies.cmake) = 7723ccf277d80c68e7db0b5cc128ab4fa60480dc
+SHA1 (patch-cmake_Dependencies.cmake) = d524cb2a811788d801f086a3a84625f4c3dc3bf8
 SHA1 (patch-cmake_Modules_FindBLAS.cmake) = fd29b5e717eda52f249ee3cff04e6fdd6c398cc2
 SHA1 (patch-cmake_public_mkldnn.cmake) = 3cd077c540c0923a689d403ba92dc2c206b7f937
+SHA1 (patch-third__party_FP16_CMakeLists.txt) = f747d3dd15ed38316b5accea883fb86253730e7c
 SHA1 (patch-third__party_cpuinfo_CMakeLists.txt) = 3498ce31f37b35f99726d1d8dcf7f84e363cc707
 SHA1 (patch-third__party_cpuinfo_src_cpuinfo_internal-api.h) = fbdfd4ae278b570514a4473e651d61c3fe2b6ecc
 SHA1 (patch-third__party_cpuinfo_src_init.c) = c57d05229b4eaa0287ed567478de33834b300d68
@@ -15,9 +16,14 @@ SHA1 (patch-third__party_cpuinfo_src_net
 SHA1 (patch-third__party_cpuinfo_src_netbsd_topology.c) = 5138bf2355bc70042f5ce9f7a019d315be038bca
 SHA1 (patch-third__party_cpuinfo_src_x86_netbsd_init.c) = 52bcc18d780736b6f56f478b90dd81eede2fb499
 SHA1 (patch-third__party_fbgemm_third__party_cpuinfo_src_init.c) = 0bb63c242f06cb189a24c4dbfad77bdc59d6b092
+SHA1 (patch-third__party_gloo_CMakeLists.txt) = 4209a7bc930ce6697e98f8471e2bef0b5e35157d
+SHA1 (patch-third__party_ittapi_CMakeLists.txt) = 238a57c4a007a04537d438c5fb8e21d16be59877
 SHA1 (patch-third__party_kineto_libkineto_src_ThreadUtil.cpp) = cb6462eea995445c8f65592bf427605e781000f9
+SHA1 (patch-third__party_protobuf_cmake_CMakeLists.txt) = 20926b73cb40cde56170dd15c0abd9830ec50c3e
 SHA1 (patch-third__party_protobuf_post__process__dist.sh) = b27d6497f8649491441ef3a2bfc9eb5fa22ba474
+SHA1 (patch-third__party_psimd_CMakeLists.txt) = 8c1a0b0ed20b01585fa49115a98611877c8218be
 SHA1 (patch-third__party_tensorpipe_tensorpipe_common_system.cc) = 6f714d89681c245d531809fbf64b2b9c77fce84d
+SHA1 (patch-third__party_tensorpipe_third__party_libuv_CMakeLists.txt) = a22fc6bd450c2b52a774543c3785107580eec980
 SHA1 (patch-torch_csrc_distributed_c10d_ProcessGroupGloo.cpp) = 2c56c736040090040aa04d8d446ead61bb3b207c
 SHA1 (patch-torch_csrc_distributed_c10d_socket.cpp) = cace5d33d59bb8fec1933e74223049e5d63aa0a9
 SHA1 (patch-torch_csrc_utils_byte__order.h) = 089495773fbd7e7340dbd7545341c56d2f4de9b3

Index: pkgsrc/math/py-torch/patches/patch-cmake_Dependencies.cmake
diff -u pkgsrc/math/py-torch/patches/patch-cmake_Dependencies.cmake:1.1 pkgsrc/math/py-torch/patches/patch-cmake_Dependencies.cmake:1.2
--- pkgsrc/math/py-torch/patches/patch-cmake_Dependencies.cmake:1.1     Tue Jan 21 13:36:49 2025
+++ pkgsrc/math/py-torch/patches/patch-cmake_Dependencies.cmake Tue Aug 19 15:05:38 2025
@@ -1,8 +1,8 @@
-$NetBSD: patch-cmake_Dependencies.cmake,v 1.1 2025/01/21 13:36:49 ryoon Exp $
+$NetBSD: patch-cmake_Dependencies.cmake,v 1.2 2025/08/19 15:05:38 wiz Exp $
 
 * Fix errors related to RPATH change.
 
---- cmake/Dependencies.cmake.orig      2025-01-19 11:34:31.033893427 +0000
+--- cmake/Dependencies.cmake.orig      2024-10-29 18:00:43.000000000 +0000
 +++ cmake/Dependencies.cmake
 @@ -9,7 +9,7 @@ endif(APPLE)
  # Use separate rpaths during build and install phases

Added files:

Index: pkgsrc/math/py-torch/patches/patch-third__party_FP16_CMakeLists.txt
diff -u /dev/null pkgsrc/math/py-torch/patches/patch-third__party_FP16_CMakeLists.txt:1.1
--- /dev/null   Tue Aug 19 15:05:39 2025
+++ pkgsrc/math/py-torch/patches/patch-third__party_FP16_CMakeLists.txt Tue Aug 19 15:05:38 2025
@@ -0,0 +1,12 @@
+$NetBSD: patch-third__party_FP16_CMakeLists.txt,v 1.1 2025/08/19 15:05:38 wiz Exp $
+
+Fix build with cmake 4.
+
+--- third_party/FP16/CMakeLists.txt.orig       2025-08-19 13:56:19.467938142 +0000
++++ third_party/FP16/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR)
++CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
+ 
+ INCLUDE(GNUInstallDirs)
+ 
Index: pkgsrc/math/py-torch/patches/patch-third__party_gloo_CMakeLists.txt
diff -u /dev/null pkgsrc/math/py-torch/patches/patch-third__party_gloo_CMakeLists.txt:1.1
--- /dev/null   Tue Aug 19 15:05:39 2025
+++ pkgsrc/math/py-torch/patches/patch-third__party_gloo_CMakeLists.txt Tue Aug 19 15:05:38 2025
@@ -0,0 +1,12 @@
+$NetBSD: patch-third__party_gloo_CMakeLists.txt,v 1.1 2025/08/19 15:05:38 wiz Exp $
+
+Fix build with cmake 4.
+
+--- third_party/gloo/CMakeLists.txt.orig       2025-08-19 14:11:03.976341275 +0000
++++ third_party/gloo/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
++cmake_minimum_required(VERSION 3.5)
+ 
+ project(gloo CXX C)
+ 
Index: pkgsrc/math/py-torch/patches/patch-third__party_ittapi_CMakeLists.txt
diff -u /dev/null pkgsrc/math/py-torch/patches/patch-third__party_ittapi_CMakeLists.txt:1.1
--- /dev/null   Tue Aug 19 15:05:39 2025
+++ pkgsrc/math/py-torch/patches/patch-third__party_ittapi_CMakeLists.txt       Tue Aug 19 15:05:38 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-third__party_ittapi_CMakeLists.txt,v 1.1 2025/08/19 15:05:38 wiz Exp $
+
+Fix build with cmake 4.
+
+--- third_party/ittapi/CMakeLists.txt.orig     2025-08-19 13:56:06.777986686 +0000
++++ third_party/ittapi/CMakeLists.txt
+@@ -4,7 +4,7 @@
+ # SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause
+ #
+ 
+-cmake_minimum_required(VERSION 2.8.12)
++cmake_minimum_required(VERSION 3.5)
+ 
+ project(ittapi)
+ 
Index: pkgsrc/math/py-torch/patches/patch-third__party_protobuf_cmake_CMakeLists.txt
diff -u /dev/null pkgsrc/math/py-torch/patches/patch-third__party_protobuf_cmake_CMakeLists.txt:1.1
--- /dev/null   Tue Aug 19 15:05:39 2025
+++ pkgsrc/math/py-torch/patches/patch-third__party_protobuf_cmake_CMakeLists.txt       Tue Aug 19 15:05:38 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-third__party_protobuf_cmake_CMakeLists.txt,v 1.1 2025/08/19 15:05:38 wiz Exp $
+
+Fix build with cmake 4.
+
+--- third_party/protobuf/cmake/CMakeLists.txt.orig     2025-08-19 13:55:51.477503257 +0000
++++ third_party/protobuf/cmake/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ # Minimum CMake required
+-cmake_minimum_required(VERSION 3.1.3)
++cmake_minimum_required(VERSION 3.5)
+ 
+ if(protobuf_VERBOSE)
+   message(STATUS "Protocol Buffers Configuring...")
Index: pkgsrc/math/py-torch/patches/patch-third__party_psimd_CMakeLists.txt
diff -u /dev/null pkgsrc/math/py-torch/patches/patch-third__party_psimd_CMakeLists.txt:1.1
--- /dev/null   Tue Aug 19 15:05:39 2025
+++ pkgsrc/math/py-torch/patches/patch-third__party_psimd_CMakeLists.txt        Tue Aug 19 15:05:38 2025
@@ -0,0 +1,12 @@
+$NetBSD: patch-third__party_psimd_CMakeLists.txt,v 1.1 2025/08/19 15:05:38 wiz Exp $
+
+Fix build with cmake 4.
+
+--- third_party/psimd/CMakeLists.txt.orig      2025-08-19 13:56:30.377607952 +0000
++++ third_party/psimd/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR)
++CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
+ 
+ INCLUDE(GNUInstallDirs)
+ 
Index: pkgsrc/math/py-torch/patches/patch-third__party_tensorpipe_third__party_libuv_CMakeLists.txt
diff -u /dev/null pkgsrc/math/py-torch/patches/patch-third__party_tensorpipe_third__party_libuv_CMakeLists.txt:1.1
--- /dev/null   Tue Aug 19 15:05:39 2025
+++ pkgsrc/math/py-torch/patches/patch-third__party_tensorpipe_third__party_libuv_CMakeLists.txt        Tue Aug 19 15:05:39 2025
@@ -0,0 +1,12 @@
+$NetBSD: patch-third__party_tensorpipe_third__party_libuv_CMakeLists.txt,v 1.1 2025/08/19 15:05:39 wiz Exp $
+
+Fix build with cmake 4.
+
+--- third_party/tensorpipe/third_party/libuv/CMakeLists.txt.orig       2025-08-19 14:10:52.294454572 +0000
++++ third_party/tensorpipe/third_party/libuv/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.4)
++cmake_minimum_required(VERSION 3.5)
+ project(libuv LANGUAGES C)
+ 
+ cmake_policy(SET CMP0057 NEW) # Enable IN_LIST operator



Home | Main Index | Thread Index | Old Index