Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 595970 - virtual/mysql needs USE="ssl"
Summary: virtual/mysql needs USE="ssl"
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-02 18:13 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2019-10-02 21:21 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 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2016-10-02 18:13:46 UTC
We have a package ( dev-perl/DBD-mysql ) which supports SSL for client connections, but depends on virtual/mysql because it also supports being built with embedding.

https://metacpan.org/source/MICHIELB/DBD-mysql-4.036/dbdimp.c#L1886-1935

The short of it though is that we need a toggle on it that turns on/off SSL support, and having SSL support on our package needs SSL support on whatever the underlying mechanic is.

All current backends of virtual/mysql have SSL as an option in some regards, so it makes sense to expose that via a USE flag.

---
=dev-db/mariadb-10.2*[embedded?,server,static?]
=dev-db/mariadb-10.1*[embedded?,server,static?]
=dev-db/mariadb-10.0*[embedded?,server,static?]
=dev-db/mysql-${PV}*[embedded?,server,static?]
=dev-db/percona-server-${PV}*[embedded?,server,static?]
=dev-db/mariadb-galera-10.0*[embedded?,server,static?]
=dev-db/mysql-cluster-7.3*[embedded?,server,static?]
----
mariadb: ssl ( openssl, libressl, yassl )
mysql: ssl   ( openssl, libressl, yassl )
percona-server: openssl, libressl, yassl
mariadb-galera: openssl, libressl, yassl
mysql-cluster: ssl ( openssl, libressl, yassl )

I'd imagine percona and mariadb-galera are the more annoying of the two for not having a simpler USE=ssl to rely on.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2016-10-03 13:31:05 UTC
I think there is a misunderstanding here.

For all stable virtual/mysql providers, some form of ssl is required.  The USE flags simply allow choosing the flavor.

Only the versions <5.6 have the old ssl USE which allows disabling it. If you really need the use change here on ~virtual/mysql-5.5, I can see your point.  However these only exists as unstable portability builds for those migrating or unable to upgrade.
Comment 2 Brian Evans (RETIRED) gentoo-dev 2016-10-03 16:36:51 UTC
FWIW, the deps on dev-perl/DBD-mysql are incorrect.. it should be 
RDEPEND="... virtual/libmysqlclient:= embedded? ( virtual/mysql[embedded] )"

I may need to add an ssl USE on virtual/libmysqlclient to ensure all providers have it enabled
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2016-10-03 18:46:22 UTC
(In reply to Brian Evans from comment #1)
> I think there is a misunderstanding here.
> 
> For all stable virtual/mysql providers, some form of ssl is required.  The
> USE flags simply allow choosing the flavor.

Ah, I made the mistake of relying on eix's output, which shows flag sets for older mysql versions, and in the cases I saw.

> I may need to add an ssl USE on virtual/libmysqlclient to ensure all providers have it enabled

I'm guessing this is because it *is* optional for mysql-connector-c?
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2019-10-02 21:21:07 UTC
Given the reorganization of mysql stuff this is probably obsolete now.