[kinfocenter] [Bug 382979] KInfoCenter will exit when switching to PCI page on devices without PCI
https://bugs.kde.org/show_bug.cgi?id=382979 --- Comment #4 from Icenowy Zheng <icen...@aosc.io> --- (In reply to Christoph Feck from comment #3) > I have not investigated properly, but it is possible the exit() is caused by > pcilib, not KInfoCenter. Yes, but the behavior can be overrided by the program that calls pcilib. See https://github.com/pciutils/pciutils/blob/master/lib/init.c, the function that calls exit() is pci_generic_error(), which is just a fallback implementation of the error function pointer in struct pci_access populated in pci_init_v35() (which is exported as pci_init() in the shared library). KInfoCenter should add overrided functions for at least the error function pointer, and if possible, also override the warning function pointer. -- You are receiving this mail because: You are watching all bug changes.
[kinfocenter] [Bug 382979] KInfoCenter will exit when switching to PCI page on devices without PCI
https://bugs.kde.org/show_bug.cgi?id=382979 --- Comment #2 from Icenowy Zheng <icen...@aosc.io> --- (In reply to Christoph Feck from comment #1) > If the pcilib only works on systems that actually have a PCI bus, then you > should compile KInfoCenter without pcilib/pciutils dependency. However, some ARM devices also come with PCI(e), and for these devices PCI info is needed. I think KInfoCenter should give a empty page on devices without PCI, like other not-so-usual buses (e.g. IEEE1394); directly exit is not a good behavior. -- You are receiving this mail because: You are watching all bug changes.
[kinfocenter] [Bug 382979] New: KInfoCenter will exit when switching to PCI page on devices without PCI
https://bugs.kde.org/show_bug.cgi?id=382979 Bug ID: 382979 Summary: KInfoCenter will exit when switching to PCI page on devices without PCI Product: kinfocenter Version: unspecified Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: PCI Assignee: hubn...@gmail.com Reporter: icen...@aosc.io Target Milestone: --- I'm testing KInfoCenter on an ARM64 device (Orange Pi Prime, Allwinner H5) which doesn't have any PCI bus, and the Linux kernel also doesn't have PCI support. When switching to the PCI page of KInfoCenter, the program exits with status code 1, and printed the following string on the terminal: ``` pcilib: Cannot open /proc/bus/pci pcilib: Cannot find any working access method. ``` -- You are receiving this mail because: You are watching all bug changes.