ports/65913: [PATCH] databases/qdbm: disable mmap on alpha

Matthias Andree matthias.andree at gmx.de
Fri Apr 23 13:10:18 UTC 2004


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



More information about the freebsd-ports-bugs mailing list