Hi all Smbus will not compile for python 3 since the upstream code does not support python 3. There is a patch around for it on the net, but that one does not apply cleanly to the current version and was posted inverted (removals/adds): http://comments.gmane.org/gmane.linux.drivers.i2c/11290 I tried to make sure that the python 2 module version stays unchanged, but has not been tested at all. I needed the smbus module mainly to test my raspberry pi and didn't want to downgrade everything to pyhton 2. So the only arch tested (only basics) is arm (v6). But since only the interface for the python module registration really changed, I guess it should be ok. I hope this ebuild/patch is usefull to some people and hopefully upstream will at some time start to suport python3 itself. As I said, the patch is poorly tested, so use it at your own risk. Best regards Marcel Greter Reproducible: Always
Created attachment 364026 [details] i2c-tools-3.1.0-r1.tar.gz The archive will extract it's content into "i2c-tools". To use this ebuild do the fallowing (I will not go into creating a local overlay, I simply assume it's in /usr/local/portage): mkdir -p /usr/local/portage/sys-apps {download the attachement from here, i.e. with wget} tar xzf i2c-tools-3.1.0-r1.tgz -C /usr/local/portage/sys-apps echo "sys-apps/i2c-tools-3.1.0-r1" >> /etc/portage/package.keywords/sys-apps emerge -uva sys-apps/i2c-tools
Comment on attachment 364026 [details] i2c-tools-3.1.0-r1.tar.gz Please attach straightforward plain text patches next time.
should be all set now in the tree; thanks for the report! Commit message: Port to python-3.x http://sources.gentoo.org/sys-apps/i2c-tools/files/i2c-tools-3.1.1-python-3.patch?rev=1.1 http://sources.gentoo.org/sys-apps/i2c-tools/i2c-tools-3.1.1.ebuild?rev=1.1