Date: Wednesday, November 2, 2022 @ 04:45:40
Author: foutrelis
Revision: 1340981
Fix build with GCC 12
Added:
emptyepsilon/trunk/gcc12.patch
Modified:
emptyepsilon/trunk/PKGBUILD
-------------+
PKGBUILD | 7 +++++--
gcc12.patch | 10 ++++++++++
2 files changed, 15 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-02 04:43:19 UTC (rev 1340980)
+++ PKGBUILD 2022-11-02 04:45:40 UTC (rev 1340981)
@@ -11,11 +11,14 @@
depends=('libglvnd' 'libx11' 'libxrandr' 'glibc' 'gcc-libs' 'sdl2')
makedepends=('git' 'cmake' 'mesa' 'python')
source=("git+https://github.com/daid/EmptyEpsilon.git#tag=EE-${pkgver}"
- "git+https://github.com/daid/SeriousProton.git#tag=EE-${pkgver}")
+ "git+https://github.com/daid/SeriousProton.git#tag=EE-${pkgver}"
+ gcc12.patch)
sha512sums=('SKIP'
- 'SKIP')
+ 'SKIP'
+
'479b76b604b4a4fc8152da11775533b8d56eb4bfd688a28ea6c64a39bfe40e5d365ee035f34cf3fa2cfa16d877cb5324bd2b911270e19f55e77d60386b08ed13')
prepare() {
+ patch -Np0 <gcc12.patch
# fix shader loading, should be upstreamed
sed 's|new Engine();|chdir(RESOURCE_BASE_DIR); new Engine();|' -i
EmptyEpsilon/src/main.cpp
}
Added: gcc12.patch
===================================================================
--- gcc12.patch (rev 0)
+++ gcc12.patch 2022-11-02 04:45:40 UTC (rev 1340981)
@@ -0,0 +1,10 @@
+--- SeriousProton/src/io/http/websocket.h.orig 2022-11-02 04:42:17.652740683
+0000
++++ SeriousProton/src/io/http/websocket.h 2022-11-02 04:39:22.718726564
+0000
+@@ -4,6 +4,7 @@
+ #include <nonCopyable.h>
+ #include <io/network/tcpSocket.h>
+ #include <unordered_map>
++#include <memory>
+
+
+ namespace sp {