Subject: pkg/25487: www/thttpd must not mmap on NetBSD 1.5
To: None <>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: pkgsrc-bugs
Date: 05/07/2004 11:52:27
>Number:         25487
>Category:       pkg
>Synopsis:       www/thttpd must not mmap on NetBSD 1.5
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 07 09:53:00 UTC 2004
>Originator:     Hauke Fath
>Release:        NetBSD 1.5.4
           Hauke Fath                   /~\  The ASCII Ribbon Campaign
Institut für Nachrichtentechnik         \ /    No HTML/RTF in email
          TU Darmstadt                   X     No Word docs in email
      Ruf +49-6151-16-3281              / \  Respect for open standards
System: NetBSD 1.5.4_ALPHA NetBSD 1.5.4_ALPHA (LAMIN) #0: Fri Oct 17 14:42:24 PDT 2003     hauke@q700:/usr/src/sys/arch/mac68k/compile/LAMIN mac68k
Architecture: m68k
Machine: mac68k

	The thttpd "configure" script uses mmap per default even on
	NetBSD systems without UBC (< 1.5L). If you are working on a
	set of web pages, you have to restart thttpd after each update
	to make it serve the new pages.


	Install thttpd on a NetBSD 1.5 system, create web pages and
	wonder why you are served outdated pages.


	Insert into the Makefile the equivalent of

.include "../../mk/"

# UBC brought read and mmap in sync
.if ${OPSYS} == "NetBSD" && (${OS_VERSION:M1.[0-4]*} != "" || \
                ${OS_VERSION:M1.5} != "" || \
                ${OS_VERSION:M1.5[A-K]} != "")

## do not use mmap ##


and then find a working implementation of said switch (I didn't find a
simple way).