pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/qore-process-module



Module Name:    pkgsrc
Committed By:   nros
Date:           Fri Sep 22 08:20:03 UTC 2023

Modified Files:
        pkgsrc/devel/qore-process-module: distinfo
Added Files:
        pkgsrc/devel/qore-process-module/patches: patch-CMakeLists.txt
            patch-cmake_unix-config.h.cmake patch-src_QC__Process.qpp

Log Message:
qore-process-module: fix build on Illumos


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/qore-process-module/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/qore-process-module/patches/patch-CMakeLists.txt \
    pkgsrc/devel/qore-process-module/patches/patch-cmake_unix-config.h.cmake \
    pkgsrc/devel/qore-process-module/patches/patch-src_QC__Process.qpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/qore-process-module/distinfo
diff -u pkgsrc/devel/qore-process-module/distinfo:1.1 pkgsrc/devel/qore-process-module/distinfo:1.2
--- pkgsrc/devel/qore-process-module/distinfo:1.1       Wed Aug 16 19:02:35 2023
+++ pkgsrc/devel/qore-process-module/distinfo   Fri Sep 22 08:20:03 2023
@@ -1,5 +1,8 @@
-$NetBSD: distinfo,v 1.1 2023/08/16 19:02:35 nros Exp $
+$NetBSD: distinfo,v 1.2 2023/09/22 08:20:03 nros Exp $
 
 BLAKE2s (qore-process-module-1.0.5.tar.bz2) = f46e78735e354dad25e646dbf4b4b46c71209e0cd2efa495ed7ee08b7d9bd156
 SHA512 (qore-process-module-1.0.5.tar.bz2) = 3531b2bd864f58fbd7786abe0a26835c1e5fd0c71bc88fe5f376845ed30fb9009649e0fca3bc1a6abf3a327b33dbbb4115eed476372feacf395b40ed8a4200a4
 Size (qore-process-module-1.0.5.tar.bz2) = 2174282 bytes
+SHA1 (patch-CMakeLists.txt) = 6094854a676dfa0336c6e8d038ef820058246a9c
+SHA1 (patch-cmake_unix-config.h.cmake) = c266b42823abbd17449befdacf9510d3e2641fca
+SHA1 (patch-src_QC__Process.qpp) = f83d381e52d3ef676d586a6df0b1e81fe6a68109

Added files:

Index: pkgsrc/devel/qore-process-module/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/devel/qore-process-module/patches/patch-CMakeLists.txt:1.1
--- /dev/null   Fri Sep 22 08:20:03 2023
+++ pkgsrc/devel/qore-process-module/patches/patch-CMakeLists.txt       Fri Sep 22 08:20:03 2023
@@ -0,0 +1,16 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2023/09/22 08:20:03 nros Exp $
+
+* getloadavg is in sys/loadavg.h on Illumos
+
+--- CMakeLists.txt.orig        2022-12-19 17:46:51.000000000 +0000
++++ CMakeLists.txt
+@@ -37,6 +37,9 @@ endif()
+ include(CheckCXXSymbolExists)
+ check_cxx_symbol_exists(kill signal.h HAVE_KILL)
+ 
++include(CheckIncludeFiles)
++check_include_files("sys/types.h;sys/loadavg.h" HAVE_SYS_LOADAVG_H LANGUAGE CXX)
++
+ set(CPP_SRC
+     src/processpriv.cpp
+ )
Index: pkgsrc/devel/qore-process-module/patches/patch-cmake_unix-config.h.cmake
diff -u /dev/null pkgsrc/devel/qore-process-module/patches/patch-cmake_unix-config.h.cmake:1.1
--- /dev/null   Fri Sep 22 08:20:03 2023
+++ pkgsrc/devel/qore-process-module/patches/patch-cmake_unix-config.h.cmake    Fri Sep 22 08:20:03 2023
@@ -0,0 +1,10 @@
+$NetBSD: patch-cmake_unix-config.h.cmake,v 1.1 2023/09/22 08:20:03 nros Exp $
+
+* getloadavg is in sys/loadavg.h on Illumos
+
+--- cmake/unix-config.h.cmake.orig     2018-09-11 08:17:59.000000000 +0000
++++ cmake/unix-config.h.cmake
+@@ -1,2 +1,3 @@
+ #cmakedefine HAVE_KILL
++#cmakedefine HAVE_SYS_LOADAVG_H
+ 
Index: pkgsrc/devel/qore-process-module/patches/patch-src_QC__Process.qpp
diff -u /dev/null pkgsrc/devel/qore-process-module/patches/patch-src_QC__Process.qpp:1.1
--- /dev/null   Fri Sep 22 08:20:03 2023
+++ pkgsrc/devel/qore-process-module/patches/patch-src_QC__Process.qpp  Fri Sep 22 08:20:03 2023
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_QC__Process.qpp,v 1.1 2023/09/22 08:20:03 nros Exp $
+
+* getloadavg is in sys/loadavg.h on Illumos
+
+--- src/QC_Process.qpp.orig    2022-12-09 07:49:02.000000000 +0000
++++ src/QC_Process.qpp
+@@ -27,9 +27,15 @@
+ #include <qore/Qore.h>
+ 
+ #include "processpriv.h"
++#include "unix-config.h"
+ 
+ #include <cstdlib>
+ 
++#if defined(HAVE_SYS_LOADAVG_H)
++#include <sys/types.h>
++#include <sys/loadavg.h>
++#endif
++
+ #if defined(__linux__) || (defined(__APPLE__) && defined(__MACH__))
+ #define HAVE_PROCESS_GETMEMORYINFO 1
+ #define HAVE_PROCESS_CHECKPID 1



Home | Main Index | Thread Index | Old Index