summaryrefslogtreecommitdiff
path: root/net/omniORB/patches
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2010-09-01 15:52:58 +0000
committerdrochner <drochner@pkgsrc.org>2010-09-01 15:52:58 +0000
commite28b29b0905268fbdc17eb2eb8603a6dfd315fc3 (patch)
tree50488234214055ff7af9b34dee37068b540f553a /net/omniORB/patches
parentbd4fb7a0ed5274898f42ecc668567a49b7bf5714 (diff)
downloadpkgsrc-e28b29b0905268fbdc17eb2eb8603a6dfd315fc3.tar.gz
add omniORB-4.1.4, a CORBA implementation, from Ian Zagorskih per pkgsrc-wip
Diffstat (limited to 'net/omniORB/patches')
-rw-r--r--net/omniORB/patches/patch-aa13
-rw-r--r--net/omniORB/patches/patch-ad14
-rw-r--r--net/omniORB/patches/patch-ae17
-rw-r--r--net/omniORB/patches/patch-af63
4 files changed, 107 insertions, 0 deletions
diff --git a/net/omniORB/patches/patch-aa b/net/omniORB/patches/patch-aa
new file mode 100644
index 00000000000..65a2aa3f9e6
--- /dev/null
+++ b/net/omniORB/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/09/01 15:52:58 drochner Exp $
+
+--- bin/scripts/omkdirhier.orig 2004-02-11 21:36:28.000000000 +0600
++++ bin/scripts/omkdirhier
+@@ -81,7 +81,7 @@ do
+ fi
+ done
+
+- mkdir $paths || status=$?
++ mkdir -m 0755 $paths || status=$?
+
+ break
+ }
diff --git a/net/omniORB/patches/patch-ad b/net/omniORB/patches/patch-ad
new file mode 100644
index 00000000000..fddf700b6d2
--- /dev/null
+++ b/net/omniORB/patches/patch-ad
@@ -0,0 +1,14 @@
+$NetBSD: patch-ad,v 1.1.1.1 2010/09/01 15:52:58 drochner Exp $
+
+--- include/omnithread.h.orig 2004-07-02 02:11:21.000000000 +0700
++++ include/omnithread.h
+@@ -151,6 +151,9 @@ class omni_thread;
+ #elif defined(__irix__)
+ #include <omnithread/posix.h>
+
++#elif defined(__netbsd__)
++#include <omnithread/posix.h>
++
+ #elif defined(__freebsd__)
+ #include <omnithread/posix.h>
+
diff --git a/net/omniORB/patches/patch-ae b/net/omniORB/patches/patch-ae
new file mode 100644
index 00000000000..c824d9245ed
--- /dev/null
+++ b/net/omniORB/patches/patch-ae
@@ -0,0 +1,17 @@
+$NetBSD: patch-ae,v 1.1.1.1 2010/09/01 15:52:58 drochner Exp $
+
+--- mk/beforeauto.mk.in.orig 2007-05-11 12:17:21.000000000 +0200
++++ mk/beforeauto.mk.in
+@@ -1030,7 +1030,11 @@ endif
+ ifdef NetBSD
+ IMPORT_CPPFLAGS += -D__netbsd__
+
+-OMNITHREAD_CPPFLAGS = -D_REENTRANT
++CLINKOPTIONS = $(CDEBUGFLAGS) $(COPTIONS) -Wl,-rpath,$(INSTALLLIBDIR)
++CXXLINKOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) -Wl,-rpath,$(INSTALLLIBDIR)
++SharedLibraryPlatformLinkFlagsTemplate = $(CXXLINKOPTIONS) -shared -Wl,-soname,$$soname
++
++OMNITHREAD_CPPFLAGS = -D_REENTRANT -D_THREAD_SAFE
+ OMNITHREAD_POSIX_CPPFLAGS = -DUsePthread -DPthreadDraftVersion=10
+ OMNITHREAD_LIB += -pthread
+ endif
diff --git a/net/omniORB/patches/patch-af b/net/omniORB/patches/patch-af
new file mode 100644
index 00000000000..c4faf397c75
--- /dev/null
+++ b/net/omniORB/patches/patch-af
@@ -0,0 +1,63 @@
+$NetBSD: patch-af,v 1.1.1.1 2010/09/01 15:52:58 drochner Exp $
+
+--- src/appl/omniNames/omniNames.cc.orig 2008-02-05 17:44:52.000000000 +0100
++++ src/appl/omniNames/omniNames.cc
+@@ -105,7 +105,9 @@ usage()
+ int
+ main(int argc, char **argv)
+ {
++ int devnull = -1;
+ int port = 0;
++ pid_t proc = 0;
+ const char* logdir = 0;
+ const char* errlog = 0;
+ CORBA::Boolean ignoreport = 0;
+@@ -122,6 +124,48 @@ main(int argc, char **argv)
+ int new_argc = 1;
+ char** new_argv = new char*[argc];
+
++ /* Daemonize part 1: Close all file descriptors */
++ devnull = open("/dev/null", O_RDWR);
++ if (devnull == -1)
++ {
++ perror("/dev/null");
++ exit(EXIT_FAILURE);
++ }
++
++ close(STDIN_FILENO);
++ if (dup2(devnull, STDIN_FILENO) == -1)
++ {
++ perror("dup2 (STDIN)");
++ exit(EXIT_FAILURE);
++ }
++
++ close(STDOUT_FILENO);
++ if (dup2(devnull, STDOUT_FILENO) == -1)
++ {
++ perror("dup2 (STDOUT)");
++ exit(EXIT_FAILURE);
++ }
++
++ close(STDERR_FILENO);
++ if (dup2(devnull, STDERR_FILENO) == -1)
++ {
++ perror("dup2 (STDERR)");
++ exit(EXIT_FAILURE);
++ }
++
++ /* Daemonize part 1: Close all file descriptors */
++ proc = fork();
++ if (proc == -1)
++ {
++ perror("fork");
++ exit(EXIT_FAILURE);
++ }
++ else if (proc != 0)
++ {
++ /* Parent process */
++ exit(EXIT_SUCCESS);
++ }
++
+ new_argv[0] = argv[0];
+
+ // Process command line arguments