pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/gd Don't use ceill(); it isn't needed here an...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c4d6376fe35e
branches:  trunk
changeset: 626420:c4d6376fe35e
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Mon Nov 11 20:38:15 2013 +0000

description:
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:

 graphics/gd/distinfo                    |   3 ++-
 graphics/gd/patches/patch-src_gd__bmp.c |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r 1579e141e313 -r c4d6376fe35e graphics/gd/distinfo
--- a/graphics/gd/distinfo      Mon Nov 11 20:16:38 2013 +0000
+++ b/graphics/gd/distinfo      Mon Nov 11 20:38:15 2013 +0000
@@ -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 -r 1579e141e313 -r c4d6376fe35e graphics/gd/patches/patch-src_gd__bmp.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/gd/patches/patch-src_gd__bmp.c   Mon Nov 11 20:38:15 2013 +0000
@@ -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;
+       }



Home | Main Index | Thread Index | Old Index