helpmake - Support: sr #106134, Added plugins support for make -...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

sr #106134: Added plugins support for make - please help to contribute

Submitted by:  None
Submitted on:  Fri 28 Dec 2007 03:08:14 PM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open
Operating System: Any

Mon 14 Sep 2009 04:10:33 AM UTC, comment #1:

This is great. I hope it gets accepted.

Anonymous
Fri 28 Dec 2007 03:08:14 PM UTC, original submission:

Hi,
I've created a patch for adding 'plugins support' to make.
This enhancement is intended for understanding and debugging of large build systems, specially those where the -n is not enough.

A plugin is a .so where callbacks to events are provided.
I've added about 20 event types (callback hooks) along make, so plugins can 'listen' them and take actions, such as writing a log, parsing commands, etc.

I added the following command line options:
-P myplugin.so
--plugin myplugin.so
which tells make to load the 'myplugin.so' plugin

Plugin support is accomplished by launching a process that loads the plugin, and then opens a message queue where the events are queued by the makes (the top and the children).

Additionally, since the new POSIX behavior related to crlf parsing broke our Makefiles that worked in 3.80, I added an option in the ./configure that controls the default POSIX behavior of make:
If you run ./configure with no parameters, make is generated as in 3.81, that is, POSIX behaved by default, but supporting a --no-posix command line option to make it behave as 3.80.
If you run ./configure --disable-default-posix, make is generated as in 3.80 (non POSIX as default), but supporting a --posix command line option.

Please let me know how to contribute this stuff, if useful. We are using it. We are aware of some bugs in the events dynamics so help is very appreciated.

A final note of this message: I've only diffed the main directory, since I used an older version of automake therefore lots of files were different (just because of the version number).

Daniel Gutson.

Anonymous

 

Attached Files
file #14718:  Make_plugins.patch added by None (128kB - application/octet-stream - Patch for supporting plugins in make)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 28 Dec 2007 03:08:14 PM UTCNoneAttached File-=>Added Make_plugins.patch, #14718

    Back to the top


    Powered by Savane 3.1-cleanup