Re: php upgrade to 5.2.1 fails because of extensions



Zbigniew Szalbot wrote:
Hello,

Hi,

I know this is not the php list but looking for your advice. I wanted to
upgraded php 5.1.6 to 5.2.1 because of vulnarabilities but it failed to
install extenstions. There seems to be an error with extenstions in 5.2.1.

What error, which extension? Seems to work fine here:

$ uname -prs
FreeBSD 6.2-STABLE i386
$ pkg_info -Ix php
php5-5.2.1_2 PHP Scripting Language (Apache Module and CLI)
php5-bz2-5.2.1_2 The bz2 shared extension for php
php5-calendar-5.2.1_2 The calendar shared extension for php
php5-ctype-5.2.1_2 The ctype shared extension for php
php5-dom-5.2.1_2 The dom shared extension for php
php5-extensions-1.1 A "meta-port" to install PHP extensions
php5-gd-5.2.1_2 The gd shared extension for php
php5-iconv-5.2.1_2 The iconv shared extension for php
php5-mcrypt-5.2.1_2 The mcrypt shared extension for php
php5-mhash-5.2.1_2 The mhash shared extension for php
php5-openssl-5.2.1_2 The openssl shared extension for php
php5-pcre-5.2.1_2 The pcre shared extension for php
php5-pdo-5.2.1_2 The pdo shared extension for php
php5-pdo_sqlite-5.2.1_2 The pdo_sqlite shared extension for php
php5-posix-5.2.1_2 The posix shared extension for php
php5-session-5.2.1_2 The session shared extension for php
php5-simplexml-5.2.1_2 The simplexml shared extension for php
php5-spl-5.2.1_2 The spl shared extension for php
php5-sqlite-5.2.1_2 The sqlite shared extension for php
php5-tokenizer-5.2.1_2 The tokenizer shared extension for php
php5-xml-5.2.1_2 The xml shared extension for php
php5-xmlreader-5.2.1_2 The xmlreader shared extension for php
php5-xmlwriter-5.2.1_2 The xmlwriter shared extension for php
php5-zlib-5.2.1_2 The zlib shared extension for php


I cannot downgrade (I issued sudo portupgrade -m
-DDISABLE_VULNERABILITIES -f php5 changing the Makefile and distinfo
entries to point to 5.1.6 and issuing make makesum and got):

No, no, no, don't do that :) Changing port version is not simply as
that. Many times you'll need patches for a specific version in
ports_name/files directory. That is why your attempt failed.

Btw, if you really want to downgrade have a look at
ports-mgmt/portdowngrade.


Nor can I upgrade as these php5-extenstions won't install. Could anyone
advise what to do?

Update your ports tree to a clean one (without your modifications to php
port). Try again (be sure to upgrade any required dependencies), send
errors if any.

Regards,

Karol

--
Karol Kwiatkowski <karol.kwiat at gmail dot com>
OpenPGP 0x06E09309

Attachment: signature.asc
Description: OpenPGP digital signature



Relevant Pages

  • Upgrading 5.3 > 6.0 buildworld failure in libkrb5
    ... gnomelibs-1.4.2_3 Libraries for GNOME, a GNU desktop environment ... kdeaccessibility-3.4.3 Accessibility applications for KDE ... libmcrypt-2.5.7_1 Multi-cipher cryptographic library (used in PHP) ... php4-bcmath-4.4.1_3 The bcmath shared extension for php ...
    (freebsd-stable)
  • Re: error: syntax error before "_X_SENTINEL"
    ... freefont-ttf-20060126 Free UCS Outline Fonts ... libmcrypt-2.5.7_2 Multi-cipher cryptographic library (used in PHP) ... php4-bcmath-4.4.2_2 The bcmath shared extension for php ... pkg-config-0.20_2 A utility to retrieve information about installed libraries ...
    (freebsd-stable)
  • RE: apache13_modssl + mod_php4 + php4-extenstions +mysql323-*+myphpadmin = ...
    ... XFree86-libraries-4.4.0_3 XFree86-4 libraries and headers ... libmcrypt-2.5.7_1 Multi-cipher cryptographic library (used in PHP) ... pear-Archive_Tar-1.2 PEAR tar file management class ... php4-domxml-4.3.10_2 The domxml shared extension for php ...
    (freebsd-questions)
  • Re: phpMyAdmin install stopped in dependency libXau-1.0.4
    ... I tried installing phpMyAdmin in an ezjail created jail already ... The port install failed when dependency 'libXau-1.0.4' configure ... libmcrypt-2.5.8 Multi-cipher cryptographic library (used in PHP) ... php5-ctype-5.2.11_1 The ctype shared extension for php ...
    (freebsd-questions)
  • FreeBSD php{4,5} w/ LDAP + SSL/TLS ldap_start_tls()
    ... The ldap client binaries are linked to SSL fine and can talk both ldaps:// ... LDAP and SSL php extension modules installed: ... The php4 box's ldap module is linked to OpenSSL: ... php4-ctype-4.4.0 The ctype shared extension for php ...
    (freebsd-questions)