Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379937 - dev-db/mysql: virtual/yacc DEPEND added by bug #376773 leaks into RDEPEND
Summary: dev-db/mysql: virtual/yacc DEPEND added by bug #376773 leaks into RDEPEND
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-20 09:41 UTC by Bruno
Modified: 2011-08-21 16:16 UTC (History)
0 users

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 Bruno 2011-08-20 09:41:35 UTC
The fix for missing bison/flex build-time dependency reported by bug @376773 leaks into RDEPEND as virtual/yacc was added to DEPEND a few lines too early.

As visible in below quote from mysql.eclass RDEPEND is set to DEPEND and a few more at end of quote but virtual/yacc added to DEPEND already at beginning of quote.
The addition of virtual/yacc should happen after assigning DEPEND to RDEPEND.
===== snipplet from mysql.eclass (starting line 233) =====
# Be warned, *DEPEND are version-dependant
# These are used for both runtime and compiletime
DEPEND="
        ssl? ( >=dev-libs/openssl-0.9.6d )
        userland_GNU? ( sys-process/procps )
        >=sys-apps/sed-4
        >=sys-apps/texinfo-4.7-r1
        >=sys-libs/readline-4.1
        >=sys-libs/zlib-1.2.3
        virtual/yacc
"

[[ ${PN} == mariadb ]] \
&& DEPEND="${DEPEND} libevent? ( >=dev-libs/libevent-1.4 )"

# Having different flavours at the same time is not a good idea
for i in "mysql" "mysql-community" "mysql-cluster" "mariadb" ; do
        [[ ${i} == ${PN} ]] ||
        DEPEND="${DEPEND} !dev-db/${i}"
done

RDEPEND="${DEPEND}
        !minimal? ( dev-db/mysql-init-scripts )
        selinux? ( sec-policy/selinux-mysql )
"
===== end of snipplet =====


Reproducible: Always
Comment 1 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-08-21 16:16:30 UTC
Fixed. Thanks for the bug report.