guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 6dbe4a87fc1a2ae91459205ea91a1ac293bb44f5
Author: Nicolas Graves <[email protected]>
AuthorDate: Tue Jul 8 13:38:04 2025 +0200

    gnu: safeint: Update to 3.0.28.
    
    * gnu/packages/cpp.scm (safeint): Update to 3.0.28.
---
 gnu/local.mk                                     |  1 +
 gnu/packages/cpp.scm                             |  6 ++--
 gnu/packages/patches/safeint-disable-tests.patch | 42 ++++++++++++++++++++++++
 3 files changed, 47 insertions(+), 2 deletions(-)

diff --git a/gnu/local.mk b/gnu/local.mk
index 1744f25f5f..a0c3803cc5 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2293,6 +2293,7 @@ dist_patch_DATA =                                         
\
   %D%/packages/patches/rw-igraph-0.10.patch                    \
   %D%/packages/patches/rxvt-unicode-fix-cursor-position.patch  \
   %D%/packages/patches/s7-flint-3.patch                        \
+  %D%/packages/patches/safeint-disable-tests.patch             \
   %D%/packages/patches/sage-safeguard-sage-getargspec-cython.patch \
   %D%/packages/patches/sajson-for-gemmi-numbers-as-strings.patch       \
   %D%/packages/patches/sajson-build-with-gcc10.patch           \
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index bb825ed08b..e060795da9 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -3664,7 +3664,7 @@ getopt(), getopt_long() and getopt_long_only().")
 (define-public safeint
   (package
     (name "safeint")
-    (version "3.0.27")
+    (version "3.0.28")
     (source
      (origin
        (method git-fetch)
@@ -3673,7 +3673,9 @@ getopt(), getopt_long() and getopt_long_only().")
               (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "01d2dpdhyw3lghmamknb6g39w2gg0sv53pgxlrs2la8h694z6x7s"))))
+        (base32 "0bgqvyz5zp4mqzkm9545r3564n52bcdnq8bjn6azhxdsmap26g56"))
+       (patches
+        (search-patches "safeint-disable-tests.patch"))))
     (build-system cmake-build-system)
     (arguments
      (list
diff --git a/gnu/packages/patches/safeint-disable-tests.patch 
b/gnu/packages/patches/safeint-disable-tests.patch
new file mode 100644
index 0000000000..baecd85b1b
--- /dev/null
+++ b/gnu/packages/patches/safeint-disable-tests.patch
@@ -0,0 +1,42 @@
+---
+ Test/GccTest/CMakeLists.txt | 18 ------------------
+ 1 file changed, 18 deletions(-)
+
+diff --git a/Test/GccTest/CMakeLists.txt b/Test/GccTest/CMakeLists.txt
+index 8a3bef4..9254d70 100644
+--- a/Test/GccTest/CMakeLists.txt
++++ b/Test/GccTest/CMakeLists.txt
+@@ -105,15 +105,6 @@ else()
+ 
+     target_compile_options(CompileTest_gcc PUBLIC -Wall)
+ 
+-    add_executable(CompileTest_gcc17
+-        ../CompileTest.cpp
+-        ../ConstExpr.cpp 
+-        ../CleanCompile.cpp
+-        ../../SafeInt.hpp
+-    )
+-
+-    target_compile_options(CompileTest_gcc17 PUBLIC -Wall -std=c++17)
+-
+     add_executable(CompileTest_gcc14
+         ../CompileTest.cpp
+         ../ConstExpr.cpp 
+@@ -132,15 +123,6 @@ else()
+ 
+     target_compile_options(CompileTest_gcc14_NoEH PUBLIC -Wall -std=c++14 
-fno-exceptions)
+ 
+-    add_executable(CompileTest_gcc98
+-    ../CompileTest.cpp
+-    ../ConstExpr.cpp 
+-    ../CleanCompile.cpp
+-    ../../SafeInt.hpp
+-    )
+-
+-    target_compile_options(CompileTest_gcc98 PUBLIC -D 
SAFEINT_USE_CPLUSCPLUS_98 -Wall -std=c++98 -fno-exceptions)
+-
+     add_executable(safe_math_test_gcc
+     ../c_safe_math/safe_math_test.c
+     ../c_safe_math/safe_math_test.h
+-- 
+2.50.1

Reply via email to