Re: portmaster problems upgrading to php 5.3.4

2010-12-28 Thread Kelly Martin
I should also mention that I have an almost-identical server running
FreeBSD 7.3-release-p2 in backup production and did not experience
these problems when upgrading from php 5.3.3_2 to php 5.3.4. Something
in my 8.1-release development server is causing the problems with
upgrading PHP, so I'm reluctant to upgrade my production servers as
they are absolutely identical until I find a fix.

Thanks,
Kelly
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


portmaster problems upgrading to php 5.3.4

2010-12-28 Thread Kelly Martin
Hi there, I'm having problems upgrading my php installation using the
ports tree. I use the latest version of portmaster on FreeBSD
8.1-release inside a jail, with all patches. I'm trying to upgrade
from php 5.3.3_2 to the new php 5.3.4 to fix a security vulnerability.

Here is the problem. When upgrading my PHP, some of the dependencies
fail because they are already installed. If I manually remove those
port-installed packages it continues to build past this point but then
the script breaks again with a later dependency. So the error below is
just one example of several I've encountered during the attempted
upgrade of a port. In the past this was never an issue because
portmaster is smart and would recursively install/reinstall all
required packages for me automatically. Something has changed now
because this functionality is no longer working for me.

I issue the command:
dev:/#portmaster -t -d php5

[...large amount of compilation data for php and various supporting
packages removed...]

===  Installing for libltdl-2.2.10
===   Generating temporary packing list
===  Checking if devel/libltdl already installed
===   libltdl-2.2.10 is already installed
  You may wish to ``make deinstall'' and install this port again
  by ``make reinstall'' to upgrade it properly.
  If you really wish to overwrite the old port of devel/libltdl
  without deleting it first, set the variable FORCE_PKG_REGISTER
  in your environment or the make install command line.
*** Error code 1

Stop in /usr/ports/devel/libltdl.

=== Installation of libltdl-2.2.10 (devel/libltdl) failed
=== Aborting update

=== Update for devel/libltdl failed
=== Aborting update

=== Update for php5-mcrypt-5.3.3_2 failed
=== Aborting update

Terminated


At this point I am half-way upgraded only. Here is what pkg_version
-v shows now for php:

dev:/#pkg_version -v
php5-5.3.4  =   up-to-date with port
php5-ctype-5.3.4=   up-to-date with port
php5-curl-5.3.4 =   up-to-date with port
php5-dom-5.3.4  =   up-to-date with port
php5-extensions-1.4 =   up-to-date with port
php5-filter-5.3.4   =   up-to-date with port
php5-hash-5.3.4 =   up-to-date with port
php5-iconv-5.3.4=   up-to-date with port
php5-json-5.3.4 =   up-to-date with port
php5-mcrypt-5.3.3_2needs updating (port has 5.3.4)
php5-mysql-5.3.3_2 needs updating (port has 5.3.4)
php5-openssl-5.3.3_2   needs updating (port has 5.3.4)
php5-pdo-5.3.3_2   needs updating (port has 5.3.4)
php5-pdo_sqlite-5.3.3_2needs updating (port has 5.3.4)
php5-posix-5.3.3_2 needs updating (port has 5.3.4)
php5-session-5.3.3_2   needs updating (port has 5.3.4)
php5-simplexml-5.3.3_2 needs updating (port has 5.3.4)
php5-sqlite-5.3.3_2needs updating (port has 5.3.4)
php5-tokenizer-5.3.3_2 needs updating (port has 5.3.4)
php5-xml-5.3.3_2   needs updating (port has 5.3.4)
php5-xmlreader-5.3.3_2 needs updating (port has 5.3.4)
php5-xmlwriter-5.3.3_2 needs updating (port has 5.3.4)
php5-zlib-5.3.3_2  needs updating (port has 5.3.4)

Fortunately the security vulnerability appears to be gone now, at least:

dev:/#portaudit -Fa
auditfile.tbz 100% of   64 kB   64 kBps
New database installed.
0 problem(s) in your installed packages found.

So I'm probably fine but I'd like to get everything upgraded to the
same version one day soon.

Thanks,
Kelly
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: portmaster problems upgrading to php 5.3.4

2010-12-28 Thread Matthew Seaman
On 28/12/2010 22:07, Kelly Martin wrote:
 I should also mention that I have an almost-identical server running
 FreeBSD 7.3-release-p2 in backup production and did not experience
 these problems when upgrading from php 5.3.3_2 to php 5.3.4. Something
 in my 8.1-release development server is causing the problems with
 upgrading PHP, so I'm reluctant to upgrade my production servers as
 they are absolutely identical until I find a fix.

Try running 'portmaster --check-depends', then retry the update.

If it still fails, then choose one or more of the php5 modules that
fails and do a forced update of it and all of its dependencies: eg

   # portmaster -f php5-mcrypt-5.3.3_2

This will re-install quite a lot of packages, so be prepared for it to
take a while.  Something like this list, although details will vary
depending on your configuration:

#pkg_info -rRx php5-mcrypt
Information for php5-mcrypt-5.3.4:

Depends on:
Dependency: expat-2.0.1_1
Dependency: openssl-1.0.0_4
Dependency: libmcrypt-2.5.8
Dependency: perl-5.10.1_3
Dependency: pkg-config-0.25_1
Dependency: pcre-8.10
Dependency: libltdl-2.2.10
Dependency: mysql-client-5.1.54_1
Dependency: db48-4.8.30.0
Dependency: libiconv-1.13.1_1
Dependency: libxml2-2.7.8_1
Dependency: apr-ipv6-devrandom-db48-mysql51-1.4.2.1.3.10
Dependency: apache-2.2.17_1
Dependency: php5-5.3.4

After that you should be able to finish off the updates as usual.

Oh -- beware of the extension.ini ordering problem.  If php starts
crashing on you after the update, it's probably because the order of the
modules in /usr/local/etc/php/extensions.ini has changed and needs to be
edited back to something workable.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: portmaster problems upgrading to php 5.3.4

2010-12-28 Thread Kelly Martin
2010/12/28 Maciej Milewski m...@dat.pl:
 Have you read /usr/ports/UPDATING?
 There is a note:
 20101208:
  AFFECTS: autotools
  AUTHOR: autoto...@freebsd.org

  Another stage in the autotools cleanup that reduces tree churn whilst
  updating components, a number of ports have now moved to non-versioned
  locations since there is now only the concept of legacy and current
  versions.

  # portmaster -o devel/autoconf devel/autoconf268
  # portmaster -o devel/automake devel/automake111
  # portmaster -o devel/libtool devel/libtool22
  # portmaster -o devel/libltdl devel/libltdl22

Awesome, that fixed my problem. Thanks very much! I hadn't seen that
note in /usr/ports/UPDATING so I appreciate you pointing it out. And I
just ran this on all my servers and everything is now up to date,
cool!

Cheers,
Kelly
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org