Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#33640 - [i2c-tools] should provide i2c-dev.h file

Attached to Project: Community Packages
Opened by eS.eF. (Dimorph) - Wednesday, 30 January 2013, 14:50 GMT
Last edited by Jelle van der Waa (jelly) - Friday, 05 April 2013, 18:54 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The i2c-tools should provide the i2c-dev.h file in /usr/include for development. If you write a userspace driver you need the i2c_smbus_*-functions they are inline in the i2c-dev.h

diff --git a/PKGBUILD b/PKGBUILD
index 679dad5..67443e2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,7 +28,8 @@ package() {
install -Dm755 eepromer/eeprog eepromer/eeprom eepromer/eepromer "${pkgdir}/usr/sbin"
cd py-smbus
python2 setup.py install --prefix "${pkgdir}/usr"
- rm -rf "${pkgdir}/usr/include"
+ mv "${pkgdir}/usr/include/linux/i2c-dev.h" "${pkgdir}/usr/include"
+ rm -rf "${pkgdir}/usr/include/linux"
}

# vim:set ts=2 sw=2 et:
This task depends upon

Closed by  Jelle van der Waa (jelly)
Friday, 05 April 2013, 18:54 GMT
Reason for closing:  Not a bug
Comment by Jelle van der Waa (jelly) - Sunday, 10 February 2013, 12:38 GMT
No, i2c-dev.h is already provided by linux-headers. So your method simply won't work.

Loading...