Subject: pkg/15775: www/squid ignores PKG_SYSCONFBASE
To: None <gnats-bugs@gnats.netbsd.org>
From: Kimmo Suominen <kim@tac.nyc.ny.us>
List: netbsd-bugs
Date: 03/01/2002 02:56:44
>Number: 15775
>Category: pkg
>Synopsis: www/squid ignores PKG_SYSCONFBASE
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 28 23:57:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Kimmo Suominen
>Release: pkgsrc 2002-03-01
>Organization:
>Environment:
System: NetBSD nix.gw.com 1.5X NetBSD 1.5X (GW-GENERIC) #36: Sat Jul 28 11:41:19 EDT 2001 kim@nix.suominen.org:/net/nix/src-3/NetBSD/cvsroot/src/sys/arch/i386/compile/GW-GENERIC i386
Architecture: i386
Machine: i386
>Description:
Squid always wants to find its config in ${PREFIX}/etc/squid regardless of
PKG_SYSCONFBASE value at compile time.
>How-To-Repeat:
Run "make" in pkgsrc/www/squid, and observe DEFAULT_MIME_TABLE:
Making all in src...
sed " s%@DEFAULT_MIME_TABLE@%/usr/pkg/etc/squid/mime.conf%g; s%@DEFAULT_DNSSERVER@%/usr/pkg/libexec/dnsserver%g; s%@DEFAULT_UNLINKD@%/usr/pkg/libexec/unlinkd%g; s%@DEFAULT_PINGER@%/usr/pkg/libexec/pinger%g; s%@DEFAULT_DISKD@%/usr/pkg/libexec/diskd%g; s%@DEFAULT_CACHE_LOG@%/var/squid/logs/cache.log%g; s%@DEFAULT_ACCESS_LOG@%/var/squid/logs/access.log%g; s%@DEFAULT_STORE_LOG@%/var/squid/logs/store.log%g; s%@DEFAULT_PID_FILE@%/var/run/squid.pid%g; s%@DEFAULT_SWAP_DIR@%/var/squid/cache%g; s%@DEFAULT_ICON_DIR@%/usr/pkg/share/squid/icons%g; s%@DEFAULT_MIB_PATH@%/usr/pkg/share/squid/mib.txt%g; s%@DEFAULT_ERROR_DIR@%/usr/pkg/share/squid/errors%g; s%@DEFAULT_PREFIX@%/usr/pkg%g;" < ./cf.data.pre >cf.data
and later on DEFAULT_CONFIG_FILE:
cc -c globals.c -O -I. -I../include -I../include -I. -DDEFAULT_CONFIG_FILE=\"/usr/pkg/etc/squid/squid.conf\"
However, on "make install" the message displayed is:
Copy "/usr/pkg/etc/squid/squid.conf.default" to "/etc/squid/squid.conf"
and "/usr/pkg/etc/squid/mime.conf.default" to "/etc/squid/mime.conf"
and edit them as required.
Upon starting squid the following error is displayed:
Starting squid.
FATAL: Unable to open configuration file: /usr/pkg/etc/squid/squid.conf: (2) No such file or directory
Squid Cache (Version 2.4.STABLE4): Terminated abnormally.
CPU Usage: 0.005 seconds = 0.005 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Abort trap - core dumped
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: