pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/webkit-gtk webkit-gtk: Naive implementation of com...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/69c18c1e5f8b
branches:  trunk
changeset: 331923:69c18c1e5f8b
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Mar 27 10:50:30 2019 +0000

description:
webkit-gtk: Naive implementation of computeRAMSize for SunOS.

diffstat:

 www/webkit-gtk/distinfo                                 |   4 ++--
 www/webkit-gtk/patches/patch-Source_WTF_wtf_RAMSize.cpp |  13 +++++++++----
 2 files changed, 11 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r 0bf74c449149 -r 69c18c1e5f8b www/webkit-gtk/distinfo
--- a/www/webkit-gtk/distinfo   Wed Mar 27 10:16:34 2019 +0000
+++ b/www/webkit-gtk/distinfo   Wed Mar 27 10:50:30 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.118 2019/03/13 20:49:40 leot Exp $
+$NetBSD: distinfo,v 1.119 2019/03/27 10:50:30 jperkin Exp $
 
 SHA1 (webkitgtk-2.24.0.tar.xz) = 737fc7a6f5b5b5e2844c8488e60196d61802a952
 RMD160 (webkitgtk-2.24.0.tar.xz) = 6527bf43374911dd82943757ae2ba622d1792722
@@ -16,7 +16,7 @@
 SHA1 (patch-Source_ThirdParty_gtest_include_gtest_internal_gtest-port.h) = a5454eb891ad1f9d8285c28af2e9efb4ff439e6b
 SHA1 (patch-Source_WTF_wtf_FileSystem.cpp) = 9d6204ce6663f3b32d195e307540c5cc5e7a7988
 SHA1 (patch-Source_WTF_wtf_Platform.h) = 584720f4e248ff7e51166c267d08954786c28ab7
-SHA1 (patch-Source_WTF_wtf_RAMSize.cpp) = 21e442fc0025f7eb0a90f491d4bdfd35e26baadb
+SHA1 (patch-Source_WTF_wtf_RAMSize.cpp) = b440e7041f72e76ab840977fc4d48d6dd32ed2ed
 SHA1 (patch-Source_WTF_wtf_StackBounds.cpp) = 22a71daac8443f079ad8bcc7285cfd7319c972b3
 SHA1 (patch-Source_WebCore_Scripts_check-xcfilelists.sh) = 2a7ff15a2ec01a77481f85a6ca613bb7a3c18355
 SHA1 (patch-Source_WebCore_Scripts_generate-unified-sources.sh) = 740eb33931b6f9cb8008748323235f23466328dc
diff -r 0bf74c449149 -r 69c18c1e5f8b www/webkit-gtk/patches/patch-Source_WTF_wtf_RAMSize.cpp
--- a/www/webkit-gtk/patches/patch-Source_WTF_wtf_RAMSize.cpp   Wed Mar 27 10:16:34 2019 +0000
+++ b/www/webkit-gtk/patches/patch-Source_WTF_wtf_RAMSize.cpp   Wed Mar 27 10:50:30 2019 +0000
@@ -1,13 +1,16 @@
-$NetBSD: patch-Source_WTF_wtf_RAMSize.cpp,v 1.2 2019/03/13 20:49:40 leot Exp $
+$NetBSD: patch-Source_WTF_wtf_RAMSize.cpp,v 1.3 2019/03/27 10:50:30 jperkin Exp $
 
-Add support for NetBSD.
+Add support for NetBSD and SunOS.
 
 --- Source/WTF/wtf/RAMSize.cpp.orig    2019-02-12 11:21:17.000000000 +0000
 +++ Source/WTF/wtf/RAMSize.cpp
-@@ -35,13 +35,16 @@
+@@ -35,13 +35,19 @@
  #if OS(LINUX)
  #include <sys/sysinfo.h>
  #endif // OS(LINUX)
++#if OS(SOLARIS)
++#include <unistd.h>
++#endif
 +#if OS(NETBSD)
 +#include <sys/sysctl.h>
 +#endif // OS(NETBSD)
@@ -22,10 +25,12 @@
  static const size_t ramSizeGuess = 512 * MB;
  #endif
  
-@@ -59,9 +62,18 @@ static size_t computeRAMSize()
+@@ -59,9 +65,20 @@ static size_t computeRAMSize()
      struct sysinfo si;
      sysinfo(&si);
      return si.totalram * si.mem_unit;
++#elif OS(SOLARIS)
++    return (sysconf(_SC_PHYS_PAGES) * sysconf(_SC_PAGESIZE));
 +#elif OS(NETBSD)
 +    int mib[2];
 +    size_t len, totalram;



Home | Main Index | Thread Index | Old Index