* [PR PATCH] SLADE: fix build with gcc-10, link with system libraries
@ 2021-01-24 7:32 sgn
2021-01-24 7:33 ` [PR PATCH] [Updated] " sgn
2021-01-26 14:01 ` [PR PATCH] [Merged]: " sgn
0 siblings, 2 replies; 3+ messages in thread
From: sgn @ 2021-01-24 7:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 430 bytes --]
There is a new pull request by sgn against master on the void-packages repository
https://github.com/sgn/void-packages slade-gcc10-libraries
https://github.com/void-linux/void-packages/pull/28133
SLADE: fix build with gcc-10, link with system libraries
@Johnnynator I have no idea about this package, so the patch maybe plainly wrong :)
A patch file from https://github.com/void-linux/void-packages/pull/28133.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-slade-gcc10-libraries-28133.patch --]
[-- Type: text/x-diff, Size: 3018 bytes --]
From ed092b1467719b03004974bf420eda7fc3ba91b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Sun, 24 Jan 2021 13:44:49 +0700
Subject: [PATCH] SLADE: fix build with gcc-10, link with system libraries
---
srcpkgs/SLADE/patches/pointer-decay.patch | 29 ++++++++++++++++++++
srcpkgs/SLADE/patches/system-libraries.patch | 17 ++++++++++++
srcpkgs/SLADE/template | 3 +-
3 files changed, 48 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/SLADE/patches/pointer-decay.patch
create mode 100644 srcpkgs/SLADE/patches/system-libraries.patch
diff --git a/srcpkgs/SLADE/patches/pointer-decay.patch b/srcpkgs/SLADE/patches/pointer-decay.patch
new file mode 100644
index 00000000000..87f3370a85f
--- /dev/null
+++ b/srcpkgs/SLADE/patches/pointer-decay.patch
@@ -0,0 +1,29 @@
+--- src/External/sol/sol.hpp
++++ src/External/sol/sol.hpp
+@@ -6818,7 +6818,7 @@
+ }
+
+ static int push(lua_State* L, const wchar_t(&str)[N], std::size_t sz) {
+- return stack::push<const wchar_t*>(L, str, str + sz);
++ return stack::push<const wchar_t*>(L, str + 0, str + sz);
+ }
+ };
+
+@@ -6829,7 +6829,7 @@
+ }
+
+ static int push(lua_State* L, const char16_t(&str)[N], std::size_t sz) {
+- return stack::push<const char16_t*>(L, str, str + sz);
++ return stack::push<const char16_t*>(L, str + 0, str + sz);
+ }
+ };
+
+@@ -6840,7 +6840,7 @@
+ }
+
+ static int push(lua_State* L, const char32_t(&str)[N], std::size_t sz) {
+- return stack::push<const char32_t*>(L, str, str + sz);
++ return stack::push<const char32_t*>(L, str + 0, str + sz);
+ }
+ };
+
diff --git a/srcpkgs/SLADE/patches/system-libraries.patch b/srcpkgs/SLADE/patches/system-libraries.patch
new file mode 100644
index 00000000000..9f114e04204
--- /dev/null
+++ b/srcpkgs/SLADE/patches/system-libraries.patch
@@ -0,0 +1,17 @@
+lzma is p7zip not liblzma
+--- src/External/CMakeLists.txt
++++ src/External/CMakeLists.txt
+@@ -24,12 +24,10 @@
+ file(GLOB_RECURSE EXTERNAL_SOURCES
+ *.cpp
+ *.cxx
+- dumb/*.c
+- lua/*.c
+ lzma/C/LzmaDec.c
+ ${SLADE_HEADERS}
+ )
+
+ add_library(external STATIC ${EXTERNAL_SOURCES})
+ target_link_libraries(external ${ZLIB_LIBRARY})
+-set(EXTERNAL_LIBRARIES external PARENT_SCOPE)
++set(EXTERNAL_LIBRARIES external dumb lua5.3 PARENT_SCOPE)
diff --git a/srcpkgs/SLADE/template b/srcpkgs/SLADE/template
index 64a183b5498..8753ebbe8c3 100644
--- a/srcpkgs/SLADE/template
+++ b/srcpkgs/SLADE/template
@@ -6,7 +6,8 @@ build_style=cmake
build_helper=cmake-wxWidgets-gtk3
hostmakedepends="pkg-config p7zip which"
makedepends="SFML-devel fluidsynth-devel freeimage-devel ftgl-devel glew-devel
- gtk+3-devel libcurl-devel wxWidgets-gtk3-devel"
+ gtk+3-devel libcurl-devel wxWidgets-gtk3-devel bzip2-devel zlib-devel
+ lua53-devel dumb-devel liblzma-devel"
short_desc="Modern editor for Doom-engine based games"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PR PATCH] [Updated] SLADE: fix build with gcc-10, link with system libraries
2021-01-24 7:32 [PR PATCH] SLADE: fix build with gcc-10, link with system libraries sgn
@ 2021-01-24 7:33 ` sgn
2021-01-26 14:01 ` [PR PATCH] [Merged]: " sgn
1 sibling, 0 replies; 3+ messages in thread
From: sgn @ 2021-01-24 7:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 435 bytes --]
There is an updated pull request by sgn against master on the void-packages repository
https://github.com/sgn/void-packages slade-gcc10-libraries
https://github.com/void-linux/void-packages/pull/28133
SLADE: fix build with gcc-10, link with system libraries
@Johnnynator I have no idea about this package, so the patch maybe plainly wrong :)
A patch file from https://github.com/void-linux/void-packages/pull/28133.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-slade-gcc10-libraries-28133.patch --]
[-- Type: text/x-diff, Size: 3109 bytes --]
From 0044815d3b55a1b50498dad46a91fe408f25f997 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Sun, 24 Jan 2021 13:44:49 +0700
Subject: [PATCH] SLADE: fix build with gcc-10, link with system libraries
---
srcpkgs/SLADE/patches/pointer-decay.patch | 29 ++++++++++++++++++++
srcpkgs/SLADE/patches/system-libraries.patch | 17 ++++++++++++
srcpkgs/SLADE/template | 5 ++--
3 files changed, 49 insertions(+), 2 deletions(-)
create mode 100644 srcpkgs/SLADE/patches/pointer-decay.patch
create mode 100644 srcpkgs/SLADE/patches/system-libraries.patch
diff --git a/srcpkgs/SLADE/patches/pointer-decay.patch b/srcpkgs/SLADE/patches/pointer-decay.patch
new file mode 100644
index 00000000000..87f3370a85f
--- /dev/null
+++ b/srcpkgs/SLADE/patches/pointer-decay.patch
@@ -0,0 +1,29 @@
+--- src/External/sol/sol.hpp
++++ src/External/sol/sol.hpp
+@@ -6818,7 +6818,7 @@
+ }
+
+ static int push(lua_State* L, const wchar_t(&str)[N], std::size_t sz) {
+- return stack::push<const wchar_t*>(L, str, str + sz);
++ return stack::push<const wchar_t*>(L, str + 0, str + sz);
+ }
+ };
+
+@@ -6829,7 +6829,7 @@
+ }
+
+ static int push(lua_State* L, const char16_t(&str)[N], std::size_t sz) {
+- return stack::push<const char16_t*>(L, str, str + sz);
++ return stack::push<const char16_t*>(L, str + 0, str + sz);
+ }
+ };
+
+@@ -6840,7 +6840,7 @@
+ }
+
+ static int push(lua_State* L, const char32_t(&str)[N], std::size_t sz) {
+- return stack::push<const char32_t*>(L, str, str + sz);
++ return stack::push<const char32_t*>(L, str + 0, str + sz);
+ }
+ };
+
diff --git a/srcpkgs/SLADE/patches/system-libraries.patch b/srcpkgs/SLADE/patches/system-libraries.patch
new file mode 100644
index 00000000000..9f114e04204
--- /dev/null
+++ b/srcpkgs/SLADE/patches/system-libraries.patch
@@ -0,0 +1,17 @@
+lzma is p7zip not liblzma
+--- src/External/CMakeLists.txt
++++ src/External/CMakeLists.txt
+@@ -24,12 +24,10 @@
+ file(GLOB_RECURSE EXTERNAL_SOURCES
+ *.cpp
+ *.cxx
+- dumb/*.c
+- lua/*.c
+ lzma/C/LzmaDec.c
+ ${SLADE_HEADERS}
+ )
+
+ add_library(external STATIC ${EXTERNAL_SOURCES})
+ target_link_libraries(external ${ZLIB_LIBRARY})
+-set(EXTERNAL_LIBRARIES external PARENT_SCOPE)
++set(EXTERNAL_LIBRARIES external dumb lua5.3 PARENT_SCOPE)
diff --git a/srcpkgs/SLADE/template b/srcpkgs/SLADE/template
index 64a183b5498..b7ec0f0749c 100644
--- a/srcpkgs/SLADE/template
+++ b/srcpkgs/SLADE/template
@@ -1,12 +1,13 @@
# Template file for 'SLADE'
pkgname=SLADE
version=3.1.12a
-revision=3
+revision=4
build_style=cmake
build_helper=cmake-wxWidgets-gtk3
hostmakedepends="pkg-config p7zip which"
makedepends="SFML-devel fluidsynth-devel freeimage-devel ftgl-devel glew-devel
- gtk+3-devel libcurl-devel wxWidgets-gtk3-devel"
+ gtk+3-devel libcurl-devel wxWidgets-gtk3-devel bzip2-devel zlib-devel
+ lua53-devel dumb-devel liblzma-devel"
short_desc="Modern editor for Doom-engine based games"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PR PATCH] [Merged]: SLADE: fix build with gcc-10, link with system libraries
2021-01-24 7:32 [PR PATCH] SLADE: fix build with gcc-10, link with system libraries sgn
2021-01-24 7:33 ` [PR PATCH] [Updated] " sgn
@ 2021-01-26 14:01 ` sgn
1 sibling, 0 replies; 3+ messages in thread
From: sgn @ 2021-01-26 14:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 273 bytes --]
There's a merged pull request on the void-packages repository
SLADE: fix build with gcc-10, link with system libraries
https://github.com/void-linux/void-packages/pull/28133
Description:
@Johnnynator I have no idea about this package, so the patch maybe plainly wrong :)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-26 14:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-24 7:32 [PR PATCH] SLADE: fix build with gcc-10, link with system libraries sgn
2021-01-24 7:33 ` [PR PATCH] [Updated] " sgn
2021-01-26 14:01 ` [PR PATCH] [Merged]: " sgn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).