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

Add a New Comment(Rich Markup)

You are not logged in

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


Mon 27 Apr 2015 04:55:34 PM UTC, comment #1:

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


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:

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)

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

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.3