[libblockdev 0/4] Would like to use scons instead of make

David Shea dshea at redhat.com
Wed Jul 9 17:37:20 UTC 2014


On 07/09/2014 12:16 PM, mulhern wrote:
> The primary motivation is that it may make the configuration part, which
> would otherwise be handle by autotools, easier. Also, it may actually be
> the case that scons is better. I've never written an SConstruct file before
> and the whole thing was surprisingly easy. The fact that the file is actually
> python is nice, and the automatic, and hopefully correct, handling of C
> dependencies is nice too.
>
> One thing that confused me is scons -c (for clean). It cleans for the
> default target, only. I don't yet know how to clean for all targets,
> without specifying them all, or temporarily removing the default target.
>
> The first patch is just a tiny fix I happened to notice.
>
> Removing the Makefile may seem harsh, but we don't want two build systems
> going at once. If we need it back, because this does not work out,
> it's not hard to find.
>
>

I am apprehensive. I won't argue that autotools is particularly great 
but using things that aren't autotools always seems to involve a lot of 
time and frustration working around things that are missing in the other 
tools. Off the top of my head: is there a DESTDIR equivalent? Does scons 
handle soname/soversion/other shared object stuff correctly? How can you 
tell what targets a particular scons file has? Is there a way to 
override CFLAGS/LDFLAGS/&c from the environment or the command line?


More information about the anaconda-patches mailing list