openbsd-ports/www/chromium/patches/patch-base_base_paths_linux_cc
robert c480666f7d Instead of reserving 32MB of virtual memory let's reserve the quarter of
RLIMIT_DATA (ulimit -d) if RLIMIT_DATA is not 0 (unlimited).
If RLIMIT_DATA is 0 then the default 512MB reservation will be used.
Using 32MB made v8 use less memory for sure but it was a huge performance
loss too.
2011-06-02 07:21:14 +00:00

24 lines
786 B
Plaintext

$OpenBSD: patch-base_base_paths_linux_cc,v 1.4 2011/06/02 07:22:12 robert Exp $
--- base/base_paths_linux.cc.orig Fri May 20 10:35:20 2011
+++ base/base_paths_linux.cc Wed Jun 1 12:26:56 2011
@@ -5,7 +5,7 @@
#include "base/base_paths.h"
#include <unistd.h>
-#if defined(OS_FREEBSD)
+#if defined(OS_FREEBSD) || defined(OS_OPENBSD)
#include <sys/param.h>
#include <sys/sysctl.h>
#endif
@@ -55,6 +55,10 @@ bool PathProviderPosix(int key, FilePath* result) {
}
bin_dir[strlen(bin_dir)] = 0;
*result = FilePath(bin_dir);
+ return true;
+#elif defined(OS_OPENBSD)
+ *result = FilePath("/usr/local/chrome/chrome");
+ //*result = FilePath("/home/pobj/chromium-11.0.696.71/chromium-11.0.696.71/out/Release/chrome");
return true;
#endif
}