Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506876 - sys-apps/hwinfo with sys-libs/uclibc - pci.c:10:21: fatal error: sys/pci.h: No such file or directory
Summary: sys-apps/hwinfo with sys-libs/uclibc - pci.c:10:21: fatal error: sys/pci.h: N...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-04-06 01:36 UTC by René Rhéaume
Modified: 2014-04-27 19:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
hwinfo-20.0.ebuild.patch (hwinfo-20.0.ebuild.patch,372 bytes, patch)
2014-04-06 01:38 UTC, René Rhéaume
Details | Diff
hwinfo-20.0.ebuild (hwinfo-20.0.ebuild,1.59 KB, patch)
2014-04-06 01:38 UTC, René Rhéaume
Details | Diff
hwinfo-20.0-uclibc.patch (hwinfo-20.0-uclibc.patch,739 bytes, patch)
2014-04-06 17:12 UTC, René Rhéaume
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description René Rhéaume 2014-04-06 01:36:57 UTC
hwinfo does not build on uclibc, only because the path to pci.h between glibc and uclibc is not the same. Attached is a quick patch applied conditionally. Someone with some sed skills may change that directly in the ebuild.

Reproducible: Always

Steps to Reproduce:
1. Intall Lilblue
2. emerge hwinfo
Actual Results:  
emake failed :(

Expected Results:  
hwinfo installed on system
Comment 1 René Rhéaume 2014-04-06 01:38:03 UTC
Created attachment 374346 [details, diff]
hwinfo-20.0.ebuild.patch
Comment 2 René Rhéaume 2014-04-06 01:38:49 UTC
Created attachment 374348 [details, diff]
hwinfo-20.0.ebuild
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-06 13:35:57 UTC
Comment on attachment 374348 [details, diff]
hwinfo-20.0.ebuild

Where is the patch?
Comment 4 René Rhéaume 2014-04-06 17:12:48 UTC
Created attachment 374400 [details, diff]
hwinfo-20.0-uclibc.patch

Oops, selected the wrong file last time I uploaded
Comment 5 SpanKY gentoo-dev 2014-04-27 19:30:49 UTC
glibc's sys/pci.h just includes linux/pci.h.  so we can change the include for all targets.

Commit message: Include linux/pci.h directly
http://sources.gentoo.org/sys-apps/hwinfo/hwinfo-20.0.ebuild?r1=1.5&r2=1.6