localize glad patch (#5208)

pull/5209/head
Inari0 3 months ago committed by GitHub
parent f337d090bc
commit a4415ffd48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 23
      packages/g/glad/patches/0.1.36/utf8.patch
  2. 2
      packages/g/glad/xmake.lua

@ -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.

@ -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")

Loading…
Cancel
Save