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 1MTq9R-000632-Dd for garchives@archives.gentoo.org; Thu, 23 Jul 2009 04:43:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2B432E0278; Thu, 23 Jul 2009 04:43:28 +0000 (UTC) Received: from mail-ew0-f217.google.com (mail-ew0-f217.google.com [209.85.219.217]) by pigeon.gentoo.org (Postfix) with ESMTP id C9104E0249; Thu, 23 Jul 2009 04:43:27 +0000 (UTC) Received: by ewy17 with SMTP id 17so691886ewy.34 for ; Wed, 22 Jul 2009 21:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer; bh=xnUcUAHyP+pjpiCDXIsVgL0Se9FAkSluYf1XY9yYl3U=; b=kNiWrSzq+cCqZNC4uf2WtNxYIDvVDO7o+EHX+FLskJvuOXA3TdFgEOiUndBz0zUN3A f+nZnMLaxu6wz3fTjmlBgN18VmKunOnUH2QLEizJJySPNk6hlIIZX+T9//c8ycHuTjnF peNtSZYQOLv/eZukXmsUfrf64bqHUOE+o9Dec= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer; b=lHe95Sah2MhY9sggwFppTCYC8qWfV95sXGfcJQyw3LoSQZXUTLJ6zJBrwZgo6Qbu+g PfX4An8Zw0OTgHhnZ+MF+jXa61/po5LcdERppOL6kt9hpio/4I7PZJoYuakq+0qqH98Q 8ZEIo4yy+f+QvUguuGQjj/GKXx4mrtaF9fpVQ= Received: by 10.210.102.9 with SMTP id z9mr2059317ebb.16.1248324207267; Wed, 22 Jul 2009 21:43:27 -0700 (PDT) Received: from ?10.0.0.2? ([89.180.61.83]) by mx.google.com with ESMTPS id 5sm1329858eyf.48.2009.07.22.21.43.26 (version=SSLv3 cipher=RC4-MD5); Wed, 22 Jul 2009 21:43:26 -0700 (PDT) Subject: [gentoo-dev] Re: [gentoo-soc] Re: Progress on Universal Select Tool From: =?ISO-8859-1?Q?S=E9rgio?= Almeida To: gentoo-soc@lists.gentoo.org Cc: Gentoo Dev In-Reply-To: <8b4c83ad0907222009sba2c36fu59d2caf68ebcfd95@mail.gmail.com> References: <1245163715.14589.515.camel@thedude> <1248288117.7494.34.camel@thedude> <8b4c83ad0907222009sba2c36fu59d2caf68ebcfd95@mail.gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-I887YttprC0AubWMKjU3" Date: Thu, 23 Jul 2009 05:43:23 +0100 Message-Id: <1248324203.7494.52.camel@thedude> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 X-Archives-Salt: 6c884176-e806-460f-a40b-959564931f75 X-Archives-Hash: 9f3b5f5c893937f9c109c85238d22ad2 --=-I887YttprC0AubWMKjU3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, On Thu, 2009-07-23 at 08:39 +0530, Nirbheek Chauhan wrote: > It's probably wise to commit code in small-ish (and self-containing) > discrete units each of which add something without breaking anything. > Otherwise, it becomes very difficult to track down which change broke > something via git bisect. I would recommend that you try to do this, > if only just to learn how to make good commits. >=20 Will try to do this from this state on. Starting this week. > You could take a look at how the kernel folks handle this -- features > go in as several small commits/patches. Thanks, will surely look at it. Now, a little call for help to everybody: A child process cannot (or shouldn't be able to) change parent's process environment. uprofile will need to change env var's on-the-fly. For instance tag $PS1 with the current profile in use Reliable options: * Spawn a child shell with the chosen environment os.execv('/bin/bash', []) # can be whatever shell * Wrap uprofile into a /bin/whateversh script that changes environment acording to what child uprofile says. Ugly stuff. Unreliable options: * gdb/similar attach to parent and do some "call"s * wrap watheversh into something that supports env changes from child processes I like the first idea the most even though it's a sub-shell. This method kind of breaks automatic startup of uprofile for HOME. Anyone has a clue on this? Off to sleep... Cheers, S=C3=A9rgio=20 --=20 S=C3=A9rgio Almeida - mephx.x@gmail.com mephx @ freenode --=-I887YttprC0AubWMKjU3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkpn6mMACgkQQXumuXcKj07VygCgp1fTVBBDgc2VrD9dkXBv0z2/ 0sMAnA/0v7CLZiJLYXSaFs7GAGchF209 =MeSO -----END PGP SIGNATURE----- --=-I887YttprC0AubWMKjU3--