Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2007 17:51:09 +0400
From:      Yuri Pankov <yuri@darklight.org.ru>
To:        Joel Hatton <freebsd@auscert.org.au>
Cc:        ports@freebsd.org
Subject:   Re: portupgrade won't change an origin for a downgrade
Message-ID:  <20070823135109.GB43294@darklight.org.ru>
In-Reply-To: <200708231301.l7ND18cW048879@app.auscert.org.au>
References:  <200708231301.l7ND18cW048879@app.auscert.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 23, 2007 at 11:01:08PM +1000, Joel Hatton wrote:
> 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@auscert.org.au

Check http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/113485

I think it was fixed in latest portupgrade version, cause it works for me:

#portupgrade -rpf --batch -o www/apache20 apache\*
--->  Downgrading 'apache-2.2.4_2' to 'apache-2.0.59' (www/apache20)
--->  Building '/usr/ports/www/apache20'
===>  Cleaning for apache-2.0.59
<snip>

portupgrade-2.3.1,2


HTH,
Yuri



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070823135109.GB43294>