summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2004-01-31 01:23:16 +0000
committerkristerw <kristerw@pkgsrc.org>2004-01-31 01:23:16 +0000
commit67b48c229e64bccf3584681ab63f82f197fb4249 (patch)
tree753eaacf3599ac752245274da5abe7c4eec4056f
parent6879249500cfca649bb939b9d25130fb1e2fcdd5 (diff)
downloadpkgsrc-67b48c229e64bccf3584681ab63f82f197fb4249.tar.gz
Compilation of the tryulong32.c configuration test takes ~forever on
arm/gcc 2.95.3. Add a workaround.
-rw-r--r--databases/cdb/Makefile6
-rw-r--r--databases/cdb/distinfo3
-rw-r--r--databases/cdb/patches/patch-aa19
3 files changed, 22 insertions, 6 deletions
diff --git a/databases/cdb/Makefile b/databases/cdb/Makefile
index 120287178c6..b0343f10393 100644
--- a/databases/cdb/Makefile
+++ b/databases/cdb/Makefile
@@ -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 @@ COMMENT= Creates and reads constant databases
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 --git a/databases/cdb/distinfo b/databases/cdb/distinfo
index dbf336a2604..037eea2a1ee 100644
--- a/databases/cdb/distinfo
+++ b/databases/cdb/distinfo
@@ -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 --git a/databases/cdb/patches/patch-aa b/databases/cdb/patches/patch-aa
new file mode 100644
index 00000000000..edb55cc007c
--- /dev/null
+++ b/databases/cdb/patches/patch-aa
@@ -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
+ }