Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 726656 - sys-apps/i2c-tools should install /usr/include/i2c/smbus.h
Summary: sys-apps/i2c-tools should install /usr/include/i2c/smbus.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-01 15:14 UTC by Patrick Williams
Modified: 2020-10-10 07:59 UTC (History)
0 users

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 Patrick Williams 2020-06-01 15:14:05 UTC
The current ebuild (sys-apps/i2c-tools-4.1-r1.ebuild) has a line:
	rm -rf "${D}"/usr/include || die # part of linux-headers

This seems to be a hold-over from when i2c-tools was installing header files that conflicted with header files provided by the kernel.  I manually compiled i2c-tools and did a PREFIX install to see what was being installed.  The only file in the include subdirectory was i2c/smbus.h.

This file does not conflict with anything provided by the kernel, so I would suggest removing the `rm` now.

(I ran into this because I was trying to compile another opensource project that was using libi2c from i2c-tools and couldn't find this header file)
Comment 1 gentoolinux 2020-08-16 14:42:19 UTC
I can confirm that it is safe to remove the line from the ebuild.

I also needed the include file i2c/smbus.h.

After deleting the line from the ebuild and emering i2c-tools, I was able to successfully compile another tool that depends on the include file.
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-10-10 07:59:32 UTC
Fixed in 4.2, sorry for really long delay :/