Bug 1421114

Summary: libhid: FTBFS in Fedora Rawhide
Product: [Fedora] Fedora Reporter: Jitka Plesnikova <jplesnik>
Component: libhidAssignee: Hans de Goede <hdegoede>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: hdegoede
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://apps.fedoraproject.org/koschei/package/libhid
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-12 11:33:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jitka Plesnikova 2017-02-10 11:42:09 UTC
Description of problem:
Package libhid fails to build from source in Fedora Rawhide. It is probably related to update to GCC 7.

Version-Release number of selected component (if applicable):
0.2.17-21.fc25

Additional info:
This package is tracked by Koschei. See:
http://apps.fedoraproject.org/koschei/package/libhid

Details about changes in buildroot, which caused build failure on all architectures, can be found:
https://apps.fedoraproject.org/koschei/build/2519619

The build fails with error:
hid_opening.c: In function 'hid_get_usb_handle':
hid_opening.c:127:47: error: '%s' directive output may be truncated writing up to 4096 bytes into a region of size 32 [-Werror=format-truncation=]
       snprintf(hidif->id, sizeof(hidif->id), "%s/%s[%d]",
                                               ^~

Comment 1 Hans de Goede 2017-02-12 11:33:47 UTC
Fixed in rawhide, closing.