Summary: | app-office/akonadi-server-1.6.2: ebuild doesn't detect available drivers | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PATCH |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Toralf Förster
2011-12-18 16:17:21 UTC
The ebuild appears to use a ${driver} variable that isn't actually set anywhere. ${DRIVER} is set here and there, but not used except in src_install() and in pkg_postinst(). It also uses if;elif;fi where it should be using if;fi;if;fi, to fill the AVAILABLE array properly. Index: akonadi-server-1.6.2.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-office/akonadi-server/akonadi-server-1.6.2.ebuild,v retrieving revision 1.4 diff -u -B -r1.4 akonadi-server-1.6.2.ebuild --- akonadi-server-1.6.2.ebuild 7 Dec 2011 22:06:37 -0000 1.4 +++ akonadi-server-1.6.2.ebuild 19 Dec 2011 12:32:28 -0000 @@ -39,13 +39,15 @@ # Set default storage backend in order: SQLite, MySQL, PostgreSQL if use sqlite; then DRIVER="QSQLITE3" - AVAILABLE+=" ${driver}" - elif use mysql; then + AVAILABLE+=" ${DRIVER}" + fi + if use mysql; then DRIVER="QMYSQL" - AVAILABLE+=" ${driver}" - elif use postgres; then + AVAILABLE+=" ${DRIVER}" + fi + if use postgres; then DRIVER="QPSQL" - AVAILABLE+=" ${driver}" + AVAILABLE+=" ${DRIVER}" fi # Notify about driver name change Thanks to all. Fixed in =app-office/akonadi-server-1.6.2-r1.ebuild and =app-office/akonadi-server-1.5.2-r1.ebuild. @Jer I had to switch the if fi order to keep the default storage driver order. |