The reason we don't do that is because RHEL and SLES (annoyingly) name their php rpm differently (php on rhel, php5 on sles). Since we have 1 set of xcat rpms that can be installed on both rhel and sles, we can't have a Requires statement for this. Sometimes in this situation, we can use the trick of requiring a particular file which is included in both rpms and then yum/zypper/rpm figures out the correct rpm to get. But there aren't even any file names (full path) that are common between the 2 rpms. (sigh).
Bruce Potter STSM, Linux & AIX Cluster Development, IBM, Poughkeepsie, NY Email: [email protected] Phone: external: 845-433-7073, internal: TL 293-7073 From: "Moss, Frank" <[email protected]> To: "[email protected]" <[email protected]>, Date: 10/24/2013 03:33 PM Subject: [xcat-user] Lack of dependency in SPEC file for xCAT-UI When installing via yum, we are currently experiencing the following error: Error! php has not been installed. Please run 'yum install php' before installing xCAT-UI. error: %pre(xCAT-UI-2.8.3-snap201310180120.noarch) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping xCAT-UI-2.8.3-snap201310180120 I would think that php would be listed as a required dependency in the rpm SPEC file for RHEL (et al.). >From the UI spec file lines 22-25: %ifos linux # httpd is provided as apache2 on SLES and httpd on RHEL Requires: httpd %endif Would be changed to: %ifos linux # httpd is provided as apache2 on SLES and httpd on RHEL Requires: httpd php %endif Thank You, Frank Moss | savvisdirect Cloud Systems Architect Savvis, A CenturyLink Company 575 Maryville University Drive - 4th Floor St. Louis, MO 63141 Office: 314.579.8592 | Mobile: 314.292.9130 www.savvisdirect.com This message contains information which may be confidential and/or privileged. Unless you are the intended recipient (or authorized to receive for the intended recipient), you may not read, use, copy or disclose to anyone the message or any information contained in the message. If you have received the message in error, please advise the sender by reply e-mail and delete the message and any attachment(s) thereto without retaining any copies. ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
<<inline: graycol.gif>>
------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
