pkgsrc-WIP-changes archive

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

openvas-manager: Fix build



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Tue Oct 11 23:37:07 2016 +0200
Changeset:	4e38776809b68f1601b488dc60de3762433adfc8

Modified Files:
	openvas-manager/distinfo
Added Files:
	openvas-manager/patches/patch-src_manage.c
	openvas-manager/patches/patch-src_manage__migrators.c
	openvas-manager/patches/patch-src_manage__sql.c
	openvas-manager/patches/patch-src_manage__sqlite3.c

Log Message:
openvas-manager: Fix build

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4e38776809b68f1601b488dc60de3762433adfc8

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

diffstat:
 openvas-manager/distinfo                           |  4 ++++
 openvas-manager/patches/patch-src_manage.c         | 17 ++++++++++++++
 .../patches/patch-src_manage__migrators.c          | 26 ++++++++++++++++++++++
 openvas-manager/patches/patch-src_manage__sql.c    | 14 ++++++++++++
 .../patches/patch-src_manage__sqlite3.c            | 14 ++++++++++++
 5 files changed, 75 insertions(+)

diffs:
diff --git a/openvas-manager/distinfo b/openvas-manager/distinfo
index c68a4f7..3df919d 100644
--- a/openvas-manager/distinfo
+++ b/openvas-manager/distinfo
@@ -7,3 +7,7 @@ Size (openvas-manager-6.0.9.tar.gz) = 1954878 bytes
 SHA1 (patch-CMakeLists.txt) = 2c6a430a623fc8376462a67143af8f0f6ebef5ce
 SHA1 (patch-doc_CMakeLists.txt) = 2a8d8f6758c9a71fecab36fcea6dce7053dc4052
 SHA1 (patch-src_CMakeLists.txt) = 52a67a5bf5c1cfc8a502eca25c47cf93ca1498a1
+SHA1 (patch-src_manage.c) = aa408259f773034e72bf1b6c041fad5f0e66ed24
+SHA1 (patch-src_manage__migrators.c) = aa3431ab846ed646c273575ba94fcdbe84fa7c16
+SHA1 (patch-src_manage__sql.c) = 67d4886908998401349261bb1c1f2fee74f252bc
+SHA1 (patch-src_manage__sqlite3.c) = 784e9e259a5140a83ef0a31a9613433ff1290f98
diff --git a/openvas-manager/patches/patch-src_manage.c b/openvas-manager/patches/patch-src_manage.c
new file mode 100644
index 0000000..0b799bf
--- /dev/null
+++ b/openvas-manager/patches/patch-src_manage.c
@@ -0,0 +1,17 @@
+$NetBSD$
+
+--- src/manage.c.orig	2016-08-25 12:15:47.000000000 +0000
++++ src/manage.c
+@@ -37,10 +37,12 @@
+  * running the tasks.
+  */
+ 
++#if !defined(__NetBSD__)
+ /* time.h in glibc2 needs this for strptime. */
+ #define _XOPEN_SOURCE
+ /* pthread_sigmask () needs this with glibc < 2.19 */
+ #define _GNU_SOURCE
++#endif
+ 
+ #include "manage.h"
+ #include "scanner.h"
diff --git a/openvas-manager/patches/patch-src_manage__migrators.c b/openvas-manager/patches/patch-src_manage__migrators.c
new file mode 100644
index 0000000..82a0798
--- /dev/null
+++ b/openvas-manager/patches/patch-src_manage__migrators.c
@@ -0,0 +1,26 @@
+$NetBSD$
+
+--- src/manage_migrators.c.orig	2015-08-03 05:52:13.000000000 +0000
++++ src/manage_migrators.c
+@@ -119,8 +119,10 @@
+  *       (name UNIQUE, password);
+  */
+ 
++#if !defined(__NetBSD__)
+ /* time.h in glibc2 needs this for strptime. */
+ #define _XOPEN_SOURCE
++#endif
+ 
+ #include <time.h>
+ #include <stdlib.h>
+@@ -132,6 +134,10 @@
+ #include <ctype.h>
+ #include <dirent.h>
+ 
++#if defined(__NetBSD__)
++#include <sys/wait.h>
++#endif
++
+ #include "manage_sql.h"
+ #include "sql.h"
+ #include "tracef.h"
diff --git a/openvas-manager/patches/patch-src_manage__sql.c b/openvas-manager/patches/patch-src_manage__sql.c
new file mode 100644
index 0000000..5c14d04
--- /dev/null
+++ b/openvas-manager/patches/patch-src_manage__sql.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- src/manage_sql.c.orig	2016-08-25 12:15:46.000000000 +0000
++++ src/manage_sql.c
+@@ -58,6 +58,9 @@
+ #include <unistd.h>
+ #include <sys/time.h>
+ #include <grp.h>
++#if defined(__NetBSD__)
++#include <libgen.h>
++#endif
+ 
+ #include <openvas/base/openvas_string.h>
+ #include <openvas/base/openvas_file.h>
diff --git a/openvas-manager/patches/patch-src_manage__sqlite3.c b/openvas-manager/patches/patch-src_manage__sqlite3.c
new file mode 100644
index 0000000..32c9644
--- /dev/null
+++ b/openvas-manager/patches/patch-src_manage__sqlite3.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- src/manage_sqlite3.c.orig	2016-08-25 12:15:47.000000000 +0000
++++ src/manage_sqlite3.c
+@@ -23,7 +23,9 @@
+  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+  */
+ 
++#if !defined(__NetBSD__)
+ #define _XOPEN_SOURCE /* Glibc2 needs this for strptime. */
++#endif
+ 
+ #include "sql.h"
+ #include "manage.h"


Home | Main Index | Thread Index | Old Index