Bug 22999

Summary: libosinfo should not requires hwdata,and should use another path for pci.ids
Product: Mageia Reporter: Adrien Guichard <guichard.adrien>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: guichard.adrien
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: libosinfo-1.1.0-5.mga7 CVE:
Status comment:
Bug Depends on:    
Bug Blocks: 22990    
Attachments: Avoid hwdata to be installed during build

Description Adrien Guichard 2018-05-07 07:17:40 CEST
pci.ids, usb.ids, pnp.ids are provided by ldetect-lst (under the path /usr/share/pci.ids).

Tests fails during rpm build, because pci.ids is looked after /usr/share/hwdata/pci.ids path:
FAIL: test-loader
=================

Running suite(s): Loader
0%: Checks: 1, Failures: 1, Errors: 0
test-loader.c:36:F:Core:test_basic:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
FAIL test-loader (exit status: 1)

FAIL: test-isodetect
====================

Running suite(s): List
0%: Checks: 14, Failures: 14, Errors: 0
test-isodetect.c:347:F:Core:test_fedora:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
test-isodetect.c:347:F:Core:test_rhel:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
test-isodetect.c:347:F:Core:test_ubuntu:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
test-isodetect.c:347:F:Core:test_debian:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
test-isodetect.c:347:F:Core:test_windows:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
test-isodetect.c:347:F:Core:test_freebsd:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
test-isodetect.c:347:F:Core:test_openbsd:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
test-isodetect.c:347:F:Core:test_opensuse:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
test-isodetect.c:347:F:Core:test_centos:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
test-isodetect.c:347:F:Core:test_gnome:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
test-isodetect.c:347:F:Core:test_altlinux:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
test-isodetect.c:347:F:Core:test_mageia:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
test-isodetect.c:347:F:Core:test_sles:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
test-isodetect.c:347:F:Core:test_sled:0: Error opening file /usr/share/hwdata/pci.ids: No such file or directory
FAIL test-isodetect (exit status: 1)

I will try to provide a patch fixing this issue.
Adrien Guichard 2018-05-07 07:19:35 CEST

Blocks: (none) => 22990

Comment 1 Adrien Guichard 2018-05-07 08:43:21 CEST
Created attachment 10133 [details]
Avoid hwdata to be installed during build

This patch ensure hwdata is not installed on build machine.

CC: (none) => guichard.adrien

Comment 2 Adrien Guichard 2018-05-07 21:56:16 CEST
fix applied by Zézihno

Resolution: (none) => FIXED
Status: NEW => RESOLVED