Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: cstdint patch flatpak

Minh1411205b505c00f30d
diff --git a/flatpak/ai.jan.Jan.yml b/flatpak/ai.jan.Jan.yml
index 600e9c535..77047ef9f 100644
--- a/flatpak/ai.jan.Jan.yml
+++ b/flatpak/ai.jan.Jan.yml
@@ -72,6 +72,8 @@ modules:
url: https://github.com/KhronosGroup/glslang.git
commit: 142052fa30f9eca191aa9dcf65359fcaed09eeec
dest: third_party/glslang
+ - type: patch
+ path: patches/fix-cstdint.patch
- name: jan-binary
buildsystem: simple
diff --git a/flatpak/patches/fix-cstdint.patch b/flatpak/patches/fix-cstdint.patch
new file mode 100644
index 000000000..6271e24f7
--- /dev/null
+++ b/flatpak/patches/fix-cstdint.patch
@@ -0,0 +1,13 @@
+diff --git a/SPIRV/SpvBuilder.h b/SPIRV/SpvBuilder.h
+index a65a98e3..32ed8217 100644
+--- a/third_party/glslang/SPIRV/SpvBuilder.h
++++ b/third_party/glslang/SPIRV/SpvBuilder.h
+@@ -63,6 +63,7 @@ namespace spv {
+ #include <stack>
+ #include <unordered_map>
+ #include <map>
++#include <cstdint>
+
+ namespace spv {
+
+