Subject: pkg/5617: Apache-1.3.0 package OS configuration not quite right for NetBSD
To: None <gnats-bugs@gnats.netbsd.org>
From: None <woods@weird.com>
List: netbsd-bugs
Date: 06/18/1998 22:32:02
>Number: 5617
>Category: pkg
>Synopsis: Apache-1.3.0 package OS configuration not quite right for NetBSD
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 18 19:35:01 1998
>Last-Modified:
>Originator: Greg A. Woods
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Release: pkgsrc sup Thu Jun 18 07:44:16 EDT 1998 (898170256)
>Environment:
System: NetBSD most 1.3.1 NetBSD 1.3.1 (MOST) #0: Mon May 25 01:21:22 EDT 1998 woods@most:/usr/src-1.3.1/sys/arch/sparc/compile/MOST sparc
>Description:
The following patch is probably a good idea. We could probably use
SYSVSEM serialization instead of FLOCK, since SHMGET is needed anyway,
but I've not tested that form....
Also Apache probably shouldn't mmap() files until NetBSD has a fully
100% integrated buffer cache) [unless I've totally missed something, or
am mistaken on what Apache does with USE_MMAP_FILES].
>How-To-Repeat:
observe other system type configuration defaults
>Fix:
apply the following patch to the package (note this is an actual patch,
not the patch file itself). [[Do I ever *HATE* creating patches for
packages! What a tedious process!]]
--- /dev/null Thu Jun 18 22:08:53 1998
+++ patches/patch-aa Thu Jun 18 22:10:40 1998
@@ -0,0 +1,18 @@
+--- src/include/conf.h.orig Thu Jun 18 22:04:09 1998
++++ src/include/conf.h Thu Jun 18 22:09:58 1998
+@@ -551,6 +551,7 @@
+ #undef NO_KILLPG
+ #undef NO_SETSID
+ #define HAVE_SYSLOG 1
++#define USE_FLOCK_SERIALIZED_ACCEPT
+ #ifndef DEFAULT_USER
+ #define DEFAULT_USER "nobody"
+ #endif
+@@ -559,7 +560,6 @@
+ #define HAVE_SHMGET 1
+ #define HAVE_MMAP 1
+ #define USE_MMAP_SCOREBOARD
+-#define USE_MMAP_FILES
+ #endif
+
+ #elif defined(UTS21)
>Audit-Trail:
>Unformatted: