pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/webkit-gtk



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Wed Mar 27 10:50:30 UTC 2019

Modified Files:
        pkgsrc/www/webkit-gtk: distinfo
        pkgsrc/www/webkit-gtk/patches: patch-Source_WTF_wtf_RAMSize.cpp

Log Message:
webkit-gtk: Naive implementation of computeRAMSize for SunOS.


To generate a diff of this commit:
cvs rdiff -u -r1.118 -r1.119 pkgsrc/www/webkit-gtk/distinfo
cvs rdiff -u -r1.2 -r1.3 \
    pkgsrc/www/webkit-gtk/patches/patch-Source_WTF_wtf_RAMSize.cpp

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

Modified files:

Index: pkgsrc/www/webkit-gtk/distinfo
diff -u pkgsrc/www/webkit-gtk/distinfo:1.118 pkgsrc/www/webkit-gtk/distinfo:1.119
--- pkgsrc/www/webkit-gtk/distinfo:1.118        Wed Mar 13 20:49:40 2019
+++ pkgsrc/www/webkit-gtk/distinfo      Wed Mar 27 10:50:30 2019
@@ -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_JavaScriptCore_runtim
 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

Index: pkgsrc/www/webkit-gtk/patches/patch-Source_WTF_wtf_RAMSize.cpp
diff -u pkgsrc/www/webkit-gtk/patches/patch-Source_WTF_wtf_RAMSize.cpp:1.2 pkgsrc/www/webkit-gtk/patches/patch-Source_WTF_wtf_RAMSize.cpp:1.3
--- pkgsrc/www/webkit-gtk/patches/patch-Source_WTF_wtf_RAMSize.cpp:1.2  Wed Mar 13 20:49:40 2019
+++ pkgsrc/www/webkit-gtk/patches/patch-Source_WTF_wtf_RAMSize.cpp      Wed Mar 27 10:50:30 2019
@@ -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 @@ Add support for NetBSD.
  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