NetBSD Problem Report #42830

From hauke@Espresso.Rhein-Neckar.DE  Tue Feb 16 21:27:09 2010
Return-Path: <hauke@Espresso.Rhein-Neckar.DE>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 148FC63C478
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 16 Feb 2010 21:27:09 +0000 (UTC)
Message-Id: <201002162054.o1GKsFhM008853@pizza.causeuse.org>
Date: Tue, 16 Feb 2010 21:54:15 +0100 (CET)
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Reply-To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: gnats-bugs@gnats.NetBSD.org
Cc: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Subject: Rename www/squid* LOGDIR to something less generic
X-Send-Pr-Version: 3.95

>Number:         42830
>Category:       pkg
>Synopsis:       Rename www/squid* LOGDIR variable to something less generic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 16 21:30:00 +0000 2010
>Last-Modified:  Wed Mar 03 06:30:03 +0000 2010
>Originator:     Hauke Fath
>Release:        NetBSD 4.0_STABLE
>Organization:
Falling Raindrops
>Environment:


System: NetBSD pizza.causeuse.org 4.0_STABLE NetBSD 4.0_STABLE (PIZZA_PF) #0: Tue Feb 16 20:53:37 CET 2010 hf@Hochstuhl:/var/obj/netbsd-builds/4/sparc/sys/arch/sparc/compile/PIZZA_PF sparc
Architecture: sparc
Machine: sparc
>Description:

	If you want the logfiles for www/squid in a different place,
	you have to set LOGFILE (see www/squid/Makefile.common) to the
	new path. This works in mk.conf, but not from the environment
	(env LOGDIR=/var/log/squid make) nor from the commandline
	(make -DLOGDIR=/var/log/squid). Unfortunately, other packages
	have LOGDIR variables, too, without sharing the squid's
	directory.


>How-To-Repeat:

	Build squid, find you want to use a non-default log directory.

>Fix:

	Use something like SQUID_LOGDIR in squid/Makefile.common, and
	assign its value to LOGDIR, if non-empty. I could do it
	myself, but I suspect unknown magic hiding inside BUILD_DEFS.

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/42830: Rename www/squid* LOGDIR to something less generic
Date: Wed, 03 Mar 2010 15:29:13 +0900

 On my quick review, LOGDIR is never used to switch log location of squid itself,
 just tell it to squidGuard.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.