Gentoo Archives: gentoo-osx

From: Grobian <grobian@g.o>
To: gentoo-osx@l.g.o
Subject: Re: [gentoo-osx] Followup to: The road ahead?
Date: Sat, 26 Nov 2005 10:31:33
Message-Id: 20051126103101.GL25388@gentoo.org
In Reply to: Re: [gentoo-osx] Followup to: The road ahead? by dirk.schoenberger@sz-online.de
1 On 26-11-2005 00:08:02 +0100, dirk.schoenberger@×××××××××.de wrote:
2 > > > The idea is to provide GUI frontends to Gentoo applications using
3 > > > Python
4 > > > bindings to AppKit/Cocoa, and the use of Renaissance, a declarative
5 > > > GUI approach implemented as part of the GNUstep project
6 > > > (http://www.gnustep.org)
7 >
8 > > Where 'Gentoo applications' == the portage UI itself ? Or are you
9 > > talking about actually wrapping arbitrary packages in a GUI?
10 >
11 > In fact, both. the first step would obviously be to build some basic GUI
12 > around some interesting console applications.
13
14 Like? What kinds of applications are you thinking of here? Just help
15 me with ideas here, because I wouldn't see the use of a GUI wrapper for
16 sed. A GUI for pdflatex on the other hand is nice, but already exists
17 (TeXshop).
18
19 > The wrapper could be written in Python (or another scripting language
20 > which has ObjC bindings, which I have not further investigated, yet) and
21 > calls the console commands. Additional points for parsing the tools output
22 > andshowinfg the result in the wrapper GUI.
23 >
24 > The next step would be to implement Gento specific backends, for querying
25 > the Gentoo database and installing / deinstalling / reinstalling packages.
26 > This could be implemented by calling Gentoo scripts, or a C / Python /
27 > whatever level, as soon it is available.
28
29 Interesting at this point may be extending/porting the GUI around
30 libconf, a Gentoo-ish project by dams. But that is only one of course.
31 If I recall correctly there is some daft portage GUI as well now, but I
32 think something like FinkCommander would look better (although
33 FinkCommander is anything but intuitive).
34
35 > The advantage against the current manual installation would be that you
36 > can rely on the Gentoo package management facilities, which I came to miss
37 > after my last experiments. Things like automatic version updates,
38 > dependency management, the possibility to actual unistall stuff....
39
40 Maybe I misunderstand you here, but what were your last experiments? As
41 far as I know, Portage can do updates, dependency management and
42 uninstall packages. What would you like to add here?
43
44 > By using renaissance as your frontend system, you can achieve some nice
45 > cross platform abilities which leads to less code needed to be maintained
46 > by the gentoo-osx people.
47
48 dirk++ :)
49
50 > > The former, should definitely wait until portage 3 (saviour) is here,
51 > > as that will be the first portage to actually have an API.
52 >
53 > I assume there already exist some scripts which could be used to query the
54 > Gentoo database? Something like gentoo-toolkit?
55 > Now all is needed is a way to exec a shell script via Python.
56
57 Using equery, or eix (a C implementation of portage which should be much
58 faster -- I'm not sure if it completely works) you should be able to get
59 a lot of data you need. Using some sane interface model, you'd be able
60 to use the Portage (Python?) API lateron very easily I presume.
61
62 > > The latter, is a completely crazy idea, but if you think you can pull
63 > > it off, more power to ya ;)
64 >
65 > It is possibly to implement the actual script without using Gentoo, so
66 > this I could do without help. For integrating this stuff and porting the
67 > needed prerequisites, I think I would hae to ask for help from Gentoo
68 > developers... ;)
69
70 Hmmm... Interesting!
71
72 I'd like to see your plans here, like what you envision, and what you
73 think would be necessary to do. Where exactly you'd need help, and what
74 you can deliver. :) You can always do your own thing, and I'd like to
75 encourage that. Keep us posted!
76
77 --
78 Fabian Groffen
79 Gentoo for Mac OS X Project -- Interim Lead
80 --
81 gentoo-osx@g.o mailing list