Giter Site home page Giter Site logo

shadowman's Introduction

. . . . . . 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).

shadowman's People

Contributors

jannik2099 avatar mgorny avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

shadowman's Issues

Provide a replacement for `distcc-config --update-masquerade-with-crossdev`

The old sys-devel/distcc ebuild used to have a USE flag to prevent installation of bare cc/gcc/c++/g++ symlinks, so that slow i686 machines can safely distcc to fast amd64 hosts without cryptic failures, e.g. bug 639494. This tool installs symlinks unconditionally and there's no fix besides manually pruning them, which gets undone whenever it decides to run again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.