Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-soc
Navigation:
Lists: gentoo-soc: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-soc@g.o
From: Donnie Berkholz <dberkholz@g.o>
Subject: Re: Ebuild Generator week 7
Date: Sun, 3 Jul 2011 16:22:26 -0500
On 22:08 Sun 03 Jul     , darkdefende@... wrote:
> Now I'm moving on to figure out how I should structure how the program 
> searches for possible useflag and/or optional dependecies.
> 
> I'm thinking about having it parse the makefile first and look for 
> variables that configure will supply to it in relevant areas. Like 
> variables that pull in stuff from EXTRA_…_SOURCES for example. This 
> way I can look for where those variables are defined in the autoconf 
> file and then just evaluate those parts of the autoconf file.
> 
> I don't know if this will make it easier or save me any time. But it 
> seems to me like it would be better if I could just evaluate those 
> cases as they use, as far as I've seen, the same autoconf 
> macros/functions. Which would mean that I can narrow down which macros 
> I have to implement.

I wouldn't do it that way; I would complete ignore the Makefiles on an 
autotools project, since as you've said they are fraught with 
complexity. Generated Makefiles are far more complex than handwritten 
ones, although the nice thing is that if one works, they all do.

I would check AC_ARG_WITH and AC_ARG_ENABLE, which tells you what 
features are truly optional and also give a good idea of what the USE 
flags should be. I'd use those to determine what variables and defines 
get set in an optional way, and then track them through (1) Makefile.am 
files to see how it changes what's built and how and (2) the source 
files themselves to see how it changes #ifdefs and thus what's included.

--
Thanks,
Donnie

Donnie Berkholz
Admin, Summer of Code
Gentoo Linux and X.Org
Blog: http://dberkholz.com
Attachment:
pgpPpsDc8Z7mU.pgp (PGP signature)
Replies:
Re: Ebuild Generator week 7
-- darkdefende
References:
Ebuild Generator week 7
-- darkdefende
Navigation:
Lists: gentoo-soc: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Ebuild Generator week 7
Next by thread:
Re: Ebuild Generator week 7
Previous by date:
Re: Auto dependency builder progress report. Week 5.
Next by date:
Benchmarking suite - Report 6


Updated Jun 12, 2012

Summary: Archive of the gentoo-soc mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.