Discussion:
Bug#669308: webkit: FTBFS[kfreebsd]: #error Unsupported Platform
Steven Chamberlain
2012-04-21 02:41:40 UTC
Permalink
tags 669308 + patch
thanks
../Source/ThirdParty/ANGLE/src/compiler/osinclude.h:22:2: error: #error Unsupported platform.
Looks like that header just needs to test for __FreeBSD_kernel__ as well
as __FreeBSD__, as in the attached diff. This seems to allow compiling
that particular file on kfreebsd-i386, but I've not been able to test
building the entire package yet.

Regards,
--
Steven Chamberlain
***@pyro.eu.org
Robert Millan
2012-04-21 08:51:14 UTC
Permalink
Post by Steven Chamberlain
tags 669308 + patch
thanks
../Source/ThirdParty/ANGLE/src/compiler/osinclude.h:22:2: error: #error Unsupported platform.
Looks like that header just needs to test for __FreeBSD_kernel__ as well
as __FreeBSD__, as in the attached diff.  This seems to allow compiling
that particular file on kfreebsd-i386, but I've not been able to test
building the entire package yet.
That particular test is checking for userland, so it might be better
to use __GLIBC__ instead (i.e. fix may work on more systems).
--
Robert Millan
Steven Chamberlain
2012-04-25 01:03:19 UTC
Permalink
Hi,

Attached is an updated patch. I've done as Robert Millan suggested, and
hopefully this may even allow building now on Hurd too (though I haven't
tested that).

I've tested that this allows webkit to compile now on kfreebsd-i386
(though my VM doesn't have enough memory to finish linking!)

Regards,
--
Steven Chamberlain
***@pyro.eu.org
Loading...