git: 44a590c56ed4 - main - lang/hermes: Update 0.11.0 -> 0.12.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 28 Aug 2022 21:53:26 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=44a590c56ed4ed8098ea2cff4ad240853b0280ed

commit 44a590c56ed4ed8098ea2cff4ad240853b0280ed
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-28 21:51:55 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-28 21:53:19 +0000

    lang/hermes: Update 0.11.0 -> 0.12.0
    
    Reported by:    portscout
---
 lang/hermes/Makefile                                  |  3 +--
 lang/hermes/distinfo                                  |  6 +++---
 lang/hermes/files/patch-lib_Support_OSCompatPosix.cpp | 19 ++++++++++++++-----
 lang/hermes/pkg-plist                                 |  2 ++
 4 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/lang/hermes/Makefile b/lang/hermes/Makefile
index 311a6c76cbd0..6a07d4ca47a8 100644
--- a/lang/hermes/Makefile
+++ b/lang/hermes/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	hermes
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.11.0
-PORTREVISION=	1
+DISTVERSION=	0.12.0
 CATEGORIES=	lang
 PKGNAMESUFFIX=	-javascript-engine
 
diff --git a/lang/hermes/distinfo b/lang/hermes/distinfo
index 0280ad1325cb..3f463d99ba53 100644
--- a/lang/hermes/distinfo
+++ b/lang/hermes/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1643906545
-SHA256 (facebook-hermes-v0.11.0_GH0.tar.gz) = 56ed165a87215a2259ed4cb0efa573e93316df79ae4c66c571eb3411be144b06
-SIZE (facebook-hermes-v0.11.0_GH0.tar.gz) = 9617127
+TIMESTAMP = 1661721316
+SHA256 (facebook-hermes-v0.12.0_GH0.tar.gz) = bd8fd158381813483123eb1ab553ed08db68e4949f314c99ee8fa79fa8f3e7ed
+SIZE (facebook-hermes-v0.12.0_GH0.tar.gz) = 9794161
diff --git a/lang/hermes/files/patch-lib_Support_OSCompatPosix.cpp b/lang/hermes/files/patch-lib_Support_OSCompatPosix.cpp
index 75b51a747c0c..48f23c45e7fd 100644
--- a/lang/hermes/files/patch-lib_Support_OSCompatPosix.cpp
+++ b/lang/hermes/files/patch-lib_Support_OSCompatPosix.cpp
@@ -1,4 +1,4 @@
---- lib/Support/OSCompatPosix.cpp.orig	2020-12-17 02:21:13 UTC
+--- lib/Support/OSCompatPosix.cpp.orig	2022-08-16 18:18:07 UTC
 +++ lib/Support/OSCompatPosix.cpp
 @@ -25,6 +25,11 @@
  #endif
@@ -12,7 +12,16 @@
  #include <sys/types.h>
  #include <unistd.h>
  
-@@ -228,7 +233,7 @@ void vm_unused(void *p, size_t sz) {
+@@ -221,7 +226,7 @@ void vm_free_aligned(void *p, size_t sz) {
+ 
+ static constexpr int kVMReserveProt = PROT_NONE;
+ static constexpr int kVMReserveFlags =
+-    MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE;
++    MAP_PRIVATE | MAP_ANONYMOUS;
+ 
+ llvh::ErrorOr<void *>
+ vm_reserve_aligned(size_t sz, size_t alignment, void *hint) {
+@@ -269,7 +274,7 @@ void vm_unused(void *p, size_t sz) {
  /// the process's physical footprint.
  #define MADV_UNUSED MADV_FREE
  
@@ -21,7 +30,7 @@
  
  /// On linux, telling the OS that we \p MADV_DONTNEED some pages will cause it
  /// to immediately deduct their size from the process's resident set.
-@@ -554,6 +559,12 @@ uint64_t thread_id() {
+@@ -599,6 +604,12 @@ uint64_t thread_id() {
    return syscall(__NR_gettid);
  }
  
@@ -34,7 +43,7 @@
  #else
  #error "Thread ID not supported on this platform"
  #endif
-@@ -595,7 +606,7 @@ std::chrono::microseconds thread_cpu_time() {
+@@ -640,7 +651,7 @@ std::chrono::microseconds thread_cpu_time() {
    return microseconds(total);
  }
  
@@ -43,7 +52,7 @@
  
  std::chrono::microseconds thread_cpu_time() {
    using namespace std::chrono;
-@@ -632,7 +643,7 @@ bool thread_page_fault_count(int64_t *outMinorFaults, 
+@@ -677,7 +688,7 @@ bool thread_page_fault_count(int64_t *outMinorFaults, 
    return kr == KERN_SUCCESS;
  }
  
diff --git a/lang/hermes/pkg-plist b/lang/hermes/pkg-plist
index d2a9fe626eee..9e7bc4a4217a 100644
--- a/lang/hermes/pkg-plist
+++ b/lang/hermes/pkg-plist
@@ -11,6 +11,8 @@ include/hermes/Public/CtorConfig.h
 include/hermes/Public/DebuggerTypes.h
 include/hermes/Public/GCConfig.h
 include/hermes/Public/GCTripwireContext.h
+include/hermes/Public/HermesExport.h
+include/hermes/Public/JSOutOfMemoryError.h
 include/hermes/Public/RuntimeConfig.h
 include/hermes/SynthTrace.h
 include/hermes/SynthTraceParser.h