pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/cmake cmake: fix build under netbsd-6



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8cec0e5e79ee
branches:  trunk
changeset: 361685:8cec0e5e79ee
user:      maya <maya%pkgsrc.org@localhost>
date:      Mon Apr 24 22:48:48 2017 +0000

description:
cmake: fix build under netbsd-6

don't use DT_RUNPATH if it's not defined
include cstdlib as our patch uses exit

from yancm via pkgsrc-users

diffstat:

 devel/cmake/distinfo                                     |   5 ++-
 devel/cmake/patches/patch-Source_CursesDialog_ccmake.cxx |  15 ++++++++++--
 devel/cmake/patches/patch-Source_cmELF.cxx               |  18 ++++++++++++++++
 3 files changed, 33 insertions(+), 5 deletions(-)

diffs (75 lines):

diff -r 802a734312cf -r 8cec0e5e79ee devel/cmake/distinfo
--- a/devel/cmake/distinfo      Mon Apr 24 21:47:47 2017 +0000
+++ b/devel/cmake/distinfo      Mon Apr 24 22:48:48 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.97 2017/04/11 20:18:54 adam Exp $
+$NetBSD: distinfo,v 1.98 2017/04/24 22:48:48 maya Exp $
 
 SHA1 (cmake-3.8.0.tar.gz) = 660ec06a46b46dc5d675371a2256ec739f8bb8b7
 RMD160 (cmake-3.8.0.tar.gz) = 30dacd3b01f98fbd47721b201e48e8fe776082da
@@ -7,7 +7,8 @@
 SHA1 (patch-CMakeLists.txt) = a0b03f2fad5ea174095c4fe52cea67d94cf46e2d
 SHA1 (patch-Modules_FindCurses.cmake) = 09fcd7adfbc2dfc2cd8af4e047d870a5243d77dc
 SHA1 (patch-Modules_FindX11.cmake) = 124a2d51155cb4455e8b829dc74598cbd50a4e1c
-SHA1 (patch-Source_CursesDialog_ccmake.cxx) = d32233df33f057b1468bc487adb66eaa9ac1a7c9
+SHA1 (patch-Source_CursesDialog_ccmake.cxx) = 1685973706bd2041422e5f8da12634c6c0695714
+SHA1 (patch-Source_cmELF.cxx) = e1629ff181c5757fad098ee1534680bf7e24cb64
 SHA1 (patch-Utilities_KWIML_CMakeLists.txt) = e4bdf9fc58757e87bf7e3e3e195839eededbc796
 SHA1 (patch-aa) = bab24334e025b7c1bf7caa2e69d6a439cc421ea9
 SHA1 (patch-ab) = d1b39bdcd654f2a4fc63463cd20de656cce3cf8f
diff -r 802a734312cf -r 8cec0e5e79ee devel/cmake/patches/patch-Source_CursesDialog_ccmake.cxx
--- a/devel/cmake/patches/patch-Source_CursesDialog_ccmake.cxx  Mon Apr 24 21:47:47 2017 +0000
+++ b/devel/cmake/patches/patch-Source_CursesDialog_ccmake.cxx  Mon Apr 24 22:48:48 2017 +0000
@@ -1,10 +1,19 @@
-$NetBSD: patch-Source_CursesDialog_ccmake.cxx,v 1.3 2017/04/11 20:18:54 adam Exp $
+$NetBSD: patch-Source_CursesDialog_ccmake.cxx,v 1.4 2017/04/24 22:48:48 maya Exp $
 
 initscr() error path
+include cstdlib for exit
 
 --- Source/CursesDialog/ccmake.cxx.orig        2017-04-10 15:23:06.000000000 +0000
 +++ Source/CursesDialog/ccmake.cxx
-@@ -49,7 +49,11 @@ void onsig(int /*unused*/)
+@@ -11,6 +11,7 @@
+ #include "cmake.h"
+ 
+ #include <cmsys/Encoding.hxx>
++#include <cstdlib>
+ #include <iostream>
+ #include <signal.h>
+ #include <string.h>
+@@ -49,7 +50,11 @@ void onsig(int /*unused*/)
  {
    if (cmCursesForm::CurrentForm) {
      endwin();
@@ -17,7 +26,7 @@
      noecho();             /* Echo off */
      cbreak();             /* nl- or cr not needed */
      keypad(stdscr, true); /* Use key symbols as KEY_DOWN */
-@@ -124,7 +128,10 @@ int main(int argc, char const* const* ar
+@@ -124,7 +129,10 @@ int main(int argc, char const* const* ar
      cmCursesForm::DebugStart();
    }
  
diff -r 802a734312cf -r 8cec0e5e79ee devel/cmake/patches/patch-Source_cmELF.cxx
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cmake/patches/patch-Source_cmELF.cxx        Mon Apr 24 22:48:48 2017 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-Source_cmELF.cxx,v 1.6 2017/04/24 22:48:48 maya Exp $
+
+Don't use DT_RUNPATH if it's not defined (netbsd-6)
+
+--- Source/cmELF.cxx.orig      2017-04-10 15:23:07.000000000 +0000
++++ Source/cmELF.cxx
+@@ -675,7 +675,11 @@ cmELF::StringEntry const* cmELFInternalI
+ // External class implementation.
+ 
+ const long cmELF::TagRPath = DT_RPATH;
++#ifdef DT_RUNPATH
+ const long cmELF::TagRunPath = DT_RUNPATH;
++#else
++const long cmELF::TagRunPath = 0;
++#endif
+ 
+ #ifdef DT_MIPS_RLD_MAP_REL
+ const long cmELF::TagMipsRldMapRel = DT_MIPS_RLD_MAP_REL;



Home | Main Index | Thread Index | Old Index