Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366985 - x11-libs/qt-sql: add oracle database support
Summary: x11-libs/qt-sql: add oracle database support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-05-12 13:14 UTC by Victor
Modified: 2012-05-13 10:37 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 Victor 2011-05-12 13:14:29 UTC
dev-db/oracle-instantclient-basic already is in portage
It is all that is necessary for support

$ diff -u /usr/portage/x11-libs/qt-sql/qt-sql-4.7.3.ebuild /usr/local/portage/x11-libs/qt-sql/qt-sql-4.7.3-r1.ebuild 
--- /usr/portage/x11-libs/qt-sql/qt-sql-4.7.3.ebuild	2011-05-11 00:08:10.000000000 +0400
+++ /usr/local/portage/x11-libs/qt-sql/qt-sql-4.7.3-r1.ebuild	2011-05-12 16:56:30.342466804 +0400
@@ -8,12 +8,13 @@
 DESCRIPTION="The SQL module for the Qt toolkit"
 SLOT="4"
 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
-IUSE="firebird freetds iconv mysql odbc postgres qt3support +sqlite"
+IUSE="firebird freetds iconv mysql odbc postgres qt3support +sqlite +plugin-sql-oci"
 
 DEPEND="~x11-libs/qt-core-${PV}[aqua=,debug=,qt3support=]
 	firebird? ( dev-db/firebird )
 	freetds? ( dev-db/freetds )
 	mysql? ( virtual/mysql )
+	plugin-sql-oci? ( dev-db/oracle-instantclient-basic )
 	odbc? ( dev-db/unixODBC )
 	postgres? ( dev-db/postgresql-base )
 	sqlite? ( dev-db/sqlite:3 )"
@@ -53,6 +54,7 @@
 	# Don't support sqlite2 anymore
 	myconf="${myconf} -no-sql-sqlite2
 		$(qt_use mysql sql-mysql plugin) $(use mysql && echo "-I${EPREFIX}/usr/include/mysql -L${EPREFIX}/usr/$(get_libdir)/mysql ")
+		$(qt_use plugin-sql-oci) $(use plugin-sql-oci && echo "-I${EPREFIX}/usr/include/oracle/11.2.0.2/client -L${EPREFIX}/usr/lib/oracle/11.2.0.2/client/lib ")
 		$(qt_use postgres sql-psql plugin) $(use postgres && echo "-I${EPREFIX}/usr/include/postgresql/pgsql ")
 		$(qt_use sqlite sql-sqlite plugin) $(use sqlite && echo '-system-sqlite')
 		$(qt_use odbc sql-odbc plugin)

And I can work with oracle db in kate, kspread, etc

Reproducible: Always
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2012-05-05 15:38:39 UTC
I've just committed (masked) qt-sql-4.8.1-r1 with Oracle DB support via USE="oci8".
Please try to unmask it and let me know if it works for you.
Comment 2 Victor 2012-05-12 19:00:19 UTC
(In reply to comment #1)
> I've just committed (masked) qt-sql-4.8.1-r1 with Oracle DB support via
> USE="oci8".
> Please try to unmask it and let me know if it works for you.

it works, thanks.
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2012-05-13 10:37:30 UTC
Great! Thanks for testing!

qt-sql-4.8.1-r1 now unmasked. Closing.