NetBSD Problem Report #47754

From www@NetBSD.org  Sun Apr 21 11:55:47 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 672B263F444
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 21 Apr 2013 11:55:47 +0000 (UTC)
Message-Id: <20130421115545.36FA363F444@www.NetBSD.org>
Date: Sun, 21 Apr 2013 11:55:45 +0000 (UTC)
From: frederic@fauberteau.org
Reply-To: frederic@fauberteau.org
To: gnats-bugs@NetBSD.org
Subject: php-pear can not be installed with unprivilegied user
X-Send-Pr-Version: www-1.0

>Number:         47754
>Category:       pkg
>Synopsis:       php-pear can not be installed with unprivilegied user
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 21 12:00:01 +0000 2013
>Originator:     Frédéric Fauberteau
>Release:        netbsd-6
>Organization:
>Environment:
NetBSD trashware 6.0_STABLE NetBSD 6.0_STABLE (TRASHWARE) #0: Fri Feb  8 09:00:00 CET 2013  root@trashware:/usr/obj/sys/arch/amd64/compile/TRASHWARE amd64
>Description:
Pear wants to take a lock in library directory of php. But I have not enough pear experience  to know if it is possible to override php lib dir with $DESTDIR/usr/pkg/lib/php...

===> Installing in lang/pear
=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Installing for php54-pear-1.9.4nb4
=> Generating pre-install file lists
=> Creating installation directories
/usr/bin/env DESTDIR=/usr/pkgsrc/lang/pear/work/.destdir /usr/pkg/bin/php /usr/pkgsrc/lang/pear/work/PEAR-1.9.4/install/go-pear.php local

Bootstrapping Installer...................
Bootstrapping PEAR.php............(local) ok
Bootstrapping Archive/Tar.php............(local) ok
Bootstrapping Console/Getopt.php............(local) ok
PHP Strict Standards:  Non-static method PEAR::setErrorHandling() should not be called statically in /usr/pkgsrc/lang/pear/work/PEAR-1.9.4/install/go-pear.php on line 532

Extracting installer..................
Using local package: PEAR.............ok
Using local package: Structures_Graph....ok
Using local package: XML_Util.........ok

Preparing installer..................
PHP Strict Standards:  Non-static method System::tmpdir() should not be called statically in /usr/pkgsrc/lang/pear/work/PEAR-1.9.4/tmp/PEAR/Config.php on line 167
PHP Strict Standards:  Non-static method PEAR_Config::singleton() should not be called statically in /usr/pkgsrc/lang/pear/work/PEAR-1.9.4/install/go-pear.php on line 585
PHP Strict Standards:  Non-static method PEAR_Installer_Role::initializeConfig() should not be called statically, assuming $this from incompatible context in /usr/pkgsrc/lang/pear/work/PEAR-1.9.4/tmp/PEAR/Config.php on line 599
PHP Strict Standards:  Non-static method PEAR_Installer_Role::registerRoles() should not be called statically, assuming $this from incompatible context in /usr/pkgsrc/lang/pear/work/PEAR-1.9.4/tmp/PEAR/Installer/Role.php on line 45
PHP Strict Standards:  Non-static method PEAR_Installer_Role::getBaseinstallRoles() should not be called statically, assuming $this from incompatible context in /usr/pkgsrc/lang/pear/work/PEAR-1.9.4/tmp/PEAR/Installer/Role.php on line 270
PHP Strict Standards:  Non-static method PEAR_Installer_Role::getInstallableRoles() should not be called statically, assuming $this from incompatible context in /usr/pkgsrc/lang/pear/work/PEAR-1.9.4/tmp/PEAR/Installer/Role.php on line 271
PHP Strict Standards:  Non-static method PEAR_Installer_Role::getPhpRoles() should not be called statically, assuming $this from incompatible context in /usr/pkgsrc/lang/pear/work/PEAR-1.9.4/tmp/PEAR/Installer/Role.php on line 272
PHP Strict Standards:  Non-static method PEAR_Installer_Role::getValidRoles() should not be called statically, assuming $this from incompatible context in /usr/pkgsrc/lang/pear/work/PEAR-1.9.4/tmp/PEAR/Installer/Role.php on line 273
PHP Strict Standards:  Non-static method PEAR_DependencyDB::singleton() should not be called statically, assuming $this from incompatible context in /usr/pkgsrc/lang/pear/work/PEAR-1.9.4/tmp/PEAR/Registry.php on line 328
PHP Warning:  touch(): Unable to create file /usr/pkg/lib/php/.lock because Permission denied in /usr/pkgsrc/lang/pear/work/PEAR-1.9.4/tmp/PEAR/Registry.php on line 835

could not create lock file: fopen(/usr/pkg/lib/php/.lock): failed to open stream: No such file or directory
/usr/bin/install -c -o triaxx -g users -m 644 /usr/pkgsrc/lang/pear/work/PEAR-1.9.4/pear.conf  /usr/pkgsrc/lang/pear/work/.destdir/usr/pkg/share/examples/pear/pear.conf
install: /usr/pkgsrc/lang/pear/work/PEAR-1.9.4/pear.conf: stat: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/pear
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/pear
*** Error code 1
>How-To-Repeat:
By installing pear with unprivilegied user.
>Fix:
Install pear as root.

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.