From: ndowens <ndowens@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [NoMerge] cmake: update to 3.19.0
Date: Sat, 21 Nov 2020 01:59:34 +0100 [thread overview]
Message-ID: <20201121005934.DnOOpKNNg019GqvjhqeR7LavEpAzLlBrDC-oQcCUXoE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26544@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 321 bytes --]
There is an updated pull request by ndowens against master on the void-packages repository
https://github.com/ndowens/void-packages cmake
https://github.com/void-linux/void-packages/pull/26544
[NoMerge] cmake: update to 3.19.0
A patch file from https://github.com/void-linux/void-packages/pull/26544.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cmake-26544.patch --]
[-- Type: text/x-diff, Size: 10192 bytes --]
From 21f7bb71b59ce0f32a6bc8725ec9184ed6b96e5c Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Thu, 19 Nov 2020 19:18:01 -0600
Subject: [PATCH 1/3] cmake-gui: update to 3.19.0
---
srcpkgs/cmake-gui/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cmake-gui/template b/srcpkgs/cmake-gui/template
index 0dff4e8c853..6d4ad27031b 100644
--- a/srcpkgs/cmake-gui/template
+++ b/srcpkgs/cmake-gui/template
@@ -1,6 +1,6 @@
# Template file for 'cmake-gui'
pkgname=cmake-gui
-version=3.18.4
+version=3.19.0
revision=1
wrksrc="cmake-${version}"
build_style=cmake
@@ -17,11 +17,11 @@ makedepends="jsoncpp-devel libarchive-devel libcurl-devel libuv-devel
depends="desktop-file-utils shared-mime-info"
checkdepends="pax pkg-config"
short_desc="Cross-platform, open-source build system - Qt GUI"
-maintainer="Nathan Owens <ndowens04@gmail.com>"
+maintainer="Nathan Owens <ndowens@artixlinux.org>"
license="LGPL-2.1-or-later, GPL-3.0-or-later, BSD-3-Clause"
homepage="https://www.cmake.org"
distfiles="https://www.cmake.org/files/v${version%.*}/cmake-${version}.tar.gz"
-checksum=597c61358e6a92ecbfad42a9b5321ddd801fc7e7eca08441307c9138382d4f77
+checksum=fdda688155aa7e72b7c63ef6f559fca4b6c07382ea6dca0beb5f45aececaf493
do_install() {
# We are only interested in cmake-gui.
From b9def24bda56ad279a81b94cc2d4320b09265fa4 Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Thu, 19 Nov 2020 19:02:23 -0600
Subject: [PATCH 2/3] cmake: update to 3.19.0
---
srcpkgs/cmake/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/cmake/template b/srcpkgs/cmake/template
index 0955f2595fa..24dc0785af9 100644
--- a/srcpkgs/cmake/template
+++ b/srcpkgs/cmake/template
@@ -1,6 +1,6 @@
# Template file for 'cmake'
pkgname=cmake
-version=3.18.4
+version=3.19.0
revision=1
build_style=cmake
configure_args="-DCMAKE_DOC_DIR=/share/doc/cmake
@@ -20,7 +20,7 @@ maintainer="Nathan Owens <ndowens04@gmail.com>"
license="LGPL-2.1-or-later, BSD-3-Clause"
homepage="https://www.cmake.org"
distfiles="https://www.cmake.org/files/v${version%.*}/${pkgname}-${version}.tar.gz"
-checksum=597c61358e6a92ecbfad42a9b5321ddd801fc7e7eca08441307c9138382d4f77
+checksum=fdda688155aa7e72b7c63ef6f559fca4b6c07382ea6dca0beb5f45aececaf493
pre_check() {
# use ctest of this build instead of requirig cmake to test cmake...
From 5b6149a96a56d6d1bee89cba30074fe88f23c38e Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Fri, 20 Nov 2020 18:24:28 -0600
Subject: [PATCH 3/3] cmake-bootstrap: update to 3.19.0
---
...001-We-only-want-a-half-baked-cmake.patch} | 49 +++++++++++++------
.../0002-Fix-undefined-CMAKE_DOC_DIR.patch | 27 ++++++++++
srcpkgs/cmake-bootstrap/template | 6 +--
3 files changed, 64 insertions(+), 18 deletions(-)
rename srcpkgs/cmake-bootstrap/patches/{only-want-half-baked-cmake.patch => 0001-We-only-want-a-half-baked-cmake.patch} (73%)
create mode 100644 srcpkgs/cmake-bootstrap/patches/0002-Fix-undefined-CMAKE_DOC_DIR.patch
diff --git a/srcpkgs/cmake-bootstrap/patches/only-want-half-baked-cmake.patch b/srcpkgs/cmake-bootstrap/patches/0001-We-only-want-a-half-baked-cmake.patch
similarity index 73%
rename from srcpkgs/cmake-bootstrap/patches/only-want-half-baked-cmake.patch
rename to srcpkgs/cmake-bootstrap/patches/0001-We-only-want-a-half-baked-cmake.patch
index 07279cf6887..5eb5347aa23 100644
--- a/srcpkgs/cmake-bootstrap/patches/only-want-half-baked-cmake.patch
+++ b/srcpkgs/cmake-bootstrap/patches/0001-We-only-want-a-half-baked-cmake.patch
@@ -1,17 +1,27 @@
+From 87468f753d9732eac35a80217638a51cd106e0eb Mon Sep 17 00:00:00 2001
+From: Nathan Owens <ndowens@artixlinux.org>
+Date: Fri, 20 Nov 2020 18:55:09 -0600
+Subject: [PATCH 1/2] We only want a half-baked-cmake
+
+---
+ Source/cmSystemTools.cxx | 7 +----
+ bootstrap | 67 ++--------------------------------------
+ 2 files changed, 3 insertions(+), 71 deletions(-)
+
diff --git Source/cmSystemTools.cxx Source/cmSystemTools.cxx
-index 1e78d36..a678122 100644
+index 97440d2..747cedc 100644
--- Source/cmSystemTools.cxx
+++ Source/cmSystemTools.cxx
-@@ -1988,7 +1988,7 @@ void cmSystemTools::FindCMakeResources(const char* argv0)
+@@ -2141,7 +2141,7 @@ void cmSystemTools::FindCMakeResources(const char* argv0)
#ifdef CMAKE_BOOTSTRAP
// The bootstrap cmake does not provide the other tools,
// so use the directory where they are about to be built.
- exe_dir = CMAKE_BOOTSTRAP_BINARY_DIR "/bin";
-+ // this cmake will be installed to system directory
++ // this cmake will be installed to system directory
#endif
cmSystemToolsCTestCommand =
cmStrCat(exe_dir, "/ctest", cmSystemTools::GetExecutableExtension());
-@@ -2010,7 +2010,6 @@ void cmSystemTools::FindCMakeResources(const char* argv0)
+@@ -2163,7 +2163,6 @@ void cmSystemTools::FindCMakeResources(const char* argv0)
cmSystemToolsCMClDepsCommand.clear();
}
@@ -19,8 +29,8 @@ index 1e78d36..a678122 100644
// Install tree has
// - "<prefix><CMAKE_BIN_DIR>/cmake"
// - "<prefix><CMAKE_DATA_DIR>"
-@@ -2041,10 +2040,6 @@ void cmSystemTools::FindCMakeResources(const char* argv0)
- }
+@@ -2204,10 +2203,6 @@ void cmSystemTools::FindCMakeResources(const char* argv0)
+ cmSystemToolsHTMLDoc = cmStrCat(dir, "/Utilities/Sphinx/html");
}
}
-#else
@@ -31,10 +41,10 @@ index 1e78d36..a678122 100644
std::string const& cmSystemTools::GetCMakeCommand()
diff --git bootstrap bootstrap
-index 04067dc..832a7ab 100755
+index 7ec3687..4500b6e 100755
--- bootstrap
+++ bootstrap
-@@ -812,14 +812,6 @@ cmake_try_run ()
+@@ -833,14 +833,6 @@ cmake_try_run ()
echo "Test failed to produce executable"
return 2
fi
@@ -49,7 +59,7 @@ index 04067dc..832a7ab 100755
return 0
}
-@@ -839,13 +831,6 @@ cmake_try_make ()
+@@ -860,14 +852,6 @@ cmake_try_make ()
echo "${COMPILER} does not produce output"
return 2
fi
@@ -60,10 +70,11 @@ index 04067dc..832a7ab 100755
- echo "${MAKE_PROC} produces strange executable"
- return 3
- fi
- echo "${MAKE_PROC} works"
+- echo "${MAKE_PROC} works"
return 0
}
-@@ -1444,8 +1429,8 @@ cmake_report cmVersionConfig.h${_tmp} "#define CMake_VERSION \"${cmake_version}\
+
+@@ -1554,8 +1538,8 @@ cmake_report cmVersionConfig.h${_tmp} "#define CMake_VERSION \"${cmake_version}\
cmake_report cmConfigure.h${_tmp} "#define CMAKE_BOOTSTRAP_SOURCE_DIR \"${CMAKE_BOOTSTRAP_SOURCE_DIR}\""
cmake_report cmConfigure.h${_tmp} "#define CMAKE_BOOTSTRAP_BINARY_DIR \"${CMAKE_BOOTSTRAP_BINARY_DIR}\""
cmake_report cmConfigure.h${_tmp} "#define CMake_DEFAULT_RECURSION_LIMIT 400"
@@ -73,8 +84,8 @@ index 04067dc..832a7ab 100755
+cmake_report cmConfigure.h${_tmp} "#define CMAKE_DATA_DIR \"$cmake_data_dir\""
cmake_report cmConfigure.h${_tmp} "#define CM_FALLTHROUGH"
- if ${cmake_system_mingw}; then
-@@ -1691,45 +1676,3 @@ if test -f "${cmake_init_file}"; then
+ if test "${cmake_bootstrap_generator}" = "Ninja"; then
+@@ -1932,50 +1916,3 @@ if test -f "${cmake_init_file}"; then
cat "${cmake_init_file}" >> "${cmake_bootstrap_dir}/InitialCacheFlags.cmake"
fi
)
@@ -82,10 +93,15 @@ index 04067dc..832a7ab 100755
-echo "---------------------------------------------"
-
-# Run make to build bootstrap cmake
+-if test "${cmake_bootstrap_generator}" = "Ninja"; then
+- ninja_v=-v
+-else
+- ninja_v=
+-fi
-if test "x${cmake_parallel_make}" != "x"; then
-- ${cmake_make_processor} ${cmake_make_flags}
+- ${cmake_make_processor} ${cmake_make_flags} ${ninja_v}
-else
-- ${cmake_make_processor}
+- ${cmake_make_processor} ${ninja_v}
-fi
-RES=$?
-if test "${RES}" -ne "0"; then
@@ -120,3 +136,6 @@ index 04067dc..832a7ab 100755
-
-# And we are done. Now just run make
-echo "CMake has bootstrapped. Now run ${cmake_make_processor}."
+--
+2.29.2
+
diff --git a/srcpkgs/cmake-bootstrap/patches/0002-Fix-undefined-CMAKE_DOC_DIR.patch b/srcpkgs/cmake-bootstrap/patches/0002-Fix-undefined-CMAKE_DOC_DIR.patch
new file mode 100644
index 00000000000..fc144737353
--- /dev/null
+++ b/srcpkgs/cmake-bootstrap/patches/0002-Fix-undefined-CMAKE_DOC_DIR.patch
@@ -0,0 +1,27 @@
+From 58b30bfd2dbb15c1409f4b450c133aa8ebd212c1 Mon Sep 17 00:00:00 2001
+From: Nathan Owens <ndowens@artixlinux.org>
+Date: Fri, 20 Nov 2020 18:56:18 -0600
+Subject: [PATCH 2/2] Fix undefined CMAKE_DOC_DIR
+
+---
+ Source/cmSystemTools.cxx | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git Source/cmSystemTools.cxx Source/cmSystemTools.cxx
+index 747cedc..d4fd9bf 100644
+--- Source/cmSystemTools.cxx
++++ Source/cmSystemTools.cxx
+@@ -11,6 +11,10 @@
+ # define _XOPEN_SOURCE 700
+ #endif
+
++#ifndef CMAKE_DOC_DIR
++# define CMAKE_DOC_DIR /usr/share/doc
++#endif
++
+ #include "cmSystemTools.h"
+
+ #include <cmext/algorithm>
+--
+2.29.2
+
diff --git a/srcpkgs/cmake-bootstrap/template b/srcpkgs/cmake-bootstrap/template
index 8ae4e76dce5..6cd85486c70 100644
--- a/srcpkgs/cmake-bootstrap/template
+++ b/srcpkgs/cmake-bootstrap/template
@@ -1,6 +1,6 @@
# Template file for 'cmake-bootstrap'
pkgname=cmake-bootstrap
-version=3.18.2
+version=3.19.0
revision=1
wrksrc=cmake-$version
bootstrap=yes
@@ -9,14 +9,14 @@ configure_args="--prefix=/usr --datadir=share/$pkgname --bindir=bin
--system-libs --no-system-curl --no-system-jsoncpp --no-system-nghttp2
--no-system-librhash --no-system-libuv --no-system-expat --no-qt-gui
${XBPS_MAKEJOBS:+--parallel=$XBPS_MAKEJOBS}"
-make_build_args="-C Bootstrap.cmk"
+make_build_args="-C Bootstrap.cmk cmake_doc_dir=/usr/share/doc"
makedepends="libarchive-devel"
short_desc="CMake (for bootstrapping only, not for normal usage)"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="LGPL-2.1-or-later, BSD-3-Clause"
homepage="https://www.cmake.org"
distfiles="https://www.cmake.org/files/v${version%.*}/cmake-${version}.tar.gz"
-checksum=5d4e40fc775d3d828c72e5c45906b4d9b59003c9433ff1b36a1cb552bbd51d7e
+checksum=fdda688155aa7e72b7c63ef6f559fca4b6c07382ea6dca0beb5f45aececaf493
conflicts="cmake>=0"
CFLAGS="-DCMAKE_USE_SYSTEM_ZLIB -DCMAKE_USE_SYSTEM_LIBARCHIVE"
next prev parent reply other threads:[~2020-11-21 0:59 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-21 0:25 [PR PATCH] " ndowens
2020-11-21 0:30 ` [PR REVIEW] " sgn
2020-11-21 0:35 ` ndowens
2020-11-21 0:40 ` ndowens
2020-11-21 0:40 ` sgn
2020-11-21 0:42 ` ndowens
2020-11-21 0:57 ` [PR PATCH] [Updated] " ndowens
2020-11-21 0:59 ` ndowens [this message]
2020-11-21 1:08 ` ndowens
2020-11-21 1:14 ` ndowens
2020-11-21 3:20 ` [PR PATCH] [Updated] " ndowens
2020-11-21 4:04 ` ndowens
2020-11-21 4:47 ` ndowens
2020-11-21 5:01 ` ndowens
2020-11-21 5:30 ` ndowens
2020-11-21 5:38 ` [PR REVIEW] " sgn
2020-11-21 5:38 ` sgn
2020-11-21 9:34 ` [PR REVIEW] " ndowens
2020-11-21 9:34 ` ndowens
2020-11-21 10:07 ` [PR REVIEW] " sgn
2020-11-21 10:08 ` sgn
2020-11-21 10:08 ` sgn
2020-11-21 15:20 ` [PR PATCH] [Updated] " ndowens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201121005934.DnOOpKNNg019GqvjhqeR7LavEpAzLlBrDC-oQcCUXoE@z \
--to=ndowens@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).