Bug 253830 - sysutils/py-salt mysql library not detected
Summary: sysutils/py-salt mysql library not detected
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-24 22:42 UTC by ari
Modified: 2021-03-10 04:43 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (christer.edwards)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ari 2021-02-24 22:42:14 UTC
Now that databases/py-MySQLdb port has been removed from the tree, salt needs to detect and use the databases/py-mysqlclient port.

Ideally, this would be an option at build time to pull in the dependency if you want to use the mysql states in salt, but that's less important than just making it work.

Note the "mysql-python: Not Installed" below...

# salt -V
Salt Version:
          Salt: 3002.2

Dependency Versions:
          cffi: 1.14.4
      cherrypy: Not Installed
      dateutil: 2.8.1
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 2.11.2
       libgit2: Not Installed
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.0.2
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     pycparser: 2.20
      pycrypto: Not Installed
  pycryptodome: 3.9.8
        pygit2: Not Installed
        Python: 3.7.9 (default, Oct 14 2020, 23:20:27)
  python-gnupg: Not Installed
        PyYAML: 5.3.1
         PyZMQ: 22.0.3
         smmap: Not Installed
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.3.1

System Versions:
          dist: freebsd 12.2
        locale: utf-8
       machine: amd64
       release: 12.2-RELEASE-p1
        system: FreeBSD
       version: FreeBSD 12.2


# pkg info py37-mysqlclient
py37-mysqlclient-2.0.2
Name           : py37-mysqlclient
Version        : 2.0.2
Installed on   : Wed Dec 16 10:45:24 2020 AEDT
Origin         : databases/py-mysqlclient
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : python databases
Licenses       : GPLv2
Maintainer     : fluffy@FreeBSD.org
WWW            : https://pypi.org/project/mysqlclient
Comment        : MySQL database connector for Python
Comment 1 ari 2021-03-10 04:43:02 UTC
databases/py-pymysql works well, although it doesn't appear in 'salt -V', at least it works in python3.

Should there be an optional dependency on this port?