Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666960 - dev-python/mysql-python may need to be rebuilt when upgrading python
Summary: dev-python/mysql-python may need to be rebuilt when upgrading python
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-24 08:04 UTC by Dennis Lichtenthäler
Modified: 2018-10-19 09:12 UTC (History)
2 users (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 Dennis Lichtenthäler 2018-09-24 08:04:52 UTC
When upgrading a stable system from dev-lang/python-2.7.14-r1 to 2.7.15 python scripts that used dev-python/mysql-python crashed with a segfault. Rebuilding mysql-python fixed that.
Should this be done automatically when upgrading python?
Comment 1 Tomáš Mózes 2018-09-25 03:30:08 UTC
Probably related to mysql-connector being installed.
Comment 2 Dennis Lichtenthäler 2018-09-25 08:35:42 UTC
dev-db/mysql-connector-c was installed, I didn't rebuild it though.
Comment 3 Tomáš Mózes 2018-09-25 08:48:28 UTC
Did you only upgrade python or mysql/mariadb too?
Comment 4 Mike Gilbert gentoo-dev 2018-09-30 18:32:53 UTC
I think we need more specific information about what changed on your system to break this.
Comment 5 Fabio Rossi 2018-10-19 09:12:07 UTC
I have experienced the same problem after having installed dev-db/mysql-connector-c required by mysql-5.6.40. This was the history of packages installation:

$ qlop -l mysql-python | tail -n1
Sat Jan 13 20:10:15 2018 >>> dev-python/mysql-python-1.2.5-r1

$ qlop -l mysql-connector-c | tail -n1
Mon Sep 17 11:45:05 2018 >>> dev-db/mysql-connector-c-6.1.11-r1

$ qlop -l mysql | tail -n1
Mon Sep 17 11:47:58 2018 >>> dev-db/mysql-5.6.40-r2

$ qlop -l python| tail | tail -n1
Mon Sep 17 11:49:18 2018 >>> dev-lang/python-2.7.15

I got segfaults in python when using mysql-python module, the backtrace was pointing to a problem in mysql-connector-c. After manually emerging mysql-python the problem disappeared.