https://bugzilla.rpmfusion.org/show_bug.cgi?id=2098
--- Comment #26 from Alec Leamas <leamas.alec(a)gmail.com> 2012-02-22 09:28:43 CET
---
Woke up, had a bad feeling about these bundled headers.
First, hci.h and l2cap.h is possibly just the tip of the iceberg. If you run
script below, you will find a list of candidates. There are plenty of false
positives, but also some files to take care about. Note that the script
requires relevant -devel packages installed, but I guess you have :)
Secondly, symlinking was a bad idea. What you should do is to just remove these
files in %prep and setup compiler flags so the system headers are used instead.
A long time since I used cmake, but I *think* something like this could work:
export CFLAGS="-I/usr/include/ffmpeg -I/usr/include/bluetooth ..."
%cmake ...
Find headers hack:
#!/bin/bash
for header in $(find Source -name \*.h); do
basename=$( basename $header );
sys_headers=$( find /usr/include -name $basename)
test -n "$sys_headers" && {
echo "$header"
for sh in $( echo $sys_headers ); do
echo " $sh"
done
}
done
--
Configure bugmail:
https://bugzilla.rpmfusion.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.