From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 25 21:44:53 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 152CE1065689 for ; Thu, 25 Sep 2008 21:44:53 +0000 (UTC) (envelope-from jespasac@minibofh.org) Received: from smtp01.cdmon.com (smtp01.cdmon.com [212.36.75.232]) by mx1.freebsd.org (Postfix) with ESMTP id D10838FC20 for ; Thu, 25 Sep 2008 21:44:52 +0000 (UTC) (envelope-from jespasac@minibofh.org) Received: from desktop.melrose.com (unknown [84.77.66.237]) by smtp01.cdmon.com (Postfix) with ESMTP id C962BF7BA5 for ; Thu, 25 Sep 2008 23:25:54 +0200 (CEST) Message-ID: <48DC01DA.9040108@minibofh.org> Date: Thu, 25 Sep 2008 23:25:46 +0200 From: Jordi Espasa Clofent User-Agent: Thunderbird 2.0.0.12 (X11/20080313) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Regenerate ports tree from installed ports? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Sep 2008 21:44:53 -0000 Hi all, I suppose it's a dumb (and crazy) question, but as post subject says: żIs it possible to regenerate the /usr/ports tree _from_ the installed ports? Let's me to explain. I've a lot of production servers with 6.2 and 6.3 version, and I wanna update them to new 7.x branch. I'll use the 'traditional' method (cvsup, make buildworld, make kernel...etc) instead the new binary method (freebsd-update) because of I've a customized kernel in these boxes. Until that point, it's all right. But everybody knows that you have to recompile all your installed ports after the kernel and userland upgrade, to re-link the new libraries and disappeared ones. But in my case, these boxes are used as shared web-hostings, and a lot of particularities are present. Change the php version, for example, can means that tens of webs not work fine. If I would have a perfect ports tree it would be easy: simple recompile all the ports with portupgrade; but the nasty reality is that I'm not sure that the present ports tree is the identical mirror of installed ports. Even there are more possibilities that ports tree is more updated than the majority of installed ports. So, the only way I can see is the next: * update buildworld and kernel * remove /usr/ports * regenerate the /usr/ports from _installed_ ports * recompile all ports in new kernel/userland żIs it possible? Please, be polite if I'm saying a stupid things :P -- Thanks, Jordi Espasa Clofent