Bug 22999 - libosinfo should not requires hwdata,and should use another path for pci.ids
Summary: libosinfo should not requires hwdata,and should use another path for pci.ids
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 22990
  Show dependency treegraph
 
Reported: 2018-05-07 07:17 CEST by Adrien Guichard
Modified: 2018-05-07 21:56 CEST (History)
1 user (show)

See Also:
Source RPM: libosinfo-1.1.0-5.mga7
CVE:
Status comment:


Attachments
Avoid hwdata to be installed during build (687 bytes, patch)
2018-05-07 08:43 CEST, Adrien Guichard
Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.