From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16430 invoked from network); 15 May 2004 15:36:36 +0000 Received: from smtp.gentoo.org (128.193.0.39) by eagle.gentoo.oregonstate.edu with DES-CBC3-SHA encrypted SMTP; 15 May 2004 15:36:36 +0000 Received: from lists.gentoo.org ([128.193.0.34] helo=eagle.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.24) id 1BP1DI-0000Rd-3m for arch-gentoo-portage-dev@lists.gentoo.org; Sat, 15 May 2004 15:36:36 +0000 Received: (qmail 6378 invoked by uid 50004); 15 May 2004 15:36:35 +0000 Mailing-List: contact gentoo-portage-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail Reply-To: gentoo-portage-dev@lists.gentoo.org X-BeenThere: gentoo-portage-dev@gentoo.org Received: (qmail 21816 invoked from network); 15 May 2004 15:36:34 +0000 Message-ID: <40A637DD.70700@skylineaero.com> Date: Sat, 15 May 2004 10:31:41 -0500 From: Andrew Gaffney User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7rc1) Gecko/20040503 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gentoo-portage-dev@lists.gentoo.org References: <40A193B5.9080206@skylineaero.com> <200405151514.26131.jstubbs@gentoo.org> <40A5BDB9.20800@skylineaero.com> <200405151606.37771.jstubbs@gentoo.org> In-Reply-To: <200405151606.37771.jstubbs@gentoo.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [gentoo-portage-dev] building dependency tree X-Archives-Salt: 2f5e4756-4b08-463e-9053-3ec284b46b56 X-Archives-Hash: 9b83538c66a2f1f1ef65051e1abb9a1d Jason Stubbs wrote: > On Saturday 15 May 2004 15:50, Andrew Gaffney wrote: > >>>Jason Stubbs wrote: >>> >>>>On Saturday 15 May 2004 13:12, Andrew Gaffney wrote: >>>> >>>>>>You've already done a complete rewrite of the dependency resolver? >>>> >>>>Yes and no. I started from scratch but used almost exactly the same >>>>logic. I guess you could almost call it refactoring. Have a look at: >>>>http://www.gentoo.org/cgi-bin/viewcvs.cgi/portage-mod/portageapi/?root=ge >>>>ntoo-src >>>> >>>>Of interest to you, will probably be dep.py. Even if you do not >>>>understand python, the logic should be fairly clear (I hope!). The only >>>>real change from the above logic is that installed packages (including >>>>their original USE flags and *DEPENDs) are also taken into account. >>> >>>I'll have to take a look at it. If anyone wants to take a look at my code >>>(and maybe give me a few suggestions), the (almost) latest working version >>>can be accessed at . It currently >>>operates the same way 'emerge -ep' would. It doesn't generate the exact >>>same packages to install as Portage, but it is pretty damn close. > > May I ask what you are writing this for? Once the API I'm working on is > completed, tested and integrated (<2 months?) I'll start working on wrappers > for other languages. Is that the sort of thing you are after? I'm not quite sure why I'm doing it. Partly, I wanted to see if I could write a program that is faster than Portage. I also like to really understand how things work "under the hood". Writing a Perl program that functions like Portage's has really helped me do this. -- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548 -- gentoo-portage-dev@gentoo.org mailing list