Ticket #122 (new defect)

Opened 2 years ago

Last modified 2 years ago

Having Dynamic Requires: For RPMS Checking Conditions only Available at RPM Runtime

Reported by: stevench2000 Assigned to: RpmTickets
Priority: major Milestone:
Component: rpm Version: RPM 4.4.2.3
Keywords: Dynamic Requires Cc:

Description

Hi,

Greetings.

Recently, I encountered a problem building an RPM needs to determine the "Requires" under conditions ONLY available at runtime. For example depending on different OS favours and their levels, to require different level of third party utility packages.

There seems to be a way to hack it using lua http://rpm.org/wiki/PackagerDocs/RpmLua However, before trying this I am not sure if this is an officially supported feature or if it will be dropped in the future.

Can you please provide any suggestions on how to deal with this problem or direct me to any references for this?

Thanks in advance.

Steven