Bug 1094307 - libhid: FTBFS in rawhide
Summary: libhid: FTBFS in rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libhid
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Hans de Goede
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-05 13:01 UTC by Jitka Plesnikova
Modified: 2014-05-05 14:48 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-05 14:48:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch for checking of swig version (476 bytes, patch)
2014-05-05 13:01 UTC, Jitka Plesnikova
no flags Details | Diff

Description Jitka Plesnikova 2014-05-05 13:01:12 UTC
Created attachment 892531 [details]
Patch for checking of swig version

There are two reason why it fails.

The first is check of swig version and it could be fixed in spec file. Possible solution is attached.

The second problem is 

/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include/python2.7 -I../include -I../hidparser -DHID_INTERNAL -DSWIG  -fPIC -fno-strict-aliasing -O2 -g -pipe -Wall =format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W  -c -o hid_wrap.lo hid_wrap.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.7 -I../include -I../hidparser -DHID_INTERNAL -DSWIG -fPIC -fno-strict-aliasing -O2 -g -pipe -Wall =format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -c hid_wrap.c  -fPIC -DPIC -o .libs/hid_wrap.o
gcc: error: =format-security: No such file or directory


It is related to override at swig/Makefile.am

### Remove "-Werror" from CFLAGS for the wrapper:
override CFLAGS := $(subst -Werror,,$(CFLAGS))

It could be fixed by this change.
override CFLAGS := $(echo $(CFLAGS) | sed -r 's/-Werror\s|-Werror$//g')

Comment 1 Hans de Goede 2014-05-05 14:48:10 UTC
Hi,

Thanks for the bug report and the fixes, this is fixed in rawhide now.

Regards,

Hans


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