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

 
 

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

Submitter:  Carl Ponder <carlponder>
Submitted:  Mon 27 Apr 2015 04:51:46 PM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  None Operating System:  None
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 27 Apr 2015 04:55:34 PM UTC, 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 27 Apr 2015 04:51:46 PM UTC, 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by carlponder (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code