diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/gd/distinfo | 3 | ||||
-rw-r--r-- | graphics/gd/patches/patch-src_gd__bmp.c | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/graphics/gd/distinfo b/graphics/gd/distinfo index f19a9f23eb8..caa516c45f3 100644 --- a/graphics/gd/distinfo +++ b/graphics/gd/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.33 2013/09/02 21:17:42 adam Exp $ +$NetBSD: distinfo,v 1.33.2.1 2013/12/20 08:45:43 spz Exp $ SHA1 (libgd-2.1.0.tar.xz) = 66c56fc07246b66ba649c83e996fd2085ea2f9e2 RMD160 (libgd-2.1.0.tar.xz) = 3fcdf88e1ca653ffd40ddba607dbc317ca87bf63 Size (libgd-2.1.0.tar.xz) = 2004304 bytes SHA1 (patch-aa) = 00198349dd9cff60f1f5738524096a251057eb16 SHA1 (patch-ab) = 300ffacf47d7421fc9efb7b3fd9e93f011de1b4b +SHA1 (patch-src_gd__bmp.c) = 4db300a26cebae6fb6f14564c5648608d7ed6cc5 diff --git a/graphics/gd/patches/patch-src_gd__bmp.c b/graphics/gd/patches/patch-src_gd__bmp.c new file mode 100644 index 00000000000..6996a380a13 --- /dev/null +++ b/graphics/gd/patches/patch-src_gd__bmp.c @@ -0,0 +1,20 @@ +$NetBSD: patch-src_gd__bmp.c,v 1.2.2.2 2013/12/20 08:45:44 spz Exp $ + +Don't use ceill(); it isn't remotely needed here (it is probably a +typo) and causes build failure on platforms where it isn't available. +See PR 48334. + +upstream report: +https://bitbucket.org/libgd/gd-libgd/issue/98/gd_bmpc-use-of-both-ceil-and-ceill + +--- src/gd_bmp.c~ 2013-06-25 09:58:23.000000000 +0000 ++++ src/gd_bmp.c +@@ -792,7 +792,7 @@ static int bmp_read_1bit(gdImagePtr im, + } + + /* The line must be divisible by 4, else its padded with NULLs */ +- padding = ((int)ceill(0.1 * info->width)) % 4; ++ padding = ((int)ceil(0.1 * info->width)) % 4; + if (padding) { + padding = 4 - padding; + } |