NetBSD Problem Report #43212

From www@NetBSD.org  Mon Apr 26 19:24:29 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 1E3F063C535
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 26 Apr 2010 19:24:29 +0000 (UTC)
Message-Id: <20100426192428.713D163C52F@www.NetBSD.org>
Date: Mon, 26 Apr 2010 19:24:28 +0000 (UTC)
From: vs@nifelheim.info
Reply-To: vs@nifelheim.info
To: gnats-bugs@NetBSD.org
Subject: www/ap-php claims to use PKG_OPTIONS.ap22-php5, but though set in mk.conf, it seems to remain empty
X-Send-Pr-Version: www-1.0

>Number:         43212
>Category:       pkg
>Synopsis:       www/ap-php claims to use PKG_OPTIONS.ap22-php5, but though set in mk.conf, it seems to remain empty
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 26 19:25:01 +0000 2010
>Closed-Date:    Fri Jun 13 12:34:56 +0000 2014
>Last-Modified:  Fri Jun 13 12:34:56 +0000 2014
>Originator:     Volkmar Seifert
>Release:        NetBSD 5
>Organization:
>Environment:
NetBSD unknown.nifelheim.info 5.0_RC4 NetBSD 5.0_RC4 (GENERIC) #3: Wed Apr 22 11:23:42 CEST 2009  build@ymir:/usr/build/src/sys/arch/i386/compile/obj.i386/GENERIC i386
>Description:
I was running nginx / php5 for quite some time, and switched back to apache now, using www/ap-php for php-content. At least it was my intention.

I am using pkgsrc-current with nightly updates from CVS on the above mentioned system.

Assuming that ap-php would use the setting defined by PKG_OPTIONS.php, I did not really take a look at the package. This of course lead to several problems with the modules, as I use maintainer-zts on lang/php5. I noticed those problems, and in search of a solution, I did a 

make show-options

in www/ap-php. It revealed that www/ap-php used the variable PKG_OPTIONS.ap22-php5, so I set that in /etc/mk.conf and recompiled. Almost immediately, I noticed that PKG_OPTIONS.ap22-php5 was still shown as empty, the parameters used were still the defaults. I tried several combinations from PKG_OPTIONS.ap-php to PKG_OPTIONS.ap22-php5 without success.
I then used PKG_DEFAULT_OPTIONS within the Makefile directly, which finally "solved" my problem.
Since this cannot be a real solution to the problem, a fix is required badly. 
>How-To-Repeat:
Simply run make show-options, after the PKG_OPTIONS.ap22-php5 has been defined in /etc/mk.conf 
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jdolecek
Responsible-Changed-By: gls@NetBSD.org
Responsible-Changed-When: Mon, 26 Apr 2010 20:29:12 +0000
Responsible-Changed-Why:
Over to maintainer


From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/43212: www/ap-php claims to use PKG_OPTIONS.ap22-php5, but
	though set in mk.conf, it seems to remain empty
Date: Wed, 28 Apr 2010 22:50:33 +0000

 On Mon, Apr 26, 2010 at 07:25:01PM +0000, vs@nifelheim.info wrote:
  > [problems with ap-22-php5 options]

 For reference, another report of what's almost certainly the same
 problem appears in the followup to PR 43170 (q.v.).

 -- 
 David A. Holland
 dholland@netbsd.org

Responsible-Changed-From-To: jdolecek->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 15 Apr 2012 21:43:17 +0000
Responsible-Changed-Why:
Back to role account, jdolecek left


State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Fri, 13 Jun 2014 12:34:56 +0000
State-Changed-Why:
After 31 May 2014, lang/php?? and www/ap-php use same PKG_OPTIONS_VAR,
e.g, for php54, PKG_OPTIONS.php54.


>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.