Bug 222965 - databases/py3-mysqlclient: Fails to build ('my_config.h' file not found)
Summary: databases/py3-mysqlclient: Fails to build ('my_config.h' file not found)
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Bernard Spil
URL:
Keywords:
Depends on: 222825
Blocks:
  Show dependency treegraph
 
Reported: 2017-10-12 20:30 UTC by SBB
Modified: 2018-10-12 17:12 UTC (History)
3 users (show)

See Also:
nc: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SBB 2017-10-12 20:30:38 UTC
When building databases/py3-mysqlclient via poudriere I get this error. I am building with mariadb 10.2 instead of mysql, if that makes a difference.

make.conf settings: DEFAULT_VERSIONS+=bdb=5 perl5=5.24 pgsql=10 php=7.1 python=3.6 mysql=10.2m


=======================<phase: build          >============================
===>  Building for py36-mysqlclient-1.3.8
running build
running build_py
creating build
creating build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6
copying _mysql_exceptions.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6
creating build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb
copying MySQLdb/__init__.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb
copying MySQLdb/compat.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb
copying MySQLdb/converters.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb
copying MySQLdb/connections.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb
copying MySQLdb/cursors.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb
copying MySQLdb/release.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb
copying MySQLdb/times.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb
creating build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.freebsd-11.1-RELEASE-p1-amd64-3.6
cc -DNDEBUG -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -Dversion_info=(1,3,8,'final',1) -D__version__=1.3.8 -I/usr/local/include/mysql -I/usr/local/include/mysql/.. -I/usr/local/include/python3.6m -c _mysql.c -o build/temp.freebsd-11.1-RELEASE-p1-amd64-3.6/_mysql.o
_mysql.c:29:10: fatal error: 'my_config.h' file not found
#include "my_config.h"
         ^~~~~~~~~~~~~
1 error generated.
error: command 'cc' failed with exit status 1
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/py3-mysqlclient
====>> Cleaning up wrkdir
===>  Cleaning for py36-mysqlclient-1.3.8
build of databases/py3-mysqlclient ended at Thu Oct 12 14:06:02 CDT 2017
build time: 00:00:12
!!! build failure encountered !!!
Comment 1 Neel Chauhan freebsd_committer freebsd_triage 2017-10-13 15:21:36 UTC
I also got the same error on my part. I have a patch to update databases/py-mysqlclient to 1.3.12 and fix this error in bug 222983.
Comment 2 Richard Gallamore freebsd_committer freebsd_triage 2017-10-15 21:15:09 UTC
This was actually a problem with databases/mariadb102*. The update to version 10.2.9 removed headers that are required by other ports, one of which being my_config.h. r452143 should fix this issue.
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2017-10-16 07:34:40 UTC
Correct resolution (duplicate)

*** This bug has been marked as a duplicate of bug 222825 ***
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2017-10-16 07:35:04 UTC
Assign to resolver of duplicated issue
Comment 5 Kubilay Kocak freebsd_committer freebsd_triage 2017-10-16 07:36:39 UTC
Actually, scratch that.

Depend on the resolved (root cause) issue instead.

This issue should be closed when bug 222825 is closed/confirmed
Comment 6 SBB 2017-10-17 16:30:31 UTC
After trying to build again with the latest updates to mariadb 10.2 I'm now getting a new build error. Should I start a new report or post it here?
Comment 7 Walter Schwarzenfeld 2018-02-07 11:17:32 UTC
Is this still relevant?