Browse Source

Auto-update lief to 0.16.5 (#6985)

* Update lief to 0.16.5

* Update xmake.lua

* fix patch

* Test `c23` bool fix

---------

Co-authored-by: Saikari <[email protected]>
Co-authored-by: star9029 <[email protected]>
ruki 4 months ago
parent
commit
4a73a04347
2 changed files with 17 additions and 0 deletions
  1. 13 0
      packages/l/lief/patches/0.16.5/cstdint.patch
  2. 4 0
      packages/l/lief/xmake.lua

+ 13 - 0
packages/l/lief/patches/0.16.5/cstdint.patch

@@ -0,0 +1,13 @@
+diff --git a/include/LIEF/PE/ResourceNode.hpp b/include/LIEF/PE/ResourceNode.hpp
+index fbea63b40..4db05119a 100644
+--- a/include/LIEF/PE/ResourceNode.hpp
++++ b/include/LIEF/PE/ResourceNode.hpp
+@@ -19,6 +19,7 @@
+ #include <string>
+ #include <vector>
+ #include <memory>
++#include <cstdint>
+ 
+ #include "LIEF/Object.hpp"
+ #include "LIEF/visibility.h"
+ 

+ 4 - 0
packages/l/lief/xmake.lua

@@ -6,6 +6,7 @@ package("lief")
     set_urls("https://github.com/lief-project/LIEF/archive/refs/tags/$(version).tar.gz",
              "https://github.com/lief-project/LIEF.git")
 
+    add_versions("0.16.5", "10ef46bc958d7936feb155040c874504ab0bd40dc59b4678f807691ccd0d138f")
     add_versions("0.16.4", "311fff5ea9ecbe57b8d02e68739b97673cb14763129ce53af3eac8fee6bf845e")
     add_versions("0.16.3", "465121937c0b7885e9ceb0f6fc452a0b06b8cf2b3aabb454bfa9d4cb985d33d3")
     add_versions("0.16.2", "895ce0321b233a6d610ed89ccbe8dc4aa2cf0bb959919a1db0693ba264f3d29a")
@@ -16,8 +17,11 @@ package("lief")
     add_versions("0.11.5", "6d6d57304a56850958e4ce54f3da2ea2b9eb856ccbab61c6cde9cba15d7c9da5")
     add_versions("0.14.0", "400804e38cb5ce8d15fb52a4db6345f02da7b2e5cb773665712283001482b808")
     add_versions("0.14.1", "92916dcb3178353d863aef4f409186889983c56e025b774741d5316a72ec3a7d")
+
     add_patches("0.15.1", "patches/0.15.1/algorithm.patch", "3e110539c3db037b2b24cd32f97ad8cc6241b1f69d4a65dab9fd6c84e482bbd9")
     add_patches("0.16.0", "https://github.com/lief-project/LIEF/commit/41166332a2435fdb7d2bdc5c73f9ff9b442c5459.patch", "e42e5dd7e4c7a24bf712c1a7c9efa19c9daf835fc85dd35c8ab4b81d1807d833")
+    add_patches("0.16.5", "patches/0.16.5/cstdint.patch", "67956ae49cc529e2b9f98b20544a721bc539ac500da5358c8357751bfcf9b5bc")
+    add_patches("0.16.5", "https://github.com/lief-project/LIEF/commit/649baec7db4190944b0f4b4b5d5c995e85f46d39.patch", "981866391db64f5bfc18a24c9974fac6e5957c63e09f5af1950e87b9dbac10fc")
 
     add_configs("elf",    {description = "Enable ELF module.", default = true, type = "boolean"})
     add_configs("pe",     {description = "Enable PE module.", default = true, type = "boolean"})