Bug 197363

Summary: devel/pear: Can't install with active open_basedir
Product: Ports & Packages Reporter: Nick <amp>
Component: Individual Port(s)Assignee: Martin Wilke <miwi>
Status: Closed Works As Intended    
Severity: Affects Many People CC: amp, koobs, miwi
Priority: --- Keywords: needs-patch, needs-qa
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
full install log none

Description Nick 2015-02-06 11:17:36 UTC
Created attachment 152606 [details]
full install log

Can't install devel/pear with active open_basedir in php.ini
If I remove/comment the open_basedir directive devel/pear can be installed.


root@www:~ # uname -a
FreeBSD www 10.1-RELEASE-p5 FreeBSD 10.1-RELEASE-p5 #0: Tue Jan 27 08:55:07 UTC 2015     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

root@www:~ # php -v
PHP 5.6.5 (cli) (built: Jan 24 2015 06:19:07)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies

root@www:~ # portmaster devel/pear

===>>> Currently installed version: pear-1.9.4_3
===>>> Port directory: /usr/ports/devel/pear

===>>> Gathering distinfo list for installed ports

===>>> Launching 'make checksum' for devel/pear in background
===>>> Gathering dependency list for devel/pear from ports
===>>> Initial dependency check complete for devel/pear


===>>> Starting build for devel/pear <<<===

===>>> All dependencies are up to date

===>  Cleaning for pear-1.9.4_3
===>   pear-1.9.4_3 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by pear-1.9.4_3 for building
===>  Extracting for pear-1.9.4_3
=> SHA256 Checksum OK for pear-1.9.4.tar.bz2.
===>  Patching for pear-1.9.4_3
===>  Applying FreeBSD patches for pear-1.9.4_3
===>   pear-1.9.4_3 depends on file: /usr/local/include/php/main/php.h - found
===>   pear-1.9.4_3 depends on file: /usr/local/lib/php/20131226/xml.so - found
===>  Configuring for pear-1.9.4_3
===>  Staging for pear-1.9.4_3
===>   Generating temporary packing list


******************************************************************************
FATAL ERROR! We cannot initialize the temp directory. Please be sure to give
full write access to this directory and the install directory.

'/tmp/pear' was given.sed: /var/ports/basejail/usr/ports/devel/pear/work/stage/usr/local/share/pear/peclcmd.php: No such file or directory
*** Error code 1

Stop.
make: stopped in /basejail/usr/ports/devel/pear

===>>> make stage failed for devel/pear
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> devel/pear
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2016-01-16 06:28:32 UTC
open_basedir is suppose to be in your vhost not in the php.ini.