portupgrade won't change an origin for a downgrade
Joel Hatton
freebsd at auscert.org.au
Thu Aug 23 06:41:01 PDT 2007
Hi,
I've a situation where I need to downgrade apache from www/apache22 to
www/apache20. (Reason is because I want to play with mod_security and _it_
doesn't seem to want to play with 2.2) It has a fair whack of dependencies
and I will need to rebuild those to suit - php in particular, as it tends
to put things into different places depending on apache version.
Now, the command I figured would just do the job is this:
portupgrade -rpf --batch -o www/apache20 apache\*
This _should_ change the origin of the current apache port to www/apache20,
rebuild it and all downward dependencies and build packages for each. But
it doesn't:
---> Reinstalling 'apache-2.2.4_2' (www/apache22)
---> Building '/usr/ports/www/apache22'
===> Cleaning for apache-2.2.4_2
To enable a module category: WITH_<CATEGORY>_MODULES
To disable a module category: WITHOUT_<CATEGORY>_MODULES
Per default categories are:
AUTH AUTHN AUTHZ DAV CACHE MISC
Categories available:
AUTH AUTHN AUTHZ CACHE DAV EXPERIMENTAL LDAP MISC PROXY SSL SUEXEC THREADS
To see all available knobs, type make show-options
To see all modules in different categories, type make show-categories
You can check your modules configuration by using make show-modules
===> Extracting for apache-2.2.4_2
=> MD5 Checksum OK for apache22/httpd-2.2.4.tar.bz2.
=> SHA256 Checksum OK for apache22/httpd-2.2.4.tar.bz2.
=> MD5 Checksum OK for apache22/apr_dbd_mysql.rev-57.c.
=> SHA256 Checksum OK for apache22/apr_dbd_mysql.rev-57.c.
===> apache-2.2.4_2 depends on file: /usr/local/bin/perl5.8.8 - found
===> Patching for apache-2.2.4_2
===> apache-2.2.4_2 depends on file: /usr/local/bin/perl5.8.8 - found
===> Applying FreeBSD patches for apache-2.2.4_2
===> apache-2.2.4_2 depends on file: /usr/local/bin/perl5.8.8 - found
===> apache-2.2.4_2 depends on file: /usr/local/bin/autoconf-2.59 - found
and so on....
I guess that -o isn't compatible with -f in the way that I'd like it to
be (and in the way that the man page might imply) so... What's my best
option here? I can deinstall and reinstall apache (and I have to force the
deletion as it is because of the deps) but then my dependency list is shot
unless I record it before I proceed.
thanks,
joel
-- Joel Hatton --
Infrastructure Manager | Hotline: +61 7 3365 4417
AusCERT - Australia's national CERT | Fax: +61 7 3365 7031
The University of Queensland | WWW: www.auscert.org.au
Qld 4072 Australia | Email: auscert at auscert.org.au
More information about the freebsd-ports
mailing list