Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16301 - mysql_setpermission uses perl-DBI. The ebuild doesn't define a dependency.
Summary: mysql_setpermission uses perl-DBI. The ebuild doesn't define a dependency.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Robert Coie (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-24 14:32 UTC by Udo Beckmann
Modified: 2003-03-04 19:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Udo Beckmann 2003-02-24 14:32:28 UTC
/usr/bin/mysql_setpermission is part of the mysql ebuild. It uses perl's DBI module,  
but no dependency for dev-perl/DBI is defined. I found this bug in 
mysql-3.23.54a.ebuild but haven' tried earlier versions of mysql.  

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Robert Coie (RETIRED) gentoo-dev 2003-02-27 21:15:02 UTC
Maybe it would be a good idea to only include this tool if USE="perl" is defined?
Comment 2 Udo Beckmann 2003-02-28 10:52:16 UTC
Thats not a _general_ solution. "perl" is one of my USE flags, but the DBI module isn't emerged on 
my system. Checking that flag would only help in situations where a user doesn't want perl at all. 
Comment 3 Robert Coie (RETIRED) gentoo-dev 2003-02-28 12:13:54 UTC
I think there are only two cases: either installing MySQL causes DBI to be
installed, or mysql_setpermission is not included in the installed files.
I was suggesting that the dependency on DBI be made specific to cases where
USE="perl" is defined, reasoning that people with USE="-perl" would be rather
upset to discover that they could not install MySQL without bringing Perl in,
and would instead be happier with mysql_setpermission not existing.
Comment 4 Udo Beckmann 2003-02-28 13:33:30 UTC
fully agreed 
Comment 5 Joshua Brindle (RETIRED) gentoo-dev 2003-02-28 17:32:51 UTC
well
i was going to fix this by making DBI and DBD-Mysql a PDEPEND since mysql has to be installed to compile dbd-mysql, go ahead and do this if you want rac, this is the correct solution i think
Comment 6 Robert Coie (RETIRED) gentoo-dev 2003-02-28 18:29:53 UTC
I was thinking it would be nice to have that PDEPEND be conditional
on whether USE="perl" was defined - that way people that don't want perl don't
get perl modules they would not want.
Comment 7 Robert Coie (RETIRED) gentoo-dev 2003-03-04 19:18:22 UTC
Fixed in 3.23.54a-r1.