chromium 37 up for testing (and polishing)
Jia-Shiun Li
jiashiun at gmail.com
Wed Aug 27 10:15:10 UTC 2014
files/patch-manual-build of commit d5d33067 was saved in CRLF eol, aka
DOS format. That makes it fail to patch files. Re-saving the file in
Unix format solves it for me on -current.
-Jia-Shiun.
On Wed, Aug 27, 2014 at 12:39 AM, René Ladan <rene at freebsd.org> wrote:
> 2014-08-26 15:36 GMT+02:00 Carlos Jacobo Puga Medina <cpm at fbsd.es>:
>
>> On Sun, 24 Aug 2014 13:25:15 +0200
>> Carlos Jacobo Puga Medina <cpm at fbsd.es> wrote:
>>
>> > On Sun, 24 Aug 2014 13:17:00 +0200
>> > Carlos Jacobo Puga Medina <cpm at fbsd.es> wrote:
>> >
>> > > On Sun, 24 Aug 2014 11:56:56 +0200
>> > > Carlos Jacobo Puga Medina <cpm at fbsd.es> wrote:
>> > >
>> > > > Hi René,
>> > > >
>> > > > I fixed patch-third_party__khronos__GLES2__gl2.h which missed
>> include <cstddef>
>> > > >
>> > > > Cheers,
>> > >
>> > > All patches were reviewed and are attached to this mail.
>> >
>> > --- ./gpu/command_buffer/common/gles2_cmd_format.h.orig 2014-08-20
>> 21:02:37.000000000 +0200
>> > +++ ./gpu/command_buffer/common/gles2_cmd_format.h 2014-08-24
>> 00:50:27.000000000 +0200
>> > @@ -39,8 +39,8 @@
>> > typedef double GLdouble;
>> > typedef double GLclampd;
>> > typedef void GLvoid;
>> > -typedef khronos_intptr_t GLintptr;
>> > -typedef khronos_ssize_t GLsizeiptr;
>> > +typedef ptrdiff_t GLintptr;
>> > +typedef ptrdiff_t GLsizeiptr;
>> >
>> > namespace gpu {
>> > namespace gles2 {
>> >
>> > --- ./third_party/mesa/src/include/GLES2/gl2.h.orig 2014-08-20
>> 21:03:54.000000000 +0200
>> > +++ ./third_party/mesa/src/include/GLES2/gl2.h 2014-08-24
>> 01:13:41.000000000 +0200
>> > @@ -4,6 +4,7 @@
>> > /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */
>> >
>> > #include <GLES2/gl2platform.h>
>> > +#include <cstddef>
>> >
>> > #ifdef __cplusplus
>> > extern "C" {
>> > @@ -35,8 +36,8 @@
>> > typedef khronos_int32_t GLfixed;
>> >
>> > /* GL types for handling large vertex buffer objects */
>> > -typedef khronos_intptr_t GLintptr;
>> > -typedef khronos_ssize_t GLsizeiptr;
>> > +typedef ptrdiff_t GLintptr;
>> > +typedef ptrdiff_t GLsizeiptr;
>> >
>> > /* OpenGL ES core versions */
>> > #define GL_ES_VERSION_2_0 1
>> >
>> > --- ./third_party/khronos/GLES2/gl2.h.orig 2014-08-20
>> 21:03:05.000000000 +0200
>> > +++ ./third_party/khronos/GLES2/gl2.h 2014-08-24 11:39:22.000000000 +0200
>> > @@ -38,6 +38,7 @@
>> >
>> > #include <GLES2/gl2chromium.h>
>> > #include <GLES2/gl2platform.h>
>> > +#include <cstddef>
>> >
>> > /* Generated on date 20131202 */
>> >
>> > @@ -67,8 +68,8 @@
>> > typedef unsigned int GLuint;
>> > typedef char GLchar;
>> > typedef khronos_float_t GLfloat;
>> > -typedef khronos_ssize_t GLsizeiptr;
>> > -typedef khronos_intptr_t GLintptr;
>> > +typedef ptrdiff_t GLsizeiptr;
>> > +typedef ptrdiff_t GLintptr;
>> > typedef unsigned int GLbitfield;
>> > typedef int GLint;
>> > typedef unsigned char GLboolean;
>> >
>> > --- ./gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc.orig 2014-08-24
>> 12:26:40.000000000 +0200
>> > +++ ./gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc 2014-08-24
>> 12:33:01.000000000 +0200
>> > @@ -31,8 +31,8 @@
>> > functions->fBindVertexArray = glBindVertexArrayOES;
>> > functions->fBlendColor = glBlendColor;
>> > functions->fBlendFunc = glBlendFunc;
>> > - functions->fBufferData = glBufferData;
>> > - functions->fBufferSubData = glBufferSubData;
>> > + functions->fBufferData = (GrGLBufferDataProc)glBufferData;
>> > + functions->fBufferSubData = (GrGLBufferSubDataProc)glBufferSubData;
>> > functions->fClear = glClear;
>> > functions->fClearColor = glClearColor;
>> > functions->fClearStencil = glClearStencil;
>> > @@ -74,7 +74,7 @@
>> > functions->fInsertEventMarker = glInsertEventMarkerEXT;
>> > functions->fLineWidth = glLineWidth;
>> > functions->fLinkProgram = glLinkProgram;
>> > - functions->fMapBufferSubData = glMapBufferSubDataCHROMIUM;
>> > + functions->fMapBufferSubData =
>> (GrGLMapBufferSubDataProc)glMapBufferSubDataCHROMIUM;
>> > functions->fMapTexSubImage2D = glMapTexSubImage2DCHROMIUM;
>> > functions->fPixelStorei = glPixelStorei;
>> > functions->fPopGroupMarker = glPopGroupMarkerEXT;
>> >
>> > --
>> > Carlos Jacobo Puga Medina <cpm at fbsd.es>
>>
>> Finally, I installed chromium 37.0.2062.94 on 11-CURRENT/i386. I built it
>> with clang 3.4.1. I need to check further before have a respetable opinion,
>> but for now it looks pretty cool.
>>
>> The following patches fix chromium build with Clang
>>
>> I still don't get why they are needed (strictly speaking), chromium builds
> fine in my 11-i386 vm having only the dependencies of chromium (and pkg and
> panicmail) installed.
>
> But if people insist I'll just add them.
>
> Rene
>
>
>> --- ./gpu/command_buffer/common/gles2_cmd_format.h.orig 2014-08-20
>> 21:02:37.000000000 +0200
>> +++ ./gpu/command_buffer/common/gles2_cmd_format.h 2014-08-25
>> 23:47:01.000000000 +0200
>> @@ -39,8 +39,8 @@
>> typedef double GLdouble;
>> typedef double GLclampd;
>> typedef void GLvoid;
>> -typedef khronos_intptr_t GLintptr;
>> -typedef khronos_ssize_t GLsizeiptr;
>> +typedef ptrdiff_t GLintptr;
>> +typedef ptrdiff_t GLsizeiptr;
>>
>> namespace gpu {
>> namespace gles2 {
>>
>> --- ./gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc.orig 2014-08-24
>> 12:26:40.000000000 +0200
>> +++ ./gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc 2014-08-24
>> 12:33:01.000000000 +0200
>> @@ -31,8 +31,8 @@
>> functions->fBindVertexArray = glBindVertexArrayOES;
>> functions->fBlendColor = glBlendColor;
>> functions->fBlendFunc = glBlendFunc;
>> - functions->fBufferData = glBufferData;
>> - functions->fBufferSubData = glBufferSubData;
>> + functions->fBufferData = (GrGLBufferDataProc)glBufferData;
>> + functions->fBufferSubData = (GrGLBufferSubDataProc)glBufferSubData;
>> functions->fClear = glClear;
>> functions->fClearColor = glClearColor;
>> functions->fClearStencil = glClearStencil;
>> @@ -74,7 +74,7 @@
>> functions->fInsertEventMarker = glInsertEventMarkerEXT;
>> functions->fLineWidth = glLineWidth;
>> functions->fLinkProgram = glLinkProgram;
>> - functions->fMapBufferSubData = glMapBufferSubDataCHROMIUM;
>> + functions->fMapBufferSubData =
>> (GrGLMapBufferSubDataProc)glMapBufferSubDataCHROMIUM;
>> functions->fMapTexSubImage2D = glMapTexSubImage2DCHROMIUM;
>> functions->fPixelStorei = glPixelStorei;
>> functions->fPopGroupMarker = glPopGroupMarkerEXT;
>>
>> --- ./ppapi/c/ppb_opengles2.h.orig 2014-08-25 23:42:52.000000000 +0200
>> +++ ./ppapi/c/ppb_opengles2.h 2014-08-25 23:44:21.000000000 +0200
>> @@ -34,8 +34,8 @@
>> typedef long long int GLintptr;
>> typedef long long int GLsizeiptr;
>> #else
>> -typedef long int GLintptr;
>> -typedef long int GLsizeiptr;
>> +typedef __ptrdiff_t GLintptr;
>> +typedef __ptrdiff_t GLsizeiptr;
>> #endif // _WIN64
>> #endif // __gl2_h_
>>
>> --- ./third_party/khronos/GLES2/gl2.h.orig 2014-08-20
>> 21:03:05.000000000 +0200
>> +++ ./third_party/khronos/GLES2/gl2.h 2014-08-25 23:48:36.000000000 +0200
>> @@ -38,6 +38,7 @@
>>
>> #include <GLES2/gl2chromium.h>
>> #include <GLES2/gl2platform.h>
>> +#include <cstddef>
>>
>> /* Generated on date 20131202 */
>>
>> @@ -67,8 +68,8 @@
>> typedef unsigned int GLuint;
>> typedef char GLchar;
>> typedef khronos_float_t GLfloat;
>> -typedef khronos_ssize_t GLsizeiptr;
>> -typedef khronos_intptr_t GLintptr;
>> +typedef ptrdiff_t GLintptr;
>> +typedef ptrdiff_t GLsizeiptr;
>> typedef unsigned int GLbitfield;
>> typedef int GLint;
>> typedef unsigned char GLboolean;
>>
>> --- ./third_party/mesa/src/include/GLES2/gl2.h.orig 2014-08-20
>> 21:03:54.000000000 +0200
>> +++ ./third_party/mesa/src/include/GLES2/gl2.h 2014-08-25
>> 23:50:18.000000000 +0200
>> @@ -4,6 +4,7 @@
>> /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */
>>
>> #include <GLES2/gl2platform.h>
>> +#include <cstddef>
>>
>> #ifdef __cplusplus
>> extern "C" {
>> @@ -35,8 +36,8 @@
>> typedef khronos_int32_t GLfixed;
>>
>> /* GL types for handling large vertex buffer objects */
>> -typedef khronos_intptr_t GLintptr;
>> -typedef khronos_ssize_t GLsizeiptr;
>> +typedef ptrdiff_t GLintptr;
>> +typedef ptrdiff_t GLsizeiptr;
>>
>> /* OpenGL ES core versions */
>> #define GL_ES_VERSION_2_0 1
>>
>>
>>
> _______________________________________________
> freebsd-chromium at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-chromium
> To unsubscribe, send any mail to "freebsd-chromium-unsubscribe at freebsd.org"
More information about the freebsd-chromium
mailing list