diff options
author | ormorph <roma251078@mail.ru> | 2022-12-13 12:16:48 +0000 |
---|---|---|
committer | ormorph <roma251078@mail.ru> | 2022-12-13 12:16:48 +0000 |
commit | 2eacb9e12a937091215e803da587525974d3c782 (patch) | |
tree | 127a25a2d065887e32265f6546d5c4893c71d241 /trinity-base | |
parent | 38130ab9ba2bddcaf901a94c00c2b9eb97b2c90a (diff) | |
download | tde-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-x | trinity-base/tdelibs/files/tdelibs-malloc.patch | 11 | ||||
-rw-r--r-- | trinity-base/tdelibs/tdelibs-14.0.13.ebuild | 3 |
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() { |