From owner-freebsd-ports@FreeBSD.ORG Thu Aug 23 13:51:40 2007 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFDB016A417 for ; Thu, 23 Aug 2007 13:51:40 +0000 (UTC) (envelope-from yuri@darklight.org.ru) Received: from darklight.org.ru (crsd-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2d5::2]) by mx1.freebsd.org (Postfix) with ESMTP id DD84213C46A for ; Thu, 23 Aug 2007 13:51:39 +0000 (UTC) (envelope-from yuri@darklight.org.ru) Received: from darklight.org.ru (yuri@darklight.org.ru [127.0.0.1]) by darklight.org.ru (8.14.1/8.14.1) with ESMTP id l7NDpAdS044577 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Aug 2007 17:51:10 +0400 (MSD) (envelope-from yuri@darklight.org.ru) Received: (from yuri@localhost) by darklight.org.ru (8.14.1/8.14.1/Submit) id l7NDp93L044576; Thu, 23 Aug 2007 17:51:09 +0400 (MSD) (envelope-from yuri@darklight.org.ru) Date: Thu, 23 Aug 2007 17:51:09 +0400 From: Yuri Pankov To: Joel Hatton Message-ID: <20070823135109.GB43294@darklight.org.ru> References: <200708231301.l7ND18cW048879@app.auscert.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200708231301.l7ND18cW048879@app.auscert.org.au> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: ports@freebsd.org Subject: Re: portupgrade won't change an origin for a downgrade X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 13:51:40 -0000 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__MODULES > To disable a module category: WITHOUT__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 portupgrade-2.3.1,2 HTH, Yuri