pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/capc-calc Fix fpos_t configure test, allowing thi...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f1eb5bdfe78f
branches: trunk
changeset: 603555:f1eb5bdfe78f
user: dholland <dholland%pkgsrc.org@localhost>
date: Mon May 07 19:57:17 2012 +0000
description:
Fix fpos_t configure test, allowing this to build on netbsd-6.
PR 46412.
XXX: I'm not convinced the results will actually *work*. If anyone
XXX: knows how to check this, please do.
diffstat:
math/capc-calc/distinfo | 3 ++-
math/capc-calc/patches/patch-fposval_c | 16 ++++++++++++++++
2 files changed, 18 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r 9c512f0cc456 -r f1eb5bdfe78f math/capc-calc/distinfo
--- a/math/capc-calc/distinfo Mon May 07 19:21:57 2012 +0000
+++ b/math/capc-calc/distinfo Mon May 07 19:57:17 2012 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.23 2011/04/05 17:18:14 drochner Exp $
+$NetBSD: distinfo,v 1.24 2012/05/07 19:57:17 dholland Exp $
SHA1 (calc-2.12.4.1.tar.bz2) = b64eae89de2167f439f52b4005bbc4e5dfc0d6fb
RMD160 (calc-2.12.4.1.tar.bz2) = 68fe6352b6a1b58e53d7cb4b4f51c596aa8539f7
Size (calc-2.12.4.1.tar.bz2) = 865856 bytes
SHA1 (patch-aa) = 65da8569bb74647ef01bfc389690d631d161ab96
+SHA1 (patch-fposval_c) = 8a8d08f8b566e583faa3bd9033c4a9ac90cb343c
diff -r 9c512f0cc456 -r f1eb5bdfe78f math/capc-calc/patches/patch-fposval_c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/capc-calc/patches/patch-fposval_c Mon May 07 19:57:17 2012 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-fposval_c,v 1.1 2012/05/07 19:57:17 dholland Exp $
+
+Avoid generating incorrect code that leads to a build failure on
+NetBSD 6+.
+
+--- fposval.c~ 2007-09-19 22:35:23.000000000 +0000
++++ fposval.c
+@@ -129,7 +129,7 @@ main(int argc, char **argv)
+ * systems a FILEPOS is not a scalar hince we must memcpy.
+ */
+ printf("#define SWAP_HALF_IN_FILEPOS(dest, src)\t%s\n",
+- "memcpy((void *)(dest), (void *)(src), sizeof(FPOS_POS_LEN))");
++ "memcpy((void *)(dest), (void *)(src), FILEPOS_LEN)");
+ #endif /* HAVE_FILEPOS_SCALAR */
+ #endif /* CALC_BYTE_ORDER == BIG_ENDIAN */
+ putchar('\n');
Home |
Main Index |
Thread Index |
Old Index