texlive[63923] Build/source/libs/harfbuzz: harfbuzz: add a patch for

commits+kakuto at tug.org commits+kakuto at tug.org
Sun Jul 17 23:34:55 CEST 2022


Revision: 63923
          http://tug.org/svn/texlive?view=revision&revision=63923
Author:   kakuto
Date:     2022-07-17 23:34:54 +0200 (Sun, 17 Jul 2022)
Log Message:
-----------
harfbuzz: add a patch for older gcc (Andreas Scherer)

Modified Paths:
--------------
    trunk/Build/source/libs/harfbuzz/ChangeLog
    trunk/Build/source/libs/harfbuzz/TLpatches/ChangeLog
    trunk/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh

Added Paths:
-----------
    trunk/Build/source/libs/harfbuzz/TLpatches/0001-Fix-harfbuzz-4.4.1-for-older-g

Modified: trunk/Build/source/libs/harfbuzz/ChangeLog
===================================================================
--- trunk/Build/source/libs/harfbuzz/ChangeLog	2022-07-17 20:01:08 UTC (rev 63922)
+++ trunk/Build/source/libs/harfbuzz/ChangeLog	2022-07-17 21:34:54 UTC (rev 63923)
@@ -1,3 +1,7 @@
+2022-07/18  Andreas Scherer  <andreas_github at freenet.de>
+
+	Add a patch 0001-Fix-harfbuzz-4.4.1-for-older-g for older gcc.
+
 2022-06-30  Akira Kakuto  <kakuto at jcom.zaq.ne.jp>
 
 	Import harfbuzz-4.4.1.

Added: trunk/Build/source/libs/harfbuzz/TLpatches/0001-Fix-harfbuzz-4.4.1-for-older-g
===================================================================
--- trunk/Build/source/libs/harfbuzz/TLpatches/0001-Fix-harfbuzz-4.4.1-for-older-g	                        (rev 0)
+++ trunk/Build/source/libs/harfbuzz/TLpatches/0001-Fix-harfbuzz-4.4.1-for-older-g	2022-07-17 21:34:54 UTC (rev 63923)
@@ -0,0 +1,52 @@
+From c59b380364076c90aac01bc1a996e954cda5d6ab Mon Sep 17 00:00:00 2001
+From: Andreas Scherer <andreas_github at freenet.de>
+Date: Sun, 17 Jul 2022 19:46:50 +0200
+Subject: [PATCH] Fix harfbuzz 4.4.1 for older g++.
+
+---
+ libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh | 15 +++++++++------
+ 1 file changed, 9 insertions(+), 6 deletions(-)
+
+diff --git a/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh b/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh
+index 86d045208..c79d15506 100644
+--- a/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh
++++ b/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh
+@@ -166,26 +166,29 @@ HB_DEFINE_VTABLE (unicode_funcs);
+ 
+ } // namespace hb
+ 
++namespace std {
++
+ template<typename T>
+-struct std::hash<hb::shared_ptr<T>>
++struct hash<hb::shared_ptr<T>>
+ {
+-    std::size_t operator()(const hb::shared_ptr<T>& v) const noexcept
++    size_t operator()(const hb::shared_ptr<T>& v) const noexcept
+     {
+-        std::size_t h = std::hash<decltype (v.get ())>{}(v.get ());
++        size_t h = hash<decltype (v.get ())>{}(v.get ());
+         return h;
+     }
+ };
+ 
+ template<typename T>
+-struct std::hash<hb::unique_ptr<T>>
++struct hash<hb::unique_ptr<T>>
+ {
+-    std::size_t operator()(const hb::unique_ptr<T>& v) const noexcept
++    size_t operator()(const hb::unique_ptr<T>& v) const noexcept
+     {
+-        std::size_t h = std::hash<decltype (v.get ())>{}(v.get ());
++        size_t h = hash<decltype (v.get ())>{}(v.get ());
+         return h;
+     }
+ };
+ 
++} // namespace std
+ 
+ #endif /* __cplusplus */
+ 
+-- 
+2.37.1
+

Modified: trunk/Build/source/libs/harfbuzz/TLpatches/ChangeLog
===================================================================
--- trunk/Build/source/libs/harfbuzz/TLpatches/ChangeLog	2022-07-17 20:01:08 UTC (rev 63922)
+++ trunk/Build/source/libs/harfbuzz/TLpatches/ChangeLog	2022-07-17 21:34:54 UTC (rev 63923)
@@ -1,3 +1,7 @@
+2022-07/18  Andreas Scherer  <andreas_github at freenet.de>
+
+	Add 0001-Fix-harfbuzz-4.4.1-for-older-g for older gcc.
+
 2022-06-30  Akira Kakuto  <kakuto at jcom.zaq.ne.jp>
 
 	Imported harfbuzz-4.4.1 source tree from:

Modified: trunk/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh
===================================================================
--- trunk/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh	2022-07-17 20:01:08 UTC (rev 63922)
+++ trunk/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh	2022-07-17 21:34:54 UTC (rev 63923)
@@ -166,26 +166,29 @@
 
 } // namespace hb
 
+namespace std {
+
 template<typename T>
-struct std::hash<hb::shared_ptr<T>>
+struct hash<hb::shared_ptr<T>>
 {
-    std::size_t operator()(const hb::shared_ptr<T>& v) const noexcept
+    size_t operator()(const hb::shared_ptr<T>& v) const noexcept
     {
-        std::size_t h = std::hash<decltype (v.get ())>{}(v.get ());
+        size_t h = hash<decltype (v.get ())>{}(v.get ());
         return h;
     }
 };
 
 template<typename T>
-struct std::hash<hb::unique_ptr<T>>
+struct hash<hb::unique_ptr<T>>
 {
-    std::size_t operator()(const hb::unique_ptr<T>& v) const noexcept
+    size_t operator()(const hb::unique_ptr<T>& v) const noexcept
     {
-        std::size_t h = std::hash<decltype (v.get ())>{}(v.get ());
+        size_t h = hash<decltype (v.get ())>{}(v.get ());
         return h;
     }
 };
 
+} // namespace std
 
 #endif /* __cplusplus */
 



More information about the tex-live-commits mailing list.