NetBSD Problem Report #50957
From www@NetBSD.org Sat Mar 12 09:01:22 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 764F07ABD8
for <gnats-bugs@gnats.NetBSD.org>; Sat, 12 Mar 2016 09:01:22 +0000 (UTC)
Message-Id: <20160312090119.BB4B07ACBD@mollari.NetBSD.org>
Date: Sat, 12 Mar 2016 09:01:19 +0000 (UTC)
From: 6bone@6bone.informatik.uni-leipzig.de
Reply-To: 6bone@6bone.informatik.uni-leipzig.de
To: gnats-bugs@NetBSD.org
Subject: can't install php-pgsql when php-7 is installed
X-Send-Pr-Version: www-1.0
>Number: 50957
>Category: pkg
>Synopsis: can't install php-pgsql when php-7 is installed
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 12 09:05:00 +0000 2016
>Closed-Date: Tue Apr 26 21:32:49 +0000 2016
>Last-Modified: Sun May 08 08:15:01 +0000 2016
>Originator: Uwe Toenjes
>Release: current pkgsrc
>Organization:
University of Leipzig
>Environment:
NetBSD gate.ipv6.uni-leipzig.de 7.0_STABLE NetBSD 7.0_STABLE (MYCONF7.gdb) #0: Wed Feb 24 11:31:46 CET 2016 root@gate.ipv6.uni-leipzig.de:/usr/obj/sys/arch/amd64/compile/MYCONF7.gdb amd64
>Description:
Package php-7.0.4nb1 is installed. If you now try to install php-pgsql the installed php is not detected. The installer tries to install php55.
===> Installing binary package of php-5.5.33nb1
pkg_add: A different version of php-5.5.33nb1 is already installed: php-7.0.4nb1
pkg_add: 1 package addition failed
*** Error code 1
>How-To-Repeat:
install php-7.0.4nb1 and try to install php-pgsql
>Fix:
>Release-Note:
>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/50957: can't install php-pgsql when php-7 is installed
Date: Sat, 12 Mar 2016 10:17:21 +0100
On Sat, Mar 12, 2016 at 09:05:00AM +0000, 6bone@6bone.informatik.uni-leipzig.de wrote:
> install php-7.0.4nb1 and try to install php-pgsql
How did you try to install that?
In particular, did you set
PHP_VERSION_DEFAULT=70
in your /etc/mk.conf?
Otherwise, by default, only the 55 version will be built.
Thomas
From: 6bone@6bone.informatik.uni-leipzig.de
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/50957: can't install php-pgsql when php-7 is installed
Date: Sat, 12 Mar 2016 11:35:57 +0100 (CET)
On Sat, 12 Mar 2016, Thomas Klausner wrote:
> How did you try to install that?
>
> In particular, did you set
> PHP_VERSION_DEFAULT=70
> in your /etc/mk.conf?
>
> Otherwise, by default, only the 55 version will be built.
> Thomas
My /etc/mk.conf is empty. I simply use
cd /usr/pkgsrc/databases/php-pgsql
make install
If I add the line to mk.conf it works! Thank you.
So far I have not needed the mk.conf. The packages have recognized
previously installed versions of programs and then used them.
How is the defined behavior of pkgsrc? Do I have to define such cases
manually or will alreday installed package versions be detected and used?
Thank you for your efforts
Regards
Uwe
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sat, 12 Mar 2016 10:41:55 +0000
State-Changed-Why:
Fixed by setting a configuration variable.
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/50957: can't install php-pgsql when php-7 is installed
Date: Sat, 12 Mar 2016 11:41:36 +0100
On Sat, Mar 12, 2016 at 11:35:57AM +0100, 6bone@6bone.informatik.uni-leipzig.de wrote:
> How is the defined behavior of pkgsrc? Do I have to define such cases
> manually or will alreday installed package versions be detected and used?
For packages where multiple versions are created from the same pkgsrc
directory (like ruby-*, php-*, py-*), pkgsrc defines a default
version. If you go to that directory and type 'make' it will build
that version. You can choose your default version in /etc/mk.conf.
Thomas
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/50957: can't install php-pgsql when php-7 is installed
Date: Tue, 15 Mar 2016 20:29:39 +0000
On Sat, Mar 12, 2016 at 10:40:00AM +0000, 6bone@6bone.informatik.uni-leipzig.de wrote:
> So far I have not needed the mk.conf. The packages have recognized
> previously installed versions of programs and then used them.
>
> How is the defined behavior of pkgsrc? Do I have to define such cases
> manually or will alreday installed package versions be detected and used?
It's supposed to detect one that's already installed from the set
that's marked ACCEPTABLE; but each of the multiversion frameworks
(python, ruby, php, etc.) is slightly different and maybe this isn't
part of the php one. But looking at lang/php/phpversion.mk suggests
that it's supposed to be... so my guess would be that something's
wrong.
oh, I see the problem: there's no _PHP_VERSION_70_INSTALLED logic,
only 56 and 57. Unless that was deliberate (seems unlikely), it's a
bug.
That said, setting PHP_VERSION_DEFAULT the way you want it is still
the recommended course of action, as there are other cases where
things will not necessarily happen the way you want -- arguably those
are bugs too but at least some are hard to prevent without
strengthening the frameworks a lot, which is a large proposition.
--
David A. Holland
dholland@netbsd.org
State-Changed-From-To: closed->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 15 Mar 2016 20:30:44 +0000
State-Changed-Why:
there's an actual bug here: _PHP_VERSION_70_INSTALLED is missing in
phpversion.mk.
State-Changed-From-To: open->feedback
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Fri, 22 Apr 2016 09:47:11 +0000
State-Changed-Why:
I've just added _PHP_VERSION_70_INSTALLED. Does it work now for you?
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/50957 CVS commit: pkgsrc/lang/php
Date: Fri, 22 Apr 2016 09:46:50 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Fri Apr 22 09:46:50 UTC 2016
Modified Files:
pkgsrc/lang/php: phpversion.mk
Log Message:
Detect php-7.0 (define _PHP_VERSION_70_INSTALLED).
Addresses PR 50957.
To generate a diff of this commit:
cvs rdiff -u -r1.131 -r1.132 pkgsrc/lang/php/phpversion.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: 6bone@6bone.informatik.uni-leipzig.de
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
wiz@NetBSD.org
Subject: Re: pkg/50957 (can't install php-pgsql when php-7 is installed)
Date: Tue, 26 Apr 2016 19:37:53 +0200 (CEST)
On Fri, 22 Apr 2016, wiz@NetBSD.org wrote:
> I've just added _PHP_VERSION_70_INSTALLED. Does it work now for you?
>
It works very well. The bug can be closed.
Regards
Uwe
State-Changed-From-To: feedback->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Tue, 26 Apr 2016 21:32:49 +0000
State-Changed-Why:
Confirmed fixed, thanks!
From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/50957 CVS commit: [pkgsrc-2016Q1] pkgsrc/lang
Date: Sun, 8 May 2016 08:10:06 +0000
Module Name: pkgsrc
Committed By: bsiegert
Date: Sun May 8 08:10:06 UTC 2016
Modified Files:
pkgsrc/lang/php [pkgsrc-2016Q1]: phpversion.mk
pkgsrc/lang/php55 [pkgsrc-2016Q1]: distinfo
pkgsrc/lang/php55/patches [pkgsrc-2016Q1]:
patch-ext_standard_php__dns.h
Log Message:
Pullup ticket #4972 - requested by taca
lang/php55: security fix
Revisions pulled up:
- lang/php/phpversion.mk 1.132-1.133
- lang/php55/distinfo 1.52
- lang/php55/patches/patch-ext_standard_php__dns.h 1.2
---
Module Name: pkgsrc
Committed By: wiz
Date: Fri Apr 22 09:46:50 UTC 2016
Modified Files:
pkgsrc/lang/php: phpversion.mk
Log Message:
Detect php-7.0 (define _PHP_VERSION_70_INSTALLED).
Addresses PR 50957.
---
Module Name: pkgsrc
Committed By: taca
Date: Mon May 2 13:06:21 UTC 2016
Modified Files:
pkgsrc/lang/php: phpversion.mk
pkgsrc/lang/php55: distinfo
pkgsrc/lang/php55/patches: patch-ext_standard_php__dns.h
Log Message:
Update php55 to 5.5.35.
pkgsrc change: Fix build problem on Linux noted by Matthias Ferdinand on
pkgsrc-users@.
28 Apr 2016, PHP 5.5.35
- BCMath:
. Fix bug #72093 (bcpowmod accepts negative scale and corrupts _one_
definition). (Stas)
- Exif:
. Fix bug #72094 (Out of bounds heap read access in exif header
processing). (Stas)
- GD:
. Fix bug #71912 (libgd: signedness vulnerability). (Stas)
- Intl:
. Fix bug #72061 (Out-of-bounds reads in zif_grapheme_stripos with negative
offset). (Stas)
- XML:
. Fix bug #72099 (xml_parse_into_struct segmentation fault). (Stas)
To generate a diff of this commit:
cvs rdiff -u -r1.131 -r1.131.2.1 pkgsrc/lang/php/phpversion.mk
cvs rdiff -u -r1.51 -r1.51.2.1 pkgsrc/lang/php55/distinfo
cvs rdiff -u -r1.1 -r1.1.2.1 \
pkgsrc/lang/php55/patches/patch-ext_standard_php__dns.h
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.