bugmake - Bugs: bug #44942, OR-ing recipes to allow...

 
 

bug #44942: OR-ing recipes to allow alternative requsites

Submitted by:  Carl Ponder <carlponder>
Submitted on:  Mon Apr 27 16:51:46 2015  
 
Severity: 3 - NormalItem Group: Enhancement
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: NoneOperating System: None
Fixed Release: NoneTriage Status: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon Apr 27 16:55:34 2015, comment #1:

This may relate somewhat to Paul Smith's suggestion on Optional Requisites

http://savannah.gnu.org/bugs/?func=detailitem&item_id=109

since we could write OR-recipes with- and without- the optional files, though this make get unwieldy if the list of optional requisites is long.

Carl Ponder <carlponder>
Mon Apr 27 16:51:46 2015, original submission:

I'd like to be able to write some rules like this:

file : %.tar
tar -xvf $<

file : %.tgz
tar -xzvf $<

file : %.tar.bzip2
tar -xjvf $<

etc., where the rules would be tested in sequence until one is found with satisfiable pre-requisites. In this case it would look for any of the listed tar-files and then apply the unpacking rule.

I know that there are ways around this, but the procedural solution of adding conditional statements into the recipe body looks like a hack compared with this.

Have you guys considered these kinds of OR-recipes for other reasons?

Carl Ponder <carlponder>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by carlponder (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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1