summaryrefslogtreecommitdiff
path: root/graphics/gd
diff options
context:
space:
mode:
authordholland <dholland>2013-11-11 20:38:15 +0000
committerdholland <dholland>2013-11-11 20:38:15 +0000
commit02fbaea8564df72e4e92dcf05f49c5df3dd9dfb8 (patch)
tree26a84209aac28c7a8c6d41b933e774efa2f47769 /graphics/gd
parent7d2c28abe273388bac7a19aeef3bab70c90aa07f (diff)
downloadpkgsrc-02fbaea8564df72e4e92dcf05f49c5df3dd9dfb8.tar.gz
Don't use ceill(); it isn't needed here and causes problems. See PR 48334.
Technically this change should bump PKGREVISION (as it changes the binary package ever so slightly for platforms where the ceill() didn't cause a build failure) but I'm going to let it slide.
Diffstat (limited to 'graphics/gd')
-rw-r--r--graphics/gd/distinfo3
-rw-r--r--graphics/gd/patches/patch-src_gd__bmp.c17
2 files changed, 19 insertions, 1 deletions
diff --git a/graphics/gd/distinfo b/graphics/gd/distinfo
index f19a9f23eb8..6d4021bacd7 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.34 2013/11/11 20:38:15 dholland 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) = ec0916d5f6f118fc50de7b2482cfb2fd39b3ae12
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..bb69c77b43f
--- /dev/null
+++ b/graphics/gd/patches/patch-src_gd__bmp.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_gd__bmp.c,v 1.1 2013/11/11 20:38:15 dholland 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.
+
+--- 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;
+ }