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 1MFBMC-0003oh-0l for garchives@archives.gentoo.org; Fri, 12 Jun 2009 18:20:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 09B07E045F; Fri, 12 Jun 2009 18:20:02 +0000 (UTC) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by pigeon.gentoo.org (Postfix) with ESMTP id 863B2E045F for ; Fri, 12 Jun 2009 18:20:01 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 13so10952fge.14 for ; Fri, 12 Jun 2009 11:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=46Z1MddyP4XfJNGI6SnwU/05zzF9Zrb9QXQpTOy+VmQ=; b=UJjdj6hg4ZNhwKjm97E/CrS7zwLk43A1BMEvKDRmNnLs6NrYnc6hajnjzvKlFffuSK krQCwtlkfNhFWm0pKXUo3zgbtrFdcy6fvpAqTg3Ebjf5RhQSUeY0phoZEzQxi2bsGPb3 vI8HTmhxGZOeHHcW/jYUDvsTDb6t822Q7AbXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=YQC17w6JJXcigoI1KngrUgO4ptHJz89Xm+qWfhc5eThxJilsqZ6pqYmeSDLsaCAPhI BreOgJ3xVBXgeQODjwrfUJ41Jaa6b300Cose5ax81ABXO1JSJlhvgZzRglsaQ/Zusa6Y eE7Xboi4YPUZA1hA4YeZRo1j5S9V++2qCDBqM= Received: by 10.86.33.9 with SMTP id g9mr4138053fgg.66.1244830799087; Fri, 12 Jun 2009 11:19:59 -0700 (PDT) Received: from coercion ([91.191.238.58]) by mx.google.com with ESMTPS id d6sm4611682fga.17.2009.06.12.11.19.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Jun 2009 11:19:58 -0700 (PDT) Date: Sat, 13 Jun 2009 00:17:20 +0600 From: Mike Kazantsev To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to veiw absolute latest on partage without syncing Message-ID: <20090613001720.5e3855c4@coercion> In-Reply-To: <5bdc1c8b0906120945o67b34e39veaad57f1a578d4fa@mail.gmail.com> References: <4A326635.3020303@j-schmitz.net> <58965d8a0906120740t20185896k79ba0a668d47eb59@mail.gmail.com> <88EF37E8-DF4E-4830-8B32-754EC40565EB@stellar.eclipse.co.uk> <5bdc1c8b0906120945o67b34e39veaad57f1a578d4fa@mail.gmail.com> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.1; i686-pc-linux-gnu) 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: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/di.bQKOZP=26QS9H/rTNTtR"; protocol="application/pgp-signature" X-Archives-Salt: 997c89ec-aedf-4557-ba23-9fc6a914d755 X-Archives-Hash: ba6f0a6d1e22d930c3b3e0dc3a329778 --Sig_/di.bQKOZP=26QS9H/rTNTtR Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 12 Jun 2009 09:45:27 -0700 Mark Knecht wrote: > I've wanted a way to do something like this for a long time. One > problem with the way portage works with ( I guess) rsync or whatever > it uses is that when someone decides to remove a package from portage > that I'm currently using syncing removes it from my system also. > Unfortunately before I do the sync I have no idea it has been removed > so I don't know that it's going to get taken off my system. Once it > does I can go find a copy and put it in a personal overlay but that > requires I do the work after the damage is done. It would be nice if > there was a message ahead of time that told me certain packages were > going to be removed, etc., before it was actually done, but I > understand from previous conversations that syncing doesn't work that > way. But why not? alias emerge-sync=3D'rm -Rf /usr/portage.bak && mv /usr/portage{,.bak} \ && emerge --sync" and to make.conf goes: PORTAGE_RSYNC_OPTS=3D"--link-dest=3D/usr/portage.bak $PORTAGE_RSYNC_OPTS" And there you go: hardlinked new tree w/ old one easily accessible. Note that it won't take much more time or bandwith or space than syncing on top of the older tree, since same check will see that the files in .bak dir and remote tree are identical and will just create another hardlink to the same file. And you're free to dispose of any dir with "rm -Rf" when you see fit. Simple three-line no-brainer script will help you keep 10, 100, 1000 or however many trees you like, occupying just a few MB more than a single tree. Furthermore, if you want to keep a hundred-year history of this tree, just say something like this: cd /usr/portage echo -e "local\ndistfiles\npackages" > .gitignore git init git add . git commit -a -m "portage bump" alias emerge-sync=3D'cd /usr/portage && git add . \ && git commit -a -m "portage bump" && emerge --sync' and there you go, you'll never loose even a single bit of ebuild, no matter how many times a day you keep syncing. And .git storage will keep storage requiments of the whole thing to minimum, keeping each change in the single place, compressing them, etc... Git-foo is too cryptic? There are few dozens of other VCS, of, for that matter, ways to keep track of changes: snapshots, fs like venti/fossil, rdup, even cp/tar. Guess funtoo project is also worth mention in such context since it uses git instead of rsync out-of-the-box. > This has come up numerous times for me on older hardware where, for > instance, maybe some on-board graphics chip only works with older ATI > drivers, and that ATI driver only works with older kernels. By the > time sync is done I've lost the code for what my system is running, > and unfortunately there's no messages that this is happening when I'm > doing the sync so maybe I only figure it out a few weeks later and > then have to mess around building an overlay using the attic. No dev can ever satisfy every requiment of everyone if they are too lazy to lift a finger to type a line or two themselves. --=20 Mike Kazantsev // fraggod.net --Sig_/di.bQKOZP=26QS9H/rTNTtR Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkoym7QACgkQASbOZpzyXnGXHACfQ3yUZ9B0XsIsgvjdhAtchmP2 SaIAoKS0OafH81MAtv6exTXlbdVL1yCG =0Mmu -----END PGP SIGNATURE----- --Sig_/di.bQKOZP=26QS9H/rTNTtR--