pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/cdb Compilation of the tryulong32.c configur...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4fa07dd7864b
branches:  trunk
changeset: 467389:4fa07dd7864b
user:      kristerw <kristerw%pkgsrc.org@localhost>
date:      Sat Jan 31 01:23:16 2004 +0000

description:
Compilation of the tryulong32.c configuration test takes ~forever on
arm/gcc 2.95.3.  Add a workaround.

diffstat:

 databases/cdb/Makefile         |   6 +-----
 databases/cdb/distinfo         |   3 ++-
 databases/cdb/patches/patch-aa |  19 +++++++++++++++++++
 3 files changed, 22 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r 6f213a04550d -r 4fa07dd7864b databases/cdb/Makefile
--- a/databases/cdb/Makefile    Sat Jan 31 01:07:52 2004 +0000
+++ b/databases/cdb/Makefile    Sat Jan 31 01:23:16 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2003/09/17 19:40:08 grant Exp $
+# $NetBSD: Makefile,v 1.11 2004/01/31 01:23:16 kristerw Exp $
 
 DISTNAME=      cdb-0.75
 CATEGORIES=    databases
@@ -11,10 +11,6 @@
 ALL_TARGET=    it
 INSTALL_TARGET=        setup check
 
-.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
-USE_PKGSRC_GCC=                # defined
-.endif
-
 pre-build:
        ${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
        ${ECHO} ${CC} ${_STRIPFLAG_CC} > ${WRKSRC}/conf-ld
diff -r 6f213a04550d -r 4fa07dd7864b databases/cdb/distinfo
--- a/databases/cdb/distinfo    Sat Jan 31 01:07:52 2004 +0000
+++ b/databases/cdb/distinfo    Sat Jan 31 01:23:16 2004 +0000
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2001/12/10 18:11:46 martti Exp $
+$NetBSD: distinfo,v 1.2 2004/01/31 01:23:16 kristerw Exp $
 
 SHA1 (cdb-0.75.tar.gz) = 555749be5b2617e29e44b5326a2536813d62c248
 Size (cdb-0.75.tar.gz) = 54162 bytes
+SHA1 (patch-aa) = 7e7a4e20ca36c3e773c729c0f0d751ac6340ccda
diff -r 6f213a04550d -r 4fa07dd7864b databases/cdb/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/cdb/patches/patch-aa    Sat Jan 31 01:23:16 2004 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1 2004/01/31 01:23:16 kristerw Exp $
+
+--- tryulong32.c.orig  Sat Jan 31 02:15:54 2004
++++ tryulong32.c       Sat Jan 31 02:16:38 2004
+@@ -1,5 +1,8 @@
+ void main()
+ {
++#ifdef __arm__
++  _exit(0);
++#else
+   unsigned long u;
+   u = 1;
+   u += u; u += u; u += u; u += u; u += u; u += u; u += u; u += u;
+@@ -8,4 +11,5 @@
+   u += u; u += u; u += u; u += u; u += u; u += u; u += u; u += u;
+   if (!u) _exit(0);
+   _exit(1);
++#endif
+ }



Home | Main Index | Thread Index | Old Index