SA Bugzilla – Bug 2390
RPM built from RC3 CVS has bogus dependency
Last modified: 2003-09-08 08:30:44 UTC
I built the CVS version of 2003-08-30 as an RPM (as I usually do) on Redhat 9, but it will not install, the message is:- error: Failed dependencies: perl() >= . is needed by perl-Mail-SpamAssassin-2.60-20030830 I tracked this down (via /usr/lib/rpm/perl.req) to a line in BayesStore.pm which reads: use ' . $dbm . '; in the new "upgrade_old_dbm_files_trapped()" routine. This obviously confuses perl.req.
*** Bug 2392 has been marked as a duplicate of this bug. ***
gotta love that rpm perl.req script. <sigh>
Created attachment 1322 [details] suggested patch we had the same problem before when doing the blib stuff in the scripts. /usr/lib/rpm/perl.req (or your local equivilent) looks for '^\s+(use|require)', which doesn't pay attention to things like eval. This patch simply moves the "use" up to the same line as the eval.
+1 ick
Yes, that fixes it. Dave
+1 -- hate stupid scripts trying to second-guess perl
committed. :)
*** Bug 2420 has been marked as a duplicate of this bug. ***