[packages/cmake] - added missing casts, release 2
qboosh
qboosh at pld-linux.org
Sat Oct 4 19:24:01 CEST 2025
commit 845d917af5467a7bc3380c08ccaf1bdfd06c9bb7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Oct 4 19:27:12 2025 +0200
- added missing casts, release 2
cmake-types.patch | 26 ++++++++++++++++++++++++++
cmake.spec | 4 +++-
2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/cmake.spec b/cmake.spec
index 752437d..995b252 100644
--- a/cmake.spec
+++ b/cmake.spec
@@ -19,7 +19,7 @@ Summary: Cross-platform, open-source make system
Summary(pl.UTF-8): Wieloplatformowy system make o otwartych źródłach
Name: cmake
Version: 3.31.8
-Release: 1
+Release: 2
License: BSD
Group: Development/Building
Source0: https://cmake.org/files/v3.31/%{name}-%{version}.tar.gz
@@ -30,6 +30,7 @@ Patch2: %{name}-jni.patch
Patch3: %{name}-findruby.patch
Patch4: %{name}-findruby2.patch
Patch5: disable-completness-check.patch
+Patch6: %{name}-types.patch
URL: https://cmake.org/
# system zlib,bzip2,xz,zstd used only when without system libarchive
BuildRequires: automake
@@ -155,6 +156,7 @@ Bashowe dopełnianie parametrów dla cmake'a.
%patch -P3 -p1
%patch -P4 -p1
%patch -P5 -p1
+%patch -P6 -p1
%{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' \
Modules/Compiler/XL-Fortran/cpp
diff --git a/cmake-types.patch b/cmake-types.patch
new file mode 100644
index 0000000..5492b9c
--- /dev/null
+++ b/cmake-types.patch
@@ -0,0 +1,26 @@
+--- cmake-3.31.8/Source/CTest/cmCTestCurl.cxx.orig 2025-06-12 15:51:05.000000000 +0200
++++ cmake-3.31.8/Source/CTest/cmCTestCurl.cxx 2025-10-04 19:01:28.349526827 +0200
+@@ -263,7 +263,7 @@ void cmCTestCurl::SetProxyType()
+ {
+ this->HTTPProxy.clear();
+ // this is the default
+- this->HTTPProxyType = CURLPROXY_HTTP;
++ this->HTTPProxyType = static_cast<curl_proxytype>(CURLPROXY_HTTP);
+ this->HTTPProxyAuth.clear();
+ if (cmSystemTools::GetEnv("HTTP_PROXY", this->HTTPProxy)) {
+ std::string port;
+@@ -275,11 +275,11 @@ void cmCTestCurl::SetProxyType()
+ if (cmSystemTools::GetEnv("HTTP_PROXY_TYPE", type)) {
+ // HTTP/SOCKS4/SOCKS5
+ if (type == "HTTP") {
+- this->HTTPProxyType = CURLPROXY_HTTP;
++ this->HTTPProxyType = static_cast<curl_proxytype>(CURLPROXY_HTTP);
+ } else if (type == "SOCKS4") {
+- this->HTTPProxyType = CURLPROXY_SOCKS4;
++ this->HTTPProxyType = static_cast<curl_proxytype>(CURLPROXY_SOCKS4);
+ } else if (type == "SOCKS5") {
+- this->HTTPProxyType = CURLPROXY_SOCKS5;
++ this->HTTPProxyType = static_cast<curl_proxytype>(CURLPROXY_SOCKS5);
+ }
+ }
+ cmSystemTools::GetEnv("HTTP_PROXY_USER", this->HTTPProxyAuth);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cmake.git/commitdiff/845d917af5467a7bc3380c08ccaf1bdfd06c9bb7
More information about the pld-cvs-commit
mailing list