ports/156096: devel/pear fix temp_dir location

Oleg Ginzburg olevole at olevole.ru
Thu Mar 31 20:00:26 UTC 2011


>Number:         156096
>Category:       ports
>Synopsis:       devel/pear fix temp_dir location
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 31 20:00:24 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Oleg Ginzburg
>Release:        9-CURRENT
>Organization:
>Environment:
>Description:
this line:
+       $temp_dir   = '%%TMPDIR%%';
in a FreeBSD patch for pear (/usr/ports/devel/pear/files/patch-go-pear)
does not make PHP to use TMPDIR. Instead, the variable $temp_dir during installation has the "/go-pear" values. This make problem during installation where system are have no write permissions in the / (such a classical freebsd jail with read-only base via nullfs). It is useful to change this behavior to /tmp by hard-code (Do not know a better option)

>How-To-Repeat:
Have read-only base (for example from http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-application.html scenario) then try to install devel/pear. Installation will be interrupted with
"
******************************************************************************
FATAL ERROR! We cannot initialize the temp directory. Please be sure to give
full write access to this directory and the install directory.
"
message
>Fix:


Patch attached with submission follows:

diff -ruN pear.bak/files/patch-go-pear pear/files/patch-go-pear
--- pear.bak/files/patch-go-pear	2011-03-31 23:47:38.468442047 +0400
+++ pear/files/patch-go-pear	2011-03-31 23:47:46.066442910 +0400
@@ -156,7 +156,7 @@
          $test_dir  = '$php_dir/tests';
 -        $temp_dir   = '$prefix/temp';
 -
-+  	$temp_dir   = '%%TMPDIR%%';
++  	$temp_dir   = '/tmp';
 +/*
          // check if the user has installed PHP with PHP or GNU layout
          if (@is_dir("$prefix/lib/php/.registry")) {


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list