Skip to content

projg2/shadowman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

. . . . . . shadowman . . . . . .
compiler shadow directory manager
( 2-BSD licensed eselect module )


shadowman is a management tool for compiler shadow directories that
are used by ccache, distcc, icecc and similar tools.

Why? Because right now, Gentoo bundles its own *-config tool for every
program out there. Each of these tools has different usage and different
limitations.

The idea behind shadowman is to provide a single tool that supports all
the compiler wrappers out there, and that can easily be extended to
support more. This has a number of advantages:

1. one usage syntax that works for all tools,

2. ability to update/clean masquerades for multiple tools in one call,

3. consistent (and *good*) implementation -- now all tools get the same
executable list,

4. reduced code duplication,

5. modular layout that allows adding extra tools/compiler wildcards
by third-party packages.

shadowman can not only replace the existing *-config tools but also
extend their usefulness. For example, toolchain packages can be extended
to call 'eselect compiler-shadow update all' in postinst and save
the user from manually updating shadow directories post compiler
upgrades.


shadowman uses compiler and tool modules to provide support for
different programs. Those are installed to
/usr/share/shadowman/compilers and /usr/share/shadowman/tools
by default.

A compiler module is a text file whose first (and only) line contains
one or more compiler name wildcards in bash syntax. For example,
the default 'posix' module has:

    {,*-}{cc,c99,c++}

shadowman uses wildcards from all compiler modules found, unless
the user provides an alternate wildcard to use. The compilers found
in any directory of PATH matching the wildcards are used.

A tool module is a text file whose filename matches the tool executable
name and whose first (and only) line contains the path to the respective
shadow directory. For example, the 'ccache' module has:

    /usr/lib/ccache/bin

shadowman enables support for all the tools whose executable is found
in PATH (i.e. the 'ccache' tool is enabled if 'ccache' can be found
in PATH).

About

Unified compiler shadow link directory updater (for ccache, distcc, icecc)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published