NetBSD Problem Report #43212

From  Mon Apr 26 19:24:29 2010
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 1E3F063C535
	for <>; Mon, 26 Apr 2010 19:24:29 +0000 (UTC)
Message-Id: <>
Date: Mon, 26 Apr 2010 19:24:28 +0000 (UTC)
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
NetBSD 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
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. 
Simply run make show-options, after the PKG_OPTIONS.ap22-php5 has been defined in /etc/mk.conf 



Responsible-Changed-From-To: pkg-manager->jdolecek
Responsible-Changed-When: Mon, 26 Apr 2010 20:29:12 +0000
Over to maintainer

From: David Holland <>
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, 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

Responsible-Changed-From-To: jdolecek->pkg-manager
Responsible-Changed-When: Sun, 15 Apr 2012 21:43:17 +0000
Back to role account, jdolecek left

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


NetBSD Home
NetBSD PR Database Search

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