Red Hat Bugzilla – Bug 1252038
Require or Recommend perl(Time::HiRes)
Last modified: 2015-08-10 10:59:34 EDT
Description of problem:
Recently koschei informed of a build failure for one of my perl packages
The failure seems to have been triggered by the separation of Net::Ping from the main perl package which in turn meant there was no Time::HiRes in the build root, which in turn seems to trigger very random failures in the test scripts for POE::Componnent::Client::SMTP.
I don't know if the test scripts themselves are even expected to run with POE kernel working without Time::HiRes.
The recommendation in the POE manpages is to install Time::HiRes if available.
I'd suggest a Requires to avoid any ambiguities with Recommends:
Version-Release number of selected component (if applicable):
Hmm, how did you figure it out? I can't tell from the logs :) Or is it just a random guess?
The Time::HiRes dependency is "highly recommended" but still optional. I'd prefer Recommends over Requires now that we have these; however, I think recommended dependencies are ignored in koji at the time being. That might and probably will change at some point.
If your module really requires high accuracy timers, it should depend on Timer::HiRes as well. I would probably ask upstream in this case.
Well, in the end I've decided to use Requires for consistency.
I may switch to weak dependencies in the future, though.
Figured it out empirically. The test themselves (which involve lots of poe tcp client talking to poe tcp server) behave rather differently without Time::HiRes, slowness and random failures...
I would be lost if I had to track what specifically fails without Time::HiRes.