Giter Site home page Giter Site logo

vcrhonek / hwdata Goto Github PK

View Code? Open in Web Editor NEW
76.0 5.0 16.0 42.92 MB

hwdata contains various hardware identification and configuration data, such as the pci.ids and usb.ids databases.

License: Other

Makefile 41.46% Python 33.33% Shell 24.40% Dockerfile 0.81%

hwdata's Introduction

hwdata's People

Contributors

airlied avatar cgwalters avatar coreydaley avatar dargad avatar floppym avatar illiliti avatar markusvolk avatar mdomsch avatar nwnk avatar pinotree avatar vcrhonek avatar xsuchy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hwdata's Issues

0.347: test suite is failing

Looks like something has been changed in 0.347 test suite and it started failing.

[tkloczko@barrel hwdata-0.347]$ make check
fatal: not a git repository (or any parent up to mount point /home/tkloczko)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
OK: /sbin/lspci -i pci.ids
OK: ./check-pci-ids.py
Listing usb devices:
sudo: podman: command not found
cat: /tmp/tmp.9gRim197YD/err.out: No such file or directory
Expected: pci.ids: UTF-8 Unicode text
 Got instead: pci.ids: ASCII text

Consider moving off of GitHub

It would be great to move to a more open platform, like gitlab.freedesktop.org where other related projects are hosted.

Add a switch to disable installation of the kernel blacklist

I am not sure why a blacklist is included here. At any rate, some distributions (e.g. Arch Linux) find it undesirable to install such a blacklist in their hwdata package. Would it be reasonable to add a configure option to stop installing the blacklist file?

Test suite should not attempt to access host system PCI bus

When working on some sandboxing / permissions management in the Exherbo Linux package build system, I found that the hwdata test suite is running the command lspci -i pci.ids. This command attempts to read the list of devices from the host system PCI bus - and the sandboxing blocks that, resulting in lspci returning an error (and the test failing).

lspci supports a PCI bus access method named "dump" which reads from a text file instead of reading from the real hardware. The dump can be generated using lspci, like so:

$ lspci -x -n
00:00.0 0600: 1022:1630
00: 22 10 30 16 00 00 00 00 00 00 00 06 00 00 80 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 e1 87
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

(...)

And should be committed to the git repository as test data. That dump file can then be used to test that lspci is able to use the pci.ids file, with a command like the following:

$ lspci -A dump -O dump.name=lspci.dump -i pci.ids
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
(...)

Ship a pkg-config file

This would allow users of the library to easily check the dep and its version, and get the proper pkgdatadir.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.