NetBSD Problem Report #28718
From schmonz@schmonz.com Mon Dec 20 00:25:52 2004
Return-Path: <schmonz@schmonz.com>
Received: from mirapoint1.tis.cwru.edu (mirapoint1.TIS.CWRU.Edu [129.22.104.46])
by narn.netbsd.org (Postfix) with ESMTP id 5FF9D63B843
for <gnats-bugs@gnats.NetBSD.org>; Mon, 20 Dec 2004 00:25:52 +0000 (UTC)
Message-Id: <20041220002545.4310.qmail@mood-tooth.scl.cwru.edu>
Date: 20 Dec 2004 00:25:45 -0000
From: schmonz-lists-netbsd-public-bugs-sendpr@schmonz.com
To: gnats-bugs@netbsd.org
Subject: lang/php5 doesn't fully honor PKG_SYSCONFDIR
X-Send-Pr-Version: 3.95
>Number: 28718
>Category: pkg
>Synopsis: lang/php5 doesn't fully honor PKG_SYSCONFDIR
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: jdolecek
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Dec 20 00:27:00 +0000 2004
>Closed-Date: Mon Dec 27 22:14:05 +0000 2004
>Last-Modified: Tue Dec 28 23:24:00 +0000 2004
>Originator: Amitai Schlair
>Release: NetBSD 2.0
>Organization:
Schmonz Enterprises
>Environment:
System: NetBSD mood-tooth.scl.cwru.edu 2.0 NetBSD 2.0 (GENERIC) #0: Thu Dec 2 13:16:48 EST 2004 schmonz@mood-tooth.scl.cwru.edu:/home/schmonz/builds/2-0-i386/obj/home/schmonz/netbsd/src-2-0/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
I set PKG_SYSCONFBASE=/etc in /etc/mk.conf. lang/php5 installs a
php.ini in /etc, as it should, but this file doesn't affect PHP's
behavior because '--with-config-file-path=/usr/pkg/etc/' was passed
to ./configure.
>How-To-Repeat:
Set PKG_SYSCONFBASE to any non-default value. php.ini will be
installed in the correct location, but will not affect PHP's
behavior.
>Fix:
The following may be sufficient, depending on which other PHP config
files (if any) are affected by --with-config-file-path.
Index: Makefile.php
===================================================================
RCS file: /cvsroot/pkgsrc/lang/php5/Makefile.php,v
retrieving revision 1.2
diff -u -r1.2 Makefile.php
--- Makefile.php 17 Dec 2004 07:36:13 -0000 1.2
+++ Makefile.php 20 Dec 2004 00:11:26 -0000
@@ -17,7 +17,7 @@
.include "../../mk/bsd.prefs.mk"
-CONFIGURE_ARGS+= --with-config-file-path=${PREFIX}/etc/
+CONFIGURE_ARGS+= --with-config-file-path=${PKG_SYSCONFDIR}/
CONFIGURE_ARGS+= --with-regex=system
CONFIGURE_ARGS+= --without-mysql
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->jdolecek
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Tue, 21 Dec 2004 02:11:35 +0000
Responsible-Changed-Why:
Assigned to maintainer, jdolecek.
From: Jaromir Dolecek <jdolecek@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/28718 CVS commit: pkgsrc/lang/php5
Date: Mon, 27 Dec 2004 20:20:23 +0000 (UTC)
Module Name: pkgsrc
Committed By: jdolecek
Date: Mon Dec 27 20:20:23 UTC 2004
Modified Files:
pkgsrc/lang/php5: Makefile.php
Log Message:
use ${PKG_SYSCONFDIR} rather than hardcoding ${PREFIX}/etc
Fixes PR pkg/28718 by Amitai Schlair
To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 pkgsrc/lang/php5/Makefile.php
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: jdolecek@netbsd.org
State-Changed-When: Mon, 27 Dec 2004 22:14:05 +0000
State-Changed-Why:
Package fixed as suggested, thanks.
From: Lubomir Sedlacik <salo@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/28718 CVS commit: [pkgsrc-2004Q4] pkgsrc/lang/php5
Date: Tue, 28 Dec 2004 23:21:22 +0000 (UTC)
Module Name: pkgsrc
Committed By: salo
Date: Tue Dec 28 23:21:22 UTC 2004
Modified Files:
pkgsrc/lang/php5 [pkgsrc-2004Q4]: Makefile.php
Log Message:
Pullup ticket 189 - requested by Amitai Schlair
installation fix for php5
Module Name: pkgsrc
Committed By: jdolecek
Date: Mon Dec 27 20:20:23 UTC 2004
Modified Files:
pkgsrc/lang/php5: Makefile.php
Log Message:
use ${PKG_SYSCONFDIR} rather than hardcoding ${PREFIX}/etc
Fixes PR pkg/28718 by Amitai Schlair
To generate a diff of this commit:
cvs rdiff -r1.2 -r1.2.2.1 pkgsrc/lang/php5/Makefile.php
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.