On 2003-06-03(Tue) 21:09:31 +0200, Oden Eriksson wrote:
> I think I've found what is triggering /usr/lib/rpm/perl.req to think a
> perl(the) module is needed..., and the answer is "use the".
>
> rpm -qp --qf "[%{requirename}\n]" MySQL-client-4.0.13-1mdk.i586.rpm | grep the
> perl(the)
>
> grep "use the" /usr/bin/mysqlaccess
> use the option --old_server.
> # When matching, use the first found match.
>
>
> I tried this hack but it didn't work:Yup, probably you're true; the regex matching of "use ....." is not perfect. Can you try the attached patch on perl.req, and check perl dep again? Abel > %global __perl_requires /usr/lib/rpm/perl.req $* | sed -e '/perl(the)/d' > > It's currently impossible to install mysql on klama because of this... > > > -- > Regards // Oden Eriksson, Deserve-IT.com > -- Abel Cheung Linux counter #256983 | http://counter.li.org GPG Key: (0xC67186FF) | http://deaddog.org/gpg.asc Key fingerprint: 671C C7AE EFB5 110C D6D1 41EE 4152 E1F1 C671 86FF
--- /usr/lib/rpm/perl.req.bak 2003-05-13 23:07:19.000000000 +0800
+++ /usr/lib/rpm/perl.req 2003-06-04 03:26:29.000000000 +0800
@@ -122,9 +122,9 @@
(m/^(\s*) # we hope the inclusion starts the line
(require|use)\s+(?!\{) # do not want 'do {' loops
# quotes around name are always legal
- [\'\"]?([^\;\ \'\"\t]*)[\'\"]?[\t\;\ ]
+ [\'\"]?([^\;\ \'\"\t]*)[\'\"]?[\t\ ]
# the syntax for 'use' allows version requirements
- \s*([.0-9]*)
+ \s*([.0-9]*)\s*\;
/x)
) {
my ($whitespace, $statement, $module, $version) = ($1, $2, $3,$4);
pgp00000.pgp
Description: PGP signature
