Author: sergiomb
Update of /cvs/free/rpms/VirtualBox-OSE/F-16
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv4770
Modified Files:
.cvsignore VirtualBox-OSE.spec sources
Added Files:
VirtualBox-OSE-4.1.10-mesa.patch
VirtualBox-OSE-4.1.12-gsoap.patch
Removed Files:
VirtualBox-OSE-4.1.10-gsoap.patch
Log Message:
* Thu Apr 26 2012 Sérgio Basto <sergio(a)serjux.com> - 4.1.14-1
- new release
- mesa patch only for F17 or higher
VirtualBox-OSE-4.1.10-mesa.patch:
Config.kmk | 10 -
VirtualBox-4.1.10/src/VBox/Additions/common/crOpenGL/fakedri_drv.c | 59 +++++++++-
VirtualBox-4.1.10/src/VBox/Additions/common/crOpenGL/fakedri_drv.h | 21 ++-
3 files changed, 69 insertions(+), 21 deletions(-)
--- NEW FILE VirtualBox-OSE-4.1.10-mesa.patch ---
--- VirtualBox-4.1.10.orig/Config.kmk 2012-03-13 13:14:01.000000000 +0000
+++ VirtualBox-4.1.10/Config.kmk 2012-03-27 23:55:28.070630137 +0100
@@ -2003,15 +2003,7 @@ ifdef VBOX_WITH_CROGL
endif
if1of ($(KBUILD_TARGET), freebsd linux solaris)
- # VBOX_PATH_MESA_SOURCE = $(PATH_ROOT)/src/libs/mesa-7.2
- VBOX_PATH_MESA_SOURCE = $(VBOX_PATH_X11_ROOT)/mesa-7.2
- VBOX_MESA_INCS = \
- $(VBOX_PATH_MESA_SOURCE) \
- $(VBOX_PATH_MESA_SOURCE)/include \
- $(VBOX_PATH_MESA_SOURCE)/src/mesa/ \
- $(VBOX_PATH_MESA_SOURCE)/src/mesa/glapi \
- $(VBOX_PATH_MESA_SOURCE)/src/mesa/main \
- $(VBOX_PATH_MESA_SOURCE)/src/mesa/drivers/dri/common
+ VBOX_MESA_INCS = /usr/include/GL /usr/include/xorg /usr/include/pixman-1
endif
VBOX_DARWIN_OPENGL_INST = obj/VBoxOGL/GL/
diff -x x11include -Nurp
VirtualBox-4.1.10.orig/src/VBox/Additions/common/crOpenGL/fakedri_drv.c
VirtualBox-4.1.10/src/VBox/Additions/common/crOpenGL/fakedri_drv.c
--- VirtualBox-4.1.10.orig/src/VBox/Additions/common/crOpenGL/fakedri_drv.c 2012-03-13
13:14:21.000000000 +0000
+++ VirtualBox-4.1.10/src/VBox/Additions/common/crOpenGL/fakedri_drv.c 2012-03-30
04:12:46.110584648 +0100
@@ -17,7 +17,15 @@
*/
#define _GNU_SOURCE 1
+#define HAVE_STRNDUP 1
+#include <dlfcn.h>
+#include <elf.h>
+#include <unistd.h>
+#include <xf86.h>
+#include <xf86drm.h>
+#include <GL/gl.h>
+#include <GL/glext.h>
#include "cr_error.h"
#include "cr_gl.h"
#include "cr_mem.h"
@@ -26,10 +34,6 @@
#include "dri_glx.h"
#include "iprt/mem.h"
#include "iprt/err.h"
-#include <dlfcn.h>
-#include <elf.h>
-#include <unistd.h>
-#include "xf86.h"
#define VBOX_NO_MESA_PATCH_REPORTS
@@ -104,8 +108,53 @@ static const __DRIswrastExtension *gpSwD
extern const __DRIextension * __driDriverExtensions[];
+//copy from /usr/share/xorg-x11-server-source/glx/dispatch.h
+#define SET_by_offset(disp, offset, fn) \
+ do { \
+ if ( (offset) < 0 ) { \
+ /* fprintf( stderr, "[%s:%u] SET_by_offset(%p, %d, %s)!\n", */ \
+ /* __func__, __LINE__, disp, offset, # fn); */ \
+ /* abort(); */ \
+ } \
+ else { \
+ ( (_glapi_proc *) (disp) )[offset] = (_glapi_proc) fn; \
+ } \
+ } while(0)
+
+// copy from glx/glapi.c
+
+/**
+ * Search the table of static entrypoint functions for the named function
+ * and return the corresponding glprocs_table_t entry.
+ */
+static const glprocs_table_t * find_entry( const char * n )
+{
+ GLuint i;
+ for (i = 0; static_functions[i].Name_offset >= 0; i++) {
+ const char *testName = gl_string_table + static_functions[i].Name_offset;
+ if (strcmp(testName, n) == 0) {
+ return &static_functions[i];
+ }
+ }
+ return NULL;
+}
+
+/**
+ * Return dispatch table offset of the named static (built-in) function.
+ * Return -1 if function not found.
+ */
+static GLint
+get_static_proc_offset(const char *funcName)
+{
+ const glprocs_table_t * const f = find_entry( funcName );
+ if (f) {
+ return f->Offset;
+ }
+ return -1;
+}
+
#define VBOX_SET_MESA_FUNC(table, name, func) \
- if (_glapi_get_proc_offset(name)>=0) SET_by_offset(table,
_glapi_get_proc_offset(name), func); \
+ if (get_static_proc_offset(name)>=0) SET_by_offset(table,
get_static_proc_offset(name), func); \
else crWarning("%s not found in mesa table", name)
#define GLAPI_ENTRY(Func) VBOX_SET_MESA_FUNC(vbox_glapi_table, "gl"#Func,
cr_gl##Func);
diff -x x11include -Nurp
VirtualBox-4.1.10.orig/src/VBox/Additions/common/crOpenGL/fakedri_drv.h
VirtualBox-4.1.10/src/VBox/Additions/common/crOpenGL/fakedri_drv.h
--- VirtualBox-4.1.10.orig/src/VBox/Additions/common/crOpenGL/fakedri_drv.h 2012-03-13
13:14:21.000000000 +0000
+++ VirtualBox-4.1.10/src/VBox/Additions/common/crOpenGL/fakedri_drv.h 2012-03-27
23:14:15.058370962 +0100
@@ -20,13 +20,20 @@
#ifndef ___CROPENGL_FAKEDRIDRV_H
#define ___CROPENGL_FAKEDRIDRV_H
-#include "src/mesa/main/mtypes.h"
-#include "src/mesa/main/dd.h"
-#include "src/mesa/glapi/dispatch.h"
-#include "src/mesa/glapi/glapi.h"
-#include "src/mesa/glapi/glapitable.h"
-#include "src/mesa/glapi/glapioffsets.h"
-#include "src/mesa/drivers/dri/common/dri_util.h"
+//#include "/usr/share/xorg-x11-server-source/glx/glapi.h"
+typedef void (*_glapi_proc)(void); /* generic function pointer */
+
+extern GLuint
+_glapi_get_dispatch_table_size(void);
+
+extern struct _glapi_table *
+_glapi_get_dispatch(void);
+
+extern void
+_glapi_set_dispatch(struct _glapi_table *dispatch);
+
+//#include "/usr/share/xorg-x11-server-source/glx/glapioffsets.h"
+#include "/usr/share/xorg-x11-server-source/glx/glprocs.h"
#include "GL/internal/dri_interface.h"
#include "glx_proto.h"
VirtualBox-OSE-4.1.12-gsoap.patch:
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE VirtualBox-OSE-4.1.12-gsoap.patch ---
--- trunk/configure.gsoap 2012-04-13 03:27:30.000000000 +0100
+++ trunk/configure 2012-04-13 03:33:31.935060639 +0100
@@ -1953,7 +1953,7 @@
else
cnf_append "VBOX_GSOAP_CXX_SOURCES" ""
fi
- cnf_append "VBOX_GSOAP_CXX_LIBS" "`strip_l
"$GSOAP_CXX_LIBS"`"
+ cnf_append "VBOX_GSOAP_CXX_LIBS" "`strip_l
"$GSOAP_CXX_LIBS"` ssl crypto"
gsoap_version=`pkg-config gsoapssl++ --modversion`
log_success "found version $gsoap_version"
return
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/VirtualBox-OSE/F-16/.cvsignore,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- .cvsignore 3 Apr 2012 07:44:54 -0000 1.33
+++ .cvsignore 26 Apr 2012 22:27:18 -0000 1.34
@@ -1 +1 @@
-VirtualBox-4.1.12.tar.bz2
+VirtualBox-4.1.14.tar.bz2
Index: VirtualBox-OSE.spec
===================================================================
RCS file: /cvs/free/rpms/VirtualBox-OSE/F-16/VirtualBox-OSE.spec,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- VirtualBox-OSE.spec 3 Apr 2012 07:44:54 -0000 1.84
+++ VirtualBox-OSE.spec 26 Apr 2012 22:27:19 -0000 1.85
@@ -14,7 +14,7 @@
%global prereltag %{?prerel:_%(awk 'BEGIN {print
toupper("%{prerel}")}')}
Name: VirtualBox-OSE
-Version: 4.1.12
+Version: 4.1.14
Release: 1%{?prerel:.%{prerel}}%{?dist}
Summary: A general-purpose full virtualizer for PC hardware
@@ -42,12 +42,16 @@
Patch17: VirtualBox-OSE-4.0.0-beramono.patch
Patch18: VirtualBox-OSE-4.0.2-aiobug.patch
Patch20: VirtualBox-OSE-4.1.2-testmangle.patch
+Patch22: VirtualBox-OSE-4.1.12-gsoap.patch
+Patch23: VirtualBox-OSE-4.1.10-mesa.patch
+%if 0%{?fedora} < 17
BuildRequires: kBuild >= 0.1.98
-BuildRequires: SDL-devel xalan-c-devel
+%endif
%if 0%{?fedora} < 16
BuildRequires: hal-devel
%endif
+BuildRequires: SDL-devel xalan-c-devel
BuildRequires: openssl-devel
BuildRequires: libcurl-devel
BuildRequires: dev86 iasl libxslt-devel xerces-c-devel libIDL-devel
@@ -169,9 +173,17 @@
%patch17 -p1 -b .beramono
%patch18 -p1 -b .aiobug
%patch20 -p1 -b .testmangle
+%if 0%{?fedora} < 16
+%patch22 -p1 -b .gsoap
+%endif
+%if 0%{?fedora} > 16
+%patch23 -p1 -b .mesa
+%endif
# Remove prebuilt binary tools
+%if 0%{?fedora} < 17
rm -rf kBuild
+%endif
rm -rf tools
# CRLF->LF
@@ -497,6 +509,18 @@
%changelog
+* Thu Apr 26 2012 Sérgio Basto <sergio(a)serjux.com> - 4.1.14-1
+- new release
+- mesa patch only for F17 or higher
+
+* Fri Apr 13 2012 Sérgio Basto <sergio(a)serjux.com> - 4.1.12-3
+- F17 mesa patch, fix compile fakedri and unbundle part of mesa sources, unbunble mesa
source must be tested.
+
+* Fri Apr 13 2012 Sérgio Basto <sergio(a)serjux.com> - 4.1.12-2
+- F15 patch gsoap 2.7 which pkg-config gsoapssl++ --libs don't have -lssl -lcrypto
+- F17 kBuild workarround, but still not build in F17,
+
https://bugs.freedesktop.org/show_bug.cgi?id=47971 .
+
* Tue Apr 3 2012 Sérgio Basto <sergio(a)serjux.com> - 4.1.12-1
- New release.
- drop buildroot
Index: sources
===================================================================
RCS file: /cvs/free/rpms/VirtualBox-OSE/F-16/sources,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- sources 3 Apr 2012 07:44:54 -0000 1.33
+++ sources 26 Apr 2012 22:27:19 -0000 1.34
@@ -1 +1 @@
-b6613e2b37562dec0fdede9af044edba VirtualBox-4.1.12.tar.bz2
+f8baa04e6d589bc6b1fb4e7079fbe414 VirtualBox-4.1.14.tar.bz2
--- VirtualBox-OSE-4.1.10-gsoap.patch DELETED ---