[mythtv-commits] Ticket #13085: Fedora 24 -> 26: RPM build error: fatal error: stdlib.h: No such file or directory
MythTV
noreply at mythtv.org
Sun Dec 10 22:13:23 UTC 2017
#13085: Fedora 24 -> 26: RPM build error: fatal error: stdlib.h: No such file or
directory
----------------------------------+------------------------------
Reporter: udovdh@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: Packaging | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+------------------------------
Comment (by natanojl):
Replying to [comment:3 udovdh@…]:
> I received a tip from Jonatan Lindblad to remove the line as shown at
https://github.com/MythTV/packaging/blob/master/rpm/mythtv.spec#L931.
> This change makes mythtv compile but not yet the plugins that still fail
with the stdlib.h error.
>
> For the plugins an INCLUDEPATH is modified during the rpmbuild process:
> + echo 'INCLUDEPATH -= $${PREFIX}/include'
> + echo 'INCLUDEPATH -= $${SYSROOT}/$${PREFIX}/include'
> + echo 'INCLUDEPATH -= /usr/include'
> + echo 'INCLUDEPATH +=
/root/rpmbuild/BUILD/mythtv-0.28.1/temp/usr/include'
> + echo 'INCLUDEPATH += /usr/include'
>
> In the resulting lines during the compile we can see that Qmake treats
> /usr/include differently from
> /root/rpmbuild/BUILD/mythtv-0.28.1/temp/usr/include w.r.t -isystem and
-I.
> How can we influence this behaviour?
You have to modify the spec file so that /usr/include never ends up in the
INCLUDEPATH variable. Then it should work.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13085#comment:7>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list