Hi, I am working on creating an RPM for a project i am working on. The project in question has some required dependencies that should already be installed when i am running my post Install scriplet.
During my trial and error to make the dependency installed prior to my own package, i tried using the following : PreReq- This should have produced the designred results, only its deprecated from rpm V4 Require- As mentioned in the rpm documentation, should have handled the dependecies correctly but for some strange reason the dependency is installed (by yum) only after my rpm. So after doing some more reading it seems that using Require(pre): dependency in addition to Require:dependency, should instruct yum to force the dependency order and leave the dependency installed. Mםרק שנםוא ןא יקרק: http://www.rpm.org/wiki/PackagerDocs/Dependencies#ScriptletDependencies The problem Require(pre) is not supported, so i want to create such a patch that will enable adding the scriplet name to Require(pre/post/postun). So my questions are: 1. Should PreReq be deprecated from the rpm plugin? 2. What do you think is the best way to create the scriplet requires without breaking the any existing configuration containing <reqruies><require>...</reqruies></require> The options i see fit are one of the following: Adding <preReqruies><preRequire>...</preReqruies></preRequire> (and the same for the other scriplets) Adding <isPreRequire>true</isPreRequire> (and the same for the other scriplets) which will be enforced on all the Require dependencies. This one might work in my case will not actually enable using a dependency ONLY for a defined scriplet adn removed when one. Are there any other options you think might work better in this case? Thanks Daniel
