diff options
author | flo <flo@FreeBSD.org> | 2011-08-25 07:34:00 +0800 |
---|---|---|
committer | flo <flo@FreeBSD.org> | 2011-08-25 07:34:00 +0800 |
commit | e30bbaf45bca869daa87fc5c00c22fa9af52d7fe (patch) | |
tree | e7c1e375346b2080691091949e04e30d0a25e5c6 | |
parent | af51ab11f7def7b2b8d593eb0eebcd11b1ad1964 (diff) | |
download | freebsd-ports-gnome-e30bbaf45bca869daa87fc5c00c22fa9af52d7fe.tar.gz freebsd-ports-gnome-e30bbaf45bca869daa87fc5c00c22fa9af52d7fe.tar.zst freebsd-ports-gnome-e30bbaf45bca869daa87fc5c00c22fa9af52d7fe.zip |
- commit remaining part of ports/159709 [1]
- register build conflict with spidermonkey until the firefox build failure
can be fixed [2]
PR: ports/159709 [1]
ports/159831 [2]
Submitted by: Ruslan Mahmatkhanov <cvs-src@yandex.ru> [1]
-rw-r--r-- | www/firefox-esr/Makefile | 2 | ||||
-rw-r--r-- | www/firefox-esr/files/patch-bugzilla-659932 | 35 | ||||
-rw-r--r-- | www/firefox-esr/files/patch-js_src_jsnum.cpp | 2 | ||||
-rw-r--r-- | www/firefox-esr/files/patch-nsprpub-pr-include-md_freebsd.h | 2 | ||||
-rw-r--r-- | www/firefox/Makefile | 2 | ||||
-rw-r--r-- | www/firefox/files/patch-bugzilla-659932 | 35 | ||||
-rw-r--r-- | www/firefox/files/patch-js_src_jsnum.cpp | 2 | ||||
-rw-r--r-- | www/firefox/files/patch-nsprpub-pr-include-md_freebsd.h | 2 |
8 files changed, 78 insertions, 4 deletions
diff --git a/www/firefox-esr/Makefile b/www/firefox-esr/Makefile index 8aa1ff587dad..ccd5f4b229d2 100644 --- a/www/firefox-esr/Makefile +++ b/www/firefox-esr/Makefile @@ -22,6 +22,8 @@ BUILD_DEPENDS= nspr>=4.8.8:${PORTSDIR}/devel/nspr \ LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo \ event-1.4:${PORTSDIR}/devel/libevent +CONFLICTS_BUILD= spidermonkey-* + USE_AUTOTOOLS= autoconf213 USE_GECKO= gecko MOZ_PKGCONFIG_FILES= # empty diff --git a/www/firefox-esr/files/patch-bugzilla-659932 b/www/firefox-esr/files/patch-bugzilla-659932 new file mode 100644 index 000000000000..d0698cb253c5 --- /dev/null +++ b/www/firefox-esr/files/patch-bugzilla-659932 @@ -0,0 +1,35 @@ +--- toolkit/xre/glxtest.cpp.orig 2011-08-11 17:41:31.000000000 -0400 ++++ toolkit/xre/glxtest.cpp 2011-08-23 15:09:48.000000000 -0400 +@@ -114,6 +114,9 @@ + typedef GLXFBConfig* (* PFNGLXQUERYEXTENSION) (Display *, int *, int *); + PFNGLXQUERYEXTENSION glXQueryExtension = cast<PFNGLXQUERYEXTENSION>(dlsym(libgl, "glXQueryExtension")); + ++ typedef GLXFBConfig* (* PFNGLXQUERYVERSION) (Display *, int *, int *); ++ PFNGLXQUERYVERSION glXQueryVersion = cast<PFNGLXQUERYVERSION>(dlsym(libgl, "glXQueryVersion")); ++ + typedef GLXFBConfig* (* PFNGLXCHOOSEFBCONFIG) (Display *, int, const int *, int *); + PFNGLXCHOOSEFBCONFIG glXChooseFBConfig = cast<PFNGLXCHOOSEFBCONFIG>(dlsym(libgl, "glXChooseFBConfig")); + +@@ -139,6 +142,7 @@ + PFNGLGETSTRING glGetString = cast<PFNGLGETSTRING>(dlsym(libgl, "glGetString")); + + if (!glXQueryExtension || ++ !glXQueryVersion || + !glXChooseFBConfig || + !glXGetVisualFromFBConfig || + !glXCreatePixmap || +@@ -158,6 +162,14 @@ + ///// Check that the GLX extension is present ///// + if (!glXQueryExtension(dpy, NULL, NULL)) + fatal_error("GLX extension missing"); ++ ++ ///// Check that the GLX version is >= 1.3, needed for glXCreatePixmap, bug 659932 ///// ++ int majorVersion, minorVersion; ++ if (!glXQueryVersion(dpy, &majorVersion, &minorVersion)) ++ fatal_error("Unable to query GLX version"); ++ ++ if (majorVersion < 1 || (majorVersion == 1 && minorVersion < 3)) ++ fatal_error("GLX version older than the required 1.3"); + + XSetErrorHandler(x_error_handler); + diff --git a/www/firefox-esr/files/patch-js_src_jsnum.cpp b/www/firefox-esr/files/patch-js_src_jsnum.cpp index c997f4c6b8ba..ea2515a74d94 100644 --- a/www/firefox-esr/files/patch-js_src_jsnum.cpp +++ b/www/firefox-esr/files/patch-js_src_jsnum.cpp @@ -14,7 +14,7 @@ #else -+#if defined(__FreeBSD__) && __FreeBSD_version >= 601000 ++#if defined(__FreeBSD__) +#if __BSD_VISIBLE == 0 +#error __BSD_VISIBLE is zero, so fedisableexcept is not defined +#endif diff --git a/www/firefox-esr/files/patch-nsprpub-pr-include-md_freebsd.h b/www/firefox-esr/files/patch-nsprpub-pr-include-md_freebsd.h index 1f1f04bdf81c..f6d36d5c5e64 100644 --- a/www/firefox-esr/files/patch-nsprpub-pr-include-md_freebsd.h +++ b/www/firefox-esr/files/patch-nsprpub-pr-include-md_freebsd.h @@ -15,7 +15,7 @@ #define _PR_IPV6_V6ONLY_PROBE #endif -+#if (__FreeBSD_version >= 700016) || (__FreeBSD_version < 700000 && __FreeBSD_version >= 601103) ++#if (__FreeBSD_version >= 700016) +#if defined(_PR_PTHREADS) +#define _PR_HAVE_GETPROTO_R +#define _PR_HAVE_5_ARG_GETPROTO_R diff --git a/www/firefox/Makefile b/www/firefox/Makefile index 8aa1ff587dad..ccd5f4b229d2 100644 --- a/www/firefox/Makefile +++ b/www/firefox/Makefile @@ -22,6 +22,8 @@ BUILD_DEPENDS= nspr>=4.8.8:${PORTSDIR}/devel/nspr \ LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo \ event-1.4:${PORTSDIR}/devel/libevent +CONFLICTS_BUILD= spidermonkey-* + USE_AUTOTOOLS= autoconf213 USE_GECKO= gecko MOZ_PKGCONFIG_FILES= # empty diff --git a/www/firefox/files/patch-bugzilla-659932 b/www/firefox/files/patch-bugzilla-659932 new file mode 100644 index 000000000000..d0698cb253c5 --- /dev/null +++ b/www/firefox/files/patch-bugzilla-659932 @@ -0,0 +1,35 @@ +--- toolkit/xre/glxtest.cpp.orig 2011-08-11 17:41:31.000000000 -0400 ++++ toolkit/xre/glxtest.cpp 2011-08-23 15:09:48.000000000 -0400 +@@ -114,6 +114,9 @@ + typedef GLXFBConfig* (* PFNGLXQUERYEXTENSION) (Display *, int *, int *); + PFNGLXQUERYEXTENSION glXQueryExtension = cast<PFNGLXQUERYEXTENSION>(dlsym(libgl, "glXQueryExtension")); + ++ typedef GLXFBConfig* (* PFNGLXQUERYVERSION) (Display *, int *, int *); ++ PFNGLXQUERYVERSION glXQueryVersion = cast<PFNGLXQUERYVERSION>(dlsym(libgl, "glXQueryVersion")); ++ + typedef GLXFBConfig* (* PFNGLXCHOOSEFBCONFIG) (Display *, int, const int *, int *); + PFNGLXCHOOSEFBCONFIG glXChooseFBConfig = cast<PFNGLXCHOOSEFBCONFIG>(dlsym(libgl, "glXChooseFBConfig")); + +@@ -139,6 +142,7 @@ + PFNGLGETSTRING glGetString = cast<PFNGLGETSTRING>(dlsym(libgl, "glGetString")); + + if (!glXQueryExtension || ++ !glXQueryVersion || + !glXChooseFBConfig || + !glXGetVisualFromFBConfig || + !glXCreatePixmap || +@@ -158,6 +162,14 @@ + ///// Check that the GLX extension is present ///// + if (!glXQueryExtension(dpy, NULL, NULL)) + fatal_error("GLX extension missing"); ++ ++ ///// Check that the GLX version is >= 1.3, needed for glXCreatePixmap, bug 659932 ///// ++ int majorVersion, minorVersion; ++ if (!glXQueryVersion(dpy, &majorVersion, &minorVersion)) ++ fatal_error("Unable to query GLX version"); ++ ++ if (majorVersion < 1 || (majorVersion == 1 && minorVersion < 3)) ++ fatal_error("GLX version older than the required 1.3"); + + XSetErrorHandler(x_error_handler); + diff --git a/www/firefox/files/patch-js_src_jsnum.cpp b/www/firefox/files/patch-js_src_jsnum.cpp index c997f4c6b8ba..ea2515a74d94 100644 --- a/www/firefox/files/patch-js_src_jsnum.cpp +++ b/www/firefox/files/patch-js_src_jsnum.cpp @@ -14,7 +14,7 @@ #else -+#if defined(__FreeBSD__) && __FreeBSD_version >= 601000 ++#if defined(__FreeBSD__) +#if __BSD_VISIBLE == 0 +#error __BSD_VISIBLE is zero, so fedisableexcept is not defined +#endif diff --git a/www/firefox/files/patch-nsprpub-pr-include-md_freebsd.h b/www/firefox/files/patch-nsprpub-pr-include-md_freebsd.h index 1f1f04bdf81c..f6d36d5c5e64 100644 --- a/www/firefox/files/patch-nsprpub-pr-include-md_freebsd.h +++ b/www/firefox/files/patch-nsprpub-pr-include-md_freebsd.h @@ -15,7 +15,7 @@ #define _PR_IPV6_V6ONLY_PROBE #endif -+#if (__FreeBSD_version >= 700016) || (__FreeBSD_version < 700000 && __FreeBSD_version >= 601103) ++#if (__FreeBSD_version >= 700016) +#if defined(_PR_PTHREADS) +#define _PR_HAVE_GETPROTO_R +#define _PR_HAVE_5_ARG_GETPROTO_R |