]> git.armaanb.net Git - asd-repo.git/commitdiff
cmake: new package at 3.20.5
authorArmaan Bhojwani <me@armaanb.net>
Wed, 30 Jun 2021 03:49:58 +0000 (23:49 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Wed, 30 Jun 2021 23:15:19 +0000 (19:15 -0400)
cmake/build [new file with mode: 0755]
cmake/checksums [new file with mode: 0644]
cmake/depends [new file with mode: 0644]
cmake/patches/cmake-no-execinfo.patch [new file with mode: 0644]
cmake/sources [new file with mode: 0644]
cmake/version [new file with mode: 0644]

diff --git a/cmake/build b/cmake/build
new file mode 100755 (executable)
index 0000000..2dea23f
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+patch -p1 < cmake-no-execinfo.patch
+
+./configure \
+               --prefix=/usr \
+               --system-curl \
+               --system-expat \
+               --system-zlib \
+               --system-bzip2
+
+make
+make DESTDIR="$1" install
+
+rm -rf "$1/usr/doc"
+rm -rf "$1/usr/share/cmake"*/Help
diff --git a/cmake/checksums b/cmake/checksums
new file mode 100644 (file)
index 0000000..56ff7e3
--- /dev/null
@@ -0,0 +1,2 @@
+12c8040ef5c6f1bc5b8868cede16bb7926c18980f59779e299ab52cbc6f15bb0
+93f5582efd076673f9bcb3e639bd594e378954a5a3130e5921027ede23c3325c
diff --git a/cmake/depends b/cmake/depends
new file mode 100644 (file)
index 0000000..1a51841
--- /dev/null
@@ -0,0 +1,6 @@
+bzip2
+curl
+expat
+libressl
+linux-headers make
+zlib
diff --git a/cmake/patches/cmake-no-execinfo.patch b/cmake/patches/cmake-no-execinfo.patch
new file mode 100644 (file)
index 0000000..fd1e715
--- /dev/null
@@ -0,0 +1,52 @@
+diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
+index ed1cdc0..d3afe21 100644
+--- a/Source/kwsys/SystemInformation.cxx
++++ b/Source/kwsys/SystemInformation.cxx
+@@ -150,18 +150,8 @@ typedef struct rlimit ResourceLimitType;
+ #  include <OS.h>
+ #endif
+-#if defined(KWSYS_SYSTEMINFORMATION_HAS_BACKTRACE)
+-#  include <execinfo.h>
+-#  if defined(KWSYS_SYSTEMINFORMATION_HAS_CPP_DEMANGLE)
+-#    include <cxxabi.h>
+-#  endif
+-#  if defined(KWSYS_SYSTEMINFORMATION_HAS_SYMBOL_LOOKUP)
+-#    include <dlfcn.h>
+-#  endif
+-#else
+ #  undef KWSYS_SYSTEMINFORMATION_HAS_CPP_DEMANGLE
+ #  undef KWSYS_SYSTEMINFORMATION_HAS_SYMBOL_LOOKUP
+-#endif
+ #include <cctype> // int isdigit(int c);
+ #include <cstdio>
+diff --git a/Source/kwsys/kwsysPlatformTestsCXX.cxx b/Source/kwsys/kwsysPlatformTestsCXX.cxx
+index 0bfa20e..0208417 100644
+--- a/Source/kwsys/kwsysPlatformTestsCXX.cxx
++++ b/Source/kwsys/kwsysPlatformTestsCXX.cxx
+@@ -102,24 +102,6 @@ int main()
+ }
+ #endif
+-#ifdef TEST_KWSYS_CXX_HAS_BACKTRACE
+-#  if defined(__PATHSCALE__) || defined(__PATHCC__) ||                        \
+-    (defined(__LSB_VERSION__) && (__LSB_VERSION__ < 41))
+-backtrace does not work with this compiler or os
+-#  endif
+-#  if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
+-#    define _GNU_SOURCE
+-#  endif
+-#  include <execinfo.h>
+-int main()
+-{
+-  void* stackSymbols[256];
+-  backtrace(stackSymbols, 256);
+-  backtrace_symbols(&stackSymbols[0], 1);
+-  return 0;
+-}
+-#endif
+-
+ #ifdef TEST_KWSYS_CXX_HAS_DLADDR
+ #  if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
+ #    define _GNU_SOURCE
diff --git a/cmake/sources b/cmake/sources
new file mode 100644 (file)
index 0000000..0e66b45
--- /dev/null
@@ -0,0 +1,2 @@
+https://cmake.org/files/v3.20/cmake-3.20.5.tar.gz
+patches/cmake-no-execinfo.patch
diff --git a/cmake/version b/cmake/version
new file mode 100644 (file)
index 0000000..94cd8a6
--- /dev/null
@@ -0,0 +1 @@
+3.20.5 1