From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PII6z-00018W-HK for garchives@archives.gentoo.org; Tue, 16 Nov 2010 09:46:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1AE72E0698; Tue, 16 Nov 2010 09:45:32 +0000 (UTC) Received: from smtpq3.gn.mail.iss.as9143.net (smtpq3.gn.mail.iss.as9143.net [212.54.34.166]) by pigeon.gentoo.org (Postfix) with ESMTP id D191EE0698 for ; Tue, 16 Nov 2010 09:45:31 +0000 (UTC) Received: from [212.54.34.137] (helo=smtp6.gn.mail.iss.as9143.net) by smtpq3.gn.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1PII6V-0006WG-6E for gentoo-user@lists.gentoo.org; Tue, 16 Nov 2010 10:45:31 +0100 Received: from 5ed3454e.cm-7-4b.dynamic.ziggo.nl ([94.211.69.78] helo=data.antarean.org) by smtp6.gn.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1PII6U-0003CP-KT for gentoo-user@lists.gentoo.org; Tue, 16 Nov 2010 10:45:30 +0100 Received: from localhost (localhost [127.0.0.1]) by data.antarean.org (Postfix) with ESMTP id 41B632093 for ; Tue, 16 Nov 2010 10:45:29 +0100 (CET) X-Virus-Scanned: amavisd-new at antarean.org Received: from data.antarean.org ([127.0.0.1]) by localhost (data.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T5XYiGPAGkiS for ; Tue, 16 Nov 2010 10:45:29 +0100 (CET) Received: from eve.localnet (eve.lan.antarean.org [10.20.13.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by data.antarean.org (Postfix) with ESMTPS id F29B61EB6 for ; Tue, 16 Nov 2010 10:45:28 +0100 (CET) From: "J. Roeleveld" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] how to rebuild gentoo on a somewhat different hardware Date: Tue, 16 Nov 2010 10:45:29 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.30-gentoo-r5; KDE/4.4.5; x86_64; ; ) References: <1289900014.10494.0@numa-i> In-Reply-To: <1289900014.10494.0@numa-i> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201011161045.29376.joost@antarean.org> X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1PII6U-0003CP-KT X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=-2.599, vereist 5, autolearn=not spam, BAYES_00 -2.60) X-ZiggoSMTP-MailScanner-From: joost@antarean.org X-Spam-Status: No X-Archives-Salt: 08573f5c-153d-4b12-9eb1-c1755c4a213c X-Archives-Hash: 80102a4b6ee463b56d6b96990af9eb9e On Tuesday 16 November 2010 10:33:34 Helmut Jarausch wrote: > Hi, > > I have an up-to-date ~amd64 GenToo installation with has been > built on a current AMD64 (Phenom II) machine where I used > -mtune=native in etc/make.conf since I didn't think of the case > that I would need to port this system to a somewhat older Opteron > based machine (still AMD64) > > But after cloning the system, some fundamental utilities die of > an illegal instruction. So I have to rebuild GenToo nearly > from scratch. emerge -e world doesn't work. > > So, what is a reasonably fast method? > > I'd like to keep > /etc > /usr/portage except /usr/portage/packages > /var/lib/portage > > Is there a fast method e.g. by using the Gentoo based > SystemRescueCD to reinstall a very basic system, such that > I can do emerge -e world. > It looks as if the gcc tool-chain is intact since I could > compile a kernel without any problem. > But some utilities, e.g. find, die of an illegal instruction. > > Many thanks for any hints saving me a couple of hours work, > > Helmut. Ok, the following is NOT tested, but might work: 1) boot with a systemrescuecd 2) backup the sytem (I did not test this) 3) create a chroot-space for a new install (don't worry, not doing full install) 4) unpack a stage3 5) chroot into this 6) build packages from this stage3 7) chroot into the install to be fixed 8) emerge these packages onto your current system (this should contain all you need for "system") 9) emerge -e world If there is anyone who has actually been in this situation, please feel free to comment on this. Also, I'm not certain what will happen to /etc, but the etc-update script can be told to keep existing configurations. -- Joost