Gentoo Archives: gentoo-soc

From: darkdefende@×××××.com
To: gentoo-soc@l.g.o
Subject: [gentoo-soc] Ebuild generator week 9 update
Date: Mon, 18 Jul 2011 19:14:45
Message-Id: cone.1311016469.636968.29079.1000@DarkRain
1 Sorry for the delay of last weeks update. I got sick on the weekend so i
2 didn't get the update done when I wanted to.
3 Anyways here it is.
4
5 Last week I worked on how to interpret the information that I get from
6 the autoconf and automake parser. I would then combine that information
7 and create an ebuild.
8
9 However it didn't go as smoothly as I planned so this is still not done.
10 The main problem is that I need to know what the "switches" in the
11 configure script does so I can link them to useflags with correct deps.
12 If I just were to write a autoconf replacement in python there wouldn't
13 be much of a problem as I just have to "do" not try to guess what it
14 does.
15
16 Right now I have problems with figuring out how I should handle stuff in
17 the autoconf file that checks for headers,libs or package checks.
18 Granted, in most cases they are just there to see if you have the
19 dependecy or if you have the correct version.
20 So basicly you offen check if the correct dependecy is installed on the
21 system and then give green light to build some extra features.
22
23 But the problem is you can have it go the other way also. I.E:
24 If not the correct dependecy is installed then disable some features or
25 use old API.
26
27 Because my ebuild generator should be able generate ebuilds without all
28 the required dependencies this is a problem.
29 I can't run the checks as they will fail as everything required to build
30 the program might not be installed. And if I skip the checks there might
31 be problems as I can't think of a way that I can guess what it will try
32 to do.
33
34 Do you guy have any ideas how I should solve this problem? Or should I
35 just "bindly" skip the checks and do what it would do if that check
36 would have passed?

Replies

Subject Author
Re: [gentoo-soc] Ebuild generator week 9 update Donnie Berkholz <dberkholz@g.o>