Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Apr 2004 15:08:07 +0200
From:      Matthias Andree <matthias.andree@gmx.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        portmgr@FreeBSD.org
Subject:   ports/65913: [PATCH] databases/qdbm: disable mmap on alpha
Message-ID:  <E1BH0PX-0000ZJ-Uy@libertas.emma.line.org>
Resent-Message-ID: <200404231310.i3NDAH0S017418@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         65913
>Category:       ports
>Synopsis:       [PATCH] databases/qdbm: disable mmap on alpha
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 23 06:10:17 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Andree
>Release:        FreeBSD 4.10-BETA i386
>Organization:
>Environment:
System: FreeBSD libertas.emma.line.org 4.10-BETA FreeBSD 4.10-BETA #102: Thu Apr 22 10:36:12 CEST 2004
>Description:
This patch adds --enable-nommap to CONFIGURE_ARGS when compiled on the Alpha
platform, see the comment inside the patch for details.

The bug appears to cause self-test failures in dependent applications, for
instance, ports/mail/bogofilter-qdbm.

Port maintainer (fuyuki@nigredo.org) is cc'd.

Please, if possible, arrange for this patch to make it into FreeBSD 4.10.

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- qdbm-1.8.8.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/databases/qdbm/Makefile /root/ports/databases/qdbm/Makefile
--- /usr/ports/databases/qdbm/Makefile	Sat Apr 17 13:06:22 2004
+++ /root/ports/databases/qdbm/Makefile	Fri Apr 23 15:03:25 2004
@@ -41,6 +41,16 @@
 	${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
 .endif
 
+.if ${ARCH} == "alpha"
+# qdbm fails with mmap on FreeBSD-alpha and OpenBSD-i386, so disable:
+# Mikio Hirabayashi wrote in a private mail to the bogofilter developers:
+#  "On FreeBSD(Alpha), the test suite failed by `memory mapping' error.
+#   This problem is also not caused if QDBM was built with `--enable-nommap'.
+#   `msync' fails if the size of mapping region is larger than about 1.2MB
+#   (bnum is 16300)."
+CONFIGURE_ARGS+=	--enable-nommap
+.endif
+
 post-build:
 	cd ${WRKSRC}/lab; ${MAKE} CC="${CC}" CFLAGS="${CFLAGS}" fmtcnv031127
 	cd ${WRKSRC}; ${MAKE} check
--- qdbm-1.8.8.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1BH0PX-0000ZJ-Uy>