diff options
author | obache <obache@pkgsrc.org> | 2010-08-24 11:33:51 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2010-08-24 11:33:51 +0000 |
commit | c510b0d3ba7ccb51265c70234b1889d54af75517 (patch) | |
tree | 3217ce432fdf73ce94ad1dcbbd5455a108a17033 /lang/pear/patches | |
parent | 358196b9859f419663a05cb650e01e9f849c3245 (diff) | |
download | pkgsrc-c510b0d3ba7ccb51265c70234b1889d54af75517.tar.gz |
Update PEAR to 1.9.1.
pkgsrc changes,
* Update base pear packages:Archive_Tar-1.3.7 (recommented)
* Remove ${FILESDIR}/pear.sh, same as bundled one.
* set LICENSE=2-clause-bsd
* add user-destdir support
Upstream Changelog:
* svntag improvements, tag package files passed into the command and better
directory checks [dufuz]
* rely on Structures_Graph minimum version instead of recommended version
[saltybeagle]
* Fix Bug #12613: running go-pear.phar from C:\ fails [dufuz]
* Fix Bug #14841: Installing pear into directory with space fails [dufuz]
* Fix Bug #16644: pear.bat returns syntax error when parenthesis are in install
path. [dufuz] [patch by bwaters (Bryan Waters)]
* Fix Bug #16767: Use of Depreciated HTML Attributes in the Exception class
[dufuz] [patch by fuhrysteve (Stephen J. Fuhry)]
* Fix Bug #16864: "pear list-upgrades -i" issues E_WARNINGS [dufuz] [patch by
rquadling (Richard Quadling)]
* Fix Bug #17220: command `pear help` outputs to stderr instead of stdout
[dufuz]
* Fix Bug #17234: channel-discover adds port to HTTP Host header [dufuz]
* Fix Bug #17292: Code Coverage in PEAR_RunTest does not work with namespaces
[sebastian]
* Fix Bug #17359: loadExtension() fails over missing dl() when used in
multithread env [dufuz]
* Fix Bug #17378: pear info $package fails if directory with that name exists
[dufuz]
Diffstat (limited to 'lang/pear/patches')
-rw-r--r-- | lang/pear/patches/patch-aa | 100 |
1 files changed, 84 insertions, 16 deletions
diff --git a/lang/pear/patches/patch-aa b/lang/pear/patches/patch-aa index f67a3c73649..dc86458e672 100644 --- a/lang/pear/patches/patch-aa +++ b/lang/pear/patches/patch-aa @@ -1,8 +1,17 @@ -$NetBSD: patch-aa,v 1.4 2009/10/29 08:29:03 seb Exp $ +$NetBSD: patch-aa,v 1.5 2010/08/24 11:33:52 obache Exp $ ---- install/go-pear.php.orig 2009-10-17 09:56:43.000000000 +0000 +--- install/go-pear.php.orig 2010-08-24 08:12:01.000000000 +0000 +++ install/go-pear.php -@@ -252,6 +252,8 @@ if (WEBINSTALLER) { +@@ -58,6 +58,8 @@ define('GO_PEAR_VER', '1.1.2'); + + define('WIN32GUI', !WEBINSTALLER && WINDOWS && $sapi_name=='cli' && which('cscript')); + ++$destdir = getenv('DESTDIR'); ++ + /* + * See bug #23069 + */ +@@ -252,6 +254,8 @@ if (WEBINSTALLER) { // Anything past this step has something to do with the installation } @@ -11,7 +20,7 @@ $NetBSD: patch-aa,v 1.4 2009/10/29 08:29:03 seb Exp $ if (!WEBINSTALLER) { $tty = WINDOWS ? @fopen('\con', 'r') : @fopen('/dev/tty', 'r'); -@@ -296,6 +298,8 @@ If you wish to abort, press Control-C no +@@ -296,6 +300,8 @@ If you wish to abort, press Control-C no } } @@ -20,7 +29,7 @@ $NetBSD: patch-aa,v 1.4 2009/10/29 08:29:03 seb Exp $ $origpwd = getcwd(); $config_vars = array_keys($config_desc); -@@ -347,6 +351,8 @@ we strongly recommand to use it. +@@ -347,6 +353,8 @@ we strongly recommand to use it. } } @@ -29,7 +38,7 @@ $NetBSD: patch-aa,v 1.4 2009/10/29 08:29:03 seb Exp $ while (!WEBINSTALLER) { print " Below is a suggested file layout for your new PEAR installation. To -@@ -430,6 +436,8 @@ If you have a CLI (or CGI) php.exe avail +@@ -430,6 +438,8 @@ If you have a CLI (or CGI) php.exe avail } } @@ -38,7 +47,16 @@ $NetBSD: patch-aa,v 1.4 2009/10/29 08:29:03 seb Exp $ #### # Installation stuff #### -@@ -564,13 +572,17 @@ if (WEBINSTALLER) { +@@ -489,7 +499,7 @@ full write access to this directory and + continue; + } + +- $dir = $$var; ++ $dir = ($destdir ? $destdir : '').$$var; + if (!@is_dir($dir)) { + if (!mkdir_p($dir)) { + if (!WEBINSTALLER) { +@@ -564,13 +574,17 @@ if (WEBINSTALLER) { } if (!WEBINSTALLER) { @@ -56,7 +74,7 @@ $NetBSD: patch-aa,v 1.4 2009/10/29 08:29:03 seb Exp $ } #### -@@ -583,6 +595,8 @@ if (function_exists('set_include_path')) +@@ -583,6 +597,8 @@ if (function_exists('set_include_path')) ini_set('include_path', $ptmp); } @@ -65,7 +83,7 @@ $NetBSD: patch-aa,v 1.4 2009/10/29 08:29:03 seb Exp $ if (!extension_loaded('zlib') && !WEBINSTALLER) { // In Web context we could be in multithread env which makes dl() end up with a fatal error. if (WINDOWS) { @dl('php_zlib.dll'); -@@ -608,6 +622,8 @@ if (!$have_gzip) { +@@ -608,6 +624,8 @@ if (!$have_gzip) { print "Downloading uncompressed packages\n"; }; @@ -74,7 +92,38 @@ $NetBSD: patch-aa,v 1.4 2009/10/29 08:29:03 seb Exp $ if ($install_pfc) { $to_install = array_merge($installer_packages, array_keys($pfc_packages)); } else { -@@ -749,7 +765,7 @@ include_once "PEAR/Command.php"; +@@ -646,12 +664,14 @@ displayHTMLProgress($progress = 5); + + // Bootstrap needed ? + $nobootstrap = false; ++/* + if (is_dir($php_dir)) { + $nobootstrap = true; + foreach ($bootstrap_files as $file => $url) { + $nobootstrap &= is_file($php_dir.'/'.$file); + } + } ++*/ + + if ($nobootstrap) { + print('Using previously install ... '); +@@ -692,6 +712,7 @@ displayHTMLProgress($progress = 20); + + // Extract needed ? + $noextract = false; ++/* + if (is_dir($php_dir)) { + $noextract = @include_once 'PEAR/Registry.php'; + +@@ -702,6 +723,7 @@ if (is_dir($php_dir)) { + } + } + } ++*/ + + if ($noextract) { + print('Using previously installed installer ... '); +@@ -749,7 +771,7 @@ include_once "PEAR/Command.php"; include_once "PEAR/Registry.php"; if (WEBINSTALLER || isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'local') { @@ -83,7 +132,16 @@ $NetBSD: patch-aa,v 1.4 2009/10/29 08:29:03 seb Exp $ } else { $config = &PEAR_Config::singleton(); } -@@ -781,7 +797,11 @@ displayHTMLProgress($progress = 45); +@@ -766,7 +788,7 @@ $config->set('temp_dir', $temp_dir); + $config->set('http_proxy', $http_proxy); + $config->store(); + +-$registry = new PEAR_Registry($php_dir); ++$registry = new PEAR_Registry(($destdir ? $destdir : '').$php_dir); + PEAR_Command::setFrontendType('CLI'); + + PEAR::staticPushErrorHandling(PEAR_ERROR_DIE); //fail silently +@@ -781,20 +803,28 @@ displayHTMLProgress($progress = 45); $install = &PEAR_Command::factory('install', $config); foreach ($to_install as $pkg) { @@ -96,7 +154,17 @@ $NetBSD: patch-aa,v 1.4 2009/10/29 08:29:03 seb Exp $ if (in_array($pkg, $installer_packages)) { $options = array('nodeps' => true); -@@ -794,7 +814,6 @@ foreach ($to_install as $pkg) { + } else { + $options = array('onlyreqdeps' => true); + } ++ if ($destdir) { ++ $options['packagingroot'] = $destdir; ++ $options['force'] = true; ++ $options['nodeps'] = true; ++ } + if ($registry->packageExists($pkg) || $registry->packageExists($pkg_basename)) { + print(str_pad("Package: $pkg", max(50,9+strlen($pkg)+4), '.').' already installed ... ok'."\n"); + displayHTMLProgress($progress += round(50 / count($to_install))); continue; } @@ -104,7 +172,7 @@ $NetBSD: patch-aa,v 1.4 2009/10/29 08:29:03 seb Exp $ if (in_array($pkg_basename, $bootstrap_pkgs)) { print(str_pad("Installing bootstrap package: $pkg_basename", max(50,30+strlen($pkg_basename)+4), '.')."..."); displayHTMLProgress($progress += round(25 / count($to_install))); -@@ -817,12 +836,17 @@ print "\n".'Making sure every package is +@@ -817,12 +847,17 @@ print "\n".'Making sure every package is $install->run('upgrade-all', array('soft' => true), array()); print "ok\n"; */ @@ -122,7 +190,7 @@ $NetBSD: patch-aa,v 1.4 2009/10/29 08:29:03 seb Exp $ ini_restore("include_path"); if (!WEBINSTALLER) { -@@ -981,6 +1005,9 @@ if ( WINDOWS ) { +@@ -981,6 +1016,9 @@ if ( WINDOWS ) { if (WINDOWS && !WEBINSTALLER) { win32CreateRegEnv(); } @@ -132,7 +200,7 @@ $NetBSD: patch-aa,v 1.4 2009/10/29 08:29:03 seb Exp $ // Set of functions following /** * Parse the given dirname -@@ -1420,17 +1447,19 @@ function detect_install_dirs($_prefix = +@@ -1420,17 +1458,19 @@ function detect_install_dirs($_prefix = } else { if ($_prefix === null) { #$prefix = dirname(PHP_BINDIR); @@ -157,7 +225,7 @@ $NetBSD: patch-aa,v 1.4 2009/10/29 08:29:03 seb Exp $ // check if the user has installed PHP with PHP or GNU layout if (@is_dir("$prefix/lib/php/.registry")) { -@@ -1443,6 +1472,8 @@ function detect_install_dirs($_prefix = +@@ -1443,6 +1483,8 @@ function detect_install_dirs($_prefix = } elseif (@is_dir("$prefix/share/php/.registry")) { $php_dir = '$prefix/share/php'; } |