summaryrefslogtreecommitdiffstats
path: root/trinity-base
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2022-12-13 12:16:48 +0000
committerormorph <roma251078@mail.ru>2022-12-13 12:16:48 +0000
commit2eacb9e12a937091215e803da587525974d3c782 (patch)
tree127a25a2d065887e32265f6546d5c4893c71d241 /trinity-base
parent38130ab9ba2bddcaf901a94c00c2b9eb97b2c90a (diff)
downloadtde-packaging-gentoo-2eacb9e12a937091215e803da587525974d3c782.tar.gz
tde-packaging-gentoo-2eacb9e12a937091215e803da587525974d3c782.zip
Added fix for build error with malloc flag
Signed-off-by: ormorph <roma251078@mail.ru>
Diffstat (limited to 'trinity-base')
-rwxr-xr-xtrinity-base/tdelibs/files/tdelibs-malloc.patch11
-rw-r--r--trinity-base/tdelibs/tdelibs-14.0.13.ebuild3
2 files changed, 13 insertions, 1 deletions
diff --git a/trinity-base/tdelibs/files/tdelibs-malloc.patch b/trinity-base/tdelibs/files/tdelibs-malloc.patch
new file mode 100755
index 00000000..9e4ebeb5
--- /dev/null
+++ b/trinity-base/tdelibs/files/tdelibs-malloc.patch
@@ -0,0 +1,11 @@
+--- a/tdecore/malloc/malloc.c
++++ b/tdecore/malloc/malloc.c
+@@ -4306,7 +4306,7 @@
+ remainder_size = chunksize(p);
+
+ if (opts & 0x2) { /* optionally clear the elements */
+- memset(mem, 0, remainder_size - SIZE_SZ - array_size)
++ memset(mem, 0, remainder_size - SIZE_SZ - array_size);
+ }
+
+ /* If not provided, allocate the pointer array as final part of chunk */
diff --git a/trinity-base/tdelibs/tdelibs-14.0.13.ebuild b/trinity-base/tdelibs/tdelibs-14.0.13.ebuild
index fb4abe4b..df291768 100644
--- a/trinity-base/tdelibs/tdelibs-14.0.13.ebuild
+++ b/trinity-base/tdelibs/tdelibs-14.0.13.ebuild
@@ -78,7 +78,8 @@ RDEPEND="${DEPEND}
"
PATCHES=(
- "${FILESDIR}/tdelibs-backtrace.patch"
+ "${FILESDIR}/${PN}-backtrace.patch"
+ "${FILESDIR}/${PN}-malloc.patch"
)
src_configure() {