Gentoo Archives: gentoo-soc

From: darkdefende@×××××.com
To: gentoo-soc@l.g.o
Subject: Re: [gentoo-soc] [SOC Ebuild generator project] Introduction and C&C
Date: Mon, 21 Mar 2011 11:01:01
Message-Id: cone.1300705234.248587.11921.1000@DarkRain
In Reply to: Re: [gentoo-soc] [SOC Ebuild generator project] Introduction and C&C by Fabian Groffen
1 Fabian Groffen writes:
2
3 > Hi Sebastian,
4 >
5 > Have you considered a 100% automatic ebuild generator? Based on
6 > heuristics you can come quite far in generating a first shot. Think of
7 > tools like autoscan, and what brew create[1] for instance do.
8 >
9 Well it would be quite hard to make it 100% automatic as there are so many
10 ways you can unpack->prepare->compile->install.
11 Perhaps it would work for simple makefile projects but then you have scons,
12 cmake, python and java projects.
13
14 I have no idea how I would automaticly figure out the useflags, deps and
15 the build process without user input!
16
17 > What are the questions you envisage to present the user here?
18 >
19 It won't really be questions prompted to the user but inputfields where
20 you'll write how you would build it normally.
21 For example in the "How would you build/install" field you would for a
22 simple makefile project type:
23 make && make install
24 And the program should convert that to the corresponding commands in
25 src_compile() and src_install()
26
27 > In general, trying to come up with a use-case (or two) helps to get
28 > yourself a focus on what you would like to do, and what not. A clearly
29 > defined project has multiple advantages for everyone involved.
30 >
31 I thought that this would be to help with generation of small to medium
32 sized projects. But if I have time I will try to make it able to generate
33 a working firefox/blender ebuild ;)
34
35 I have some small projects that it will try to get it to build first
36 ofcourse. That way I can set milestones hopefully.
37
38 > How about interaction with an editor, such as Vim? Would a command-line
39 > based core be acceptable for you? It would help you to get it accepted
40 > in a broader audience.
41 >
42 Why indeed! I use most of my stuff from commandline, including vim.
43
44 > What language(s) would you like to use to work this thing out?
45 > Perhaps try to fit approaches like Perl's GPAN into your proposal.
46 > Likewise, Python's pypi packages may inspire you how to fully
47 > automatically create an ebuild from just an url.
48 >
49 I've only had courses in python and lisp (scheme/racket) so far.
50 I'm planning to write this in python.

Replies

Subject Author
Re: [gentoo-soc] [SOC Ebuild generator project] Introduction and C&C Fabian Groffen <grobian@g.o>