Skip to content

Commit

Permalink
localize glad patch (#5208)
Browse files Browse the repository at this point in the history
  • Loading branch information
xq114 committed Sep 11, 2024
1 parent f337d09 commit a4415ff
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions packages/g/glad/patches/0.1.36/utf8.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/glad/__main__.py b/glad/__main__.py
index 4b01eb16..1dbae4b0 100644
--- a/glad/__main__.py
+++ b/glad/__main__.py
@@ -40,7 +40,7 @@ def get_spec(value, reproducible=False):
if reproducible:
logger.info('reproducible build, using packaged specification: \'%s.xml\'', value)
try:
- return spec_cls.from_file(glad.files.open_local(value + '.xml'))
+ return spec_cls.from_file(glad.files.open_local(value + '.xml', 'rb'))
except IOError:
raise ValueError('unable to open reproducible copy of {}.xml, '
'try dropping --reproducible'.format(value))
diff --git a/glad/files/gl.xml b/glad/files/gl.xml
index 60696d62..d5f33ba2 100644
--- a/glad/files/gl.xml
+++ b/glad/files/gl.xml
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
<registry>
<comment>
Copyright 2013-2020 The Khronos Group Inc.
2 changes: 1 addition & 1 deletion packages/g/glad/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package("glad")
add_versions("v0.1.34", "4be2900ff76ac71a2aab7a8be301eb4c0338491c7e205693435b09aad4969ecd")
add_versions("v0.1.36", "8470ed1b0e9fbe88e10c34770505c8a1dc8ccb78cadcf673331aaf5224f963d2")

add_patches("0.1.36", "https://github.com/Dav1dde/glad/commit/59797224a66efc354da07d135fcf4b752b20d787.patch", "09cc8ca403fdf2f2d170c18174bae0a1a6cc7d045b25aecd9cb1dc3ecae0aa2c")
add_patches("0.1.36", "patches/0.1.36/utf8.patch", "13ec9c50ee0b5e465513e038b390362b9a3b8b62e5c5c08804b27ae35e9d86fb")

if is_plat("linux") then
add_syslinks("dl")
Expand Down

0 comments on commit a4415ff

Please sign in to comment.