Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 565250 Details for
Bug 677956
media-libs/giflib-5.1.6: Use reallocarray() if available
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
giflib.patch (text/plain), 1.22 KB, created by
Arfrever Frehtes Taifersar Arahesis
on 2019-02-14 04:38:22 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis
Created:
2019-02-14 04:38:22 UTC
Size:
1.22 KB
patch
obsolete
>From 73e5ffd4289c510b2ce5f7228359cb9e4de785bf Mon Sep 17 00:00:00 2001 >From: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> >Date: Thu, 14 Feb 2019 05:35:45 +0100 >Subject: [PATCH] media-libs/giflib: Use reallocarray() if available. > >Fixes: https://bugs.gentoo.org/677956 >Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> >--- > media-libs/giflib/giflib-5.1.6.ebuild | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/media-libs/giflib/giflib-5.1.6.ebuild b/media-libs/giflib/giflib-5.1.6.ebuild >index decea553a76..2569ad2ddb9 100644 >--- a/media-libs/giflib/giflib-5.1.6.ebuild >+++ b/media-libs/giflib/giflib-5.1.6.ebuild >@@ -26,6 +26,13 @@ src_prepare() { > } > > multilib_src_compile() { >+ # Use reallocarray() from libc if available. >+ if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -D_GNU_SOURCE -o "${T}/reallocarray_test" -x c - <<< $'#include <stdlib.h>\nint main() {void *p = reallocarray(NULL, 0, 0);}' 2> /dev/null; then >+ local -x CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE -DHAVE_REALLOCARRAY" >+ sed -e "s/ openbsd-reallocarray\.c//" -i Makefile || die >+ rm openbsd-reallocarray.c || die >+ fi >+ > emake \ > CC="$(tc-getCC)" \ > CFLAGS="${CFLAGS} -std=gnu99 -fPIC -Wno-format-truncation" \ >-- >2.20.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 677956
: 565250