From cbdb05ae2f680c5955c1679f411db3b5451787a1 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sun, 28 Oct 2018 12:15:47 +0100 Subject: [PATCH] Drop patches that have been applied upstream. --- debian/changelog | 5 ++ .../patches/GNUInstallDirs-kfreebsd-man.patch | 36 ------------- debian/patches/fix-ftbfs-on-kfreebsd.patch | 31 ----------- debian/patches/fix_ftbfs_on_kfreebsd2.patch | 23 -------- debian/patches/hurd_so_noexec.patch | 52 ------------------- debian/patches/series | 4 -- 6 files changed, 5 insertions(+), 146 deletions(-) delete mode 100644 debian/patches/GNUInstallDirs-kfreebsd-man.patch delete mode 100644 debian/patches/fix-ftbfs-on-kfreebsd.patch delete mode 100644 debian/patches/fix_ftbfs_on_kfreebsd2.patch delete mode 100644 debian/patches/hurd_so_noexec.patch diff --git a/debian/changelog b/debian/changelog index bf2081b9e..ebaa4cd4b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,11 @@ cmake (3.13.0~rc2-1) UNRELEASED; urgency=medium * New upstream release candidate. + * Drop patches that have been applied upstream: + - fix-ftbfs-on-kfreebsd.patch + - fix_ftbfs_on_kfreebsd2.patch + - hurd_so_noexec.patch + - GNUInstallDirs-kfreebsd-man.patch -- Felix Geyer Sun, 28 Oct 2018 12:10:24 +0100 diff --git a/debian/patches/GNUInstallDirs-kfreebsd-man.patch b/debian/patches/GNUInstallDirs-kfreebsd-man.patch deleted file mode 100644 index ba60509b4..000000000 --- a/debian/patches/GNUInstallDirs-kfreebsd-man.patch +++ /dev/null @@ -1,36 +0,0 @@ -From b2d7ab8bd17d0b5ccb1760e1058e670cea8eed49 Mon Sep 17 00:00:00 2001 -From: James Clarke -Date: Sun, 21 Oct 2018 09:59:11 +0100 -Subject: [PATCH] GNUInstallDirs: Don't use BSD info and man paths on - GNU/kFreeBSD - ---- - Modules/GNUInstallDirs.cmake | 2 +- - Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/Modules/GNUInstallDirs.cmake b/Modules/GNUInstallDirs.cmake -index 9dd464c8de..3dfcf8c959 100644 ---- a/Modules/GNUInstallDirs.cmake -+++ b/Modules/GNUInstallDirs.cmake -@@ -276,7 +276,7 @@ _GNUInstallDirs_cache_path(CMAKE_INSTALL_DATAROOTDIR "share" - _GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_DATADIR "${CMAKE_INSTALL_DATAROOTDIR}" - "Read-only architecture-independent data (DATAROOTDIR)") - --if(CMAKE_SYSTEM_NAME MATCHES "^(.*BSD|DragonFly)$") -+if(CMAKE_SYSTEM_NAME MATCHES "^(([^k].*)?BSD|DragonFly)$") - _GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_INFODIR "info" - "Info documentation (info)") - _GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_MANDIR "man" -diff --git a/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake b/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake -index b544ba6400..e00af581bc 100644 ---- a/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake -+++ b/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake -@@ -1,6 +1,6 @@ - include(RunCMake) - --if(SYSTEM_NAME MATCHES "^(.*BSD|DragonFly)$") -+if(SYSTEM_NAME MATCHES "^(([^k].*)?BSD|DragonFly)$") - set(EXPECT_BSD 1) - endif() - diff --git a/debian/patches/fix-ftbfs-on-kfreebsd.patch b/debian/patches/fix-ftbfs-on-kfreebsd.patch deleted file mode 100644 index 51c8ba82e..000000000 --- a/debian/patches/fix-ftbfs-on-kfreebsd.patch +++ /dev/null @@ -1,31 +0,0 @@ -From: Modestas Vainius -Subject: Fix FTBFS on GNU/kFreeBSD (and likely Gnu/Hurd) -Forwarded: yes -Origin: vendor - -The original failure [1] was caused by the fact that cxxabi.h execinfo.h etc. -includes where guarded more restrictively (e.g. additionally by __linux) than -the code which needs them (just by e.g. -KWSYS_SYSTEMINFORMATION_HAS_CPP_DEMANGLE). kFreeGNU has some of these headers -hence extend __linux ifdef to kFreeBSD and GNU Hurd as well. - -Ideally, the code should be fixed to have the same level of ifdef protection in -all places. - -[1] https://buildd.debian.org/status/fetch.php?pkg=cmake&arch=kfreebsd-amd64&ver=2.8.12-1&stamp=1383507045 - ---- - Source/kwsys/SystemInformation.cxx | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/Source/kwsys/SystemInformation.cxx -+++ b/Source/kwsys/SystemInformation.cxx -@@ -112,7 +112,7 @@ typedef int siginfo_t; - # endif - #endif - --#if defined(__linux) || defined(__sun) || defined(_SCO_DS) -+#if defined(__linux) || defined(__sun) || defined(_SCO_DS) || defined(__GLIBC__) || defined(__GNU__) - # include - # include - # include diff --git a/debian/patches/fix_ftbfs_on_kfreebsd2.patch b/debian/patches/fix_ftbfs_on_kfreebsd2.patch deleted file mode 100644 index cbc81bb1a..000000000 --- a/debian/patches/fix_ftbfs_on_kfreebsd2.patch +++ /dev/null @@ -1,23 +0,0 @@ -Description: Add missing libraries for kFreeBSD. -Author: Gregor Jasny -Origin: upstream, https://gitlab.kitware.com/cmake/cmake/commit/6b7b54d476a297b32f8f1521f3255052b9dda1b6 -Bug-Debian: https://bugs.debian.org/905138 -Bug: https://gitlab.kitware.com/cmake/cmake/issues/18375 - -diff --git a/bootstrap b/bootstrap -index 188193d9a9..416a3d6780 100755 ---- a/bootstrap -+++ b/bootstrap -@@ -1370,6 +1370,9 @@ else - uv_c_flags="${uv_c_flags} -D_GNU_SOURCE" - libs="${libs} -ldl -lrt" - ;; -+ *kFreeBSD*) -+ libs="${libs} -lkvm -lfreebsd-glue" -+ ;; - *BSD*) - libs="${libs} -lkvm" - ;; --- -2.18.0 - diff --git a/debian/patches/hurd_so_noexec.patch b/debian/patches/hurd_so_noexec.patch deleted file mode 100644 index a704c1f3e..000000000 --- a/debian/patches/hurd_so_noexec.patch +++ /dev/null @@ -1,52 +0,0 @@ -From c990649b8cec8bf875a22b1673228fab63368e5f Mon Sep 17 00:00:00 2001 -From: Svante Signell -Date: Wed, 3 Oct 2018 11:50:10 -0400 -Subject: [PATCH] Platform/GNU: Add Debian shared library permissions policy - -Copy the `CMAKE_INSTALL_SO_NO_EXE` setting from `Platform/Linux`. - -Fixes: #18376 ---- - Modules/Platform/GNU.cmake | 27 +++++++++++++++++++++++++++ - 1 file changed, 27 insertions(+) - -diff --git a/Modules/Platform/GNU.cmake b/Modules/Platform/GNU.cmake -index e8c3b657b6..fac29a8fa4 100644 ---- a/Modules/Platform/GNU.cmake -+++ b/Modules/Platform/GNU.cmake -@@ -8,6 +8,33 @@ set(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,") - set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,") - set(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic") - -+# Debian policy requires that shared libraries be installed without -+# executable permission. Fedora policy requires that shared libraries -+# be installed with the executable permission. Since the native tools -+# create shared libraries with execute permission in the first place a -+# reasonable policy seems to be to install with execute permission by -+# default. In order to support debian packages we provide an option -+# here. The option default is based on the current distribution, but -+# packagers can set it explicitly on the command line. -+if(DEFINED CMAKE_INSTALL_SO_NO_EXE) -+ # Store the decision variable in the cache. This preserves any -+ # setting the user provides on the command line. -+ set(CMAKE_INSTALL_SO_NO_EXE "${CMAKE_INSTALL_SO_NO_EXE}" CACHE INTERNAL -+ "Install .so files without execute permission.") -+else() -+ # Store the decision variable as an internal cache entry to avoid -+ # checking the platform every time. This option is advanced enough -+ # that only package maintainers should need to adjust it. They are -+ # capable of providing a setting on the command line. -+ if(EXISTS "/etc/debian_version") -+ set(CMAKE_INSTALL_SO_NO_EXE 1 CACHE INTERNAL -+ "Install .so files without execute permission.") -+ else() -+ set(CMAKE_INSTALL_SO_NO_EXE 0 CACHE INTERNAL -+ "Install .so files without execute permission.") -+ endif() -+endif() -+ - set(CMAKE_LIBRARY_ARCHITECTURE_REGEX "[a-z0-9_]+(-[a-z0-9_]+)?-gnu[a-z0-9_]*") - - include(Platform/UnixPaths) --- -2.18.1 diff --git a/debian/patches/series b/debian/patches/series index 0de85db60..8da2da8df 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,5 +1 @@ FindBoost_add_-lpthread_#563479.diff -fix-ftbfs-on-kfreebsd.patch -fix_ftbfs_on_kfreebsd2.patch -hurd_so_noexec.patch -GNUInstallDirs-kfreebsd-man.patch