-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the Pale Moon browser. It works (amd64 only).
- Loading branch information
Showing
17 changed files
with
398 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
SHA256 (palemoon-27.5.1.tar.gz) = XQqXL7a0kiUmK9DFUFy4g37dPTJqsnARP0AjUdoTIGo= | ||
SIZE (palemoon-27.5.1.tar.gz) = 179609050 | ||
SHA256 (palemoon-27.7.2.tar.gz) = DeHR0xhdFHDuNHdKnwWLftkwdXszeIihMjzriLMYYMw= | ||
SIZE (palemoon-27.7.2.tar.gz) = 179831808 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
cd ${TRUEPREFIX}/lib/palemoon-${V} && ./palemoon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
$OpenBSD$ | ||
|
||
Something better? | ||
Need to be explicit with compilers. | ||
|
||
Index: client.mk | ||
--- client.mk.orig | ||
+++ client.mk | ||
@@ -319,6 +319,8 @@ CONFIG_STATUS_DEPS := \ | ||
@@ -320,6 +320,8 @@ CONFIG_STATUS_DEPS := \ | ||
|
||
CONFIGURE_ENV_ARGS += \ | ||
MAKE='$(MAKE)' \ | ||
+ CC='${WRKDIR}/bin/cc' \ | ||
+ CXX='${WRKDIR}/bin/c++' \ | ||
+ CC='${CC}' \ | ||
+ CXX='${CXX}' \ | ||
$(NULL) | ||
|
||
# configure uses the program name to determine @srcdir@. Calling it without |
74 changes: 74 additions & 0 deletions
74
www/palemoon/patches/patch-config_gcc-stl-wrapper_template_h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
$OpenBSD$ | ||
|
||
https://hg.mozilla.org/mozilla-central/rev/68da139d0866 | ||
|
||
Index: config/gcc-stl-wrapper.template.h | ||
--- config/gcc-stl-wrapper.template.h.orig | ||
+++ config/gcc-stl-wrapper.template.h | ||
@@ -22,32 +22,6 @@ | ||
#define NOMINMAX 1 | ||
#endif | ||
|
||
-// Don't include mozalloc for cstdlib. See bug 1245076. | ||
-#ifndef moz_dont_include_mozalloc_for_cstdlib | ||
-# define moz_dont_include_mozalloc_for_cstdlib | ||
-#endif | ||
-#ifndef moz_dont_include_mozalloc_for_${HEADER} | ||
-// mozalloc.h wants <new>; break the cycle by always explicitly | ||
-// including <new> here. NB: this is a tad sneaky. Sez the gcc docs: | ||
-// | ||
-// `#include_next' does not distinguish between <file> and "file" | ||
-// inclusion, nor does it check that the file you specify has the | ||
-// same name as the current file. It simply looks for the file | ||
-// named, starting with the directory in the search path after the | ||
-// one where the current file was found. | ||
-# include_next <new> | ||
- | ||
-// See if we're in code that can use mozalloc. NB: this duplicates | ||
-// code in nscore.h because nscore.h pulls in prtypes.h, and chromium | ||
-// can't build with that being included before base/basictypes.h. | ||
-# if !defined(XPCOM_GLUE) && !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC) | ||
-# include "mozilla/mozalloc.h" | ||
-# else | ||
-# error "STL code can only be used with infallible ::operator new()" | ||
-# endif | ||
- | ||
-#endif | ||
- | ||
#if defined(DEBUG) && !defined(_GLIBCXX_DEBUG) | ||
// Enable checked iterators and other goodies | ||
// | ||
@@ -58,9 +32,33 @@ | ||
// # define _GLIBCXX_DEBUG 1 | ||
#endif | ||
|
||
+// Don't include mozalloc for cstdlib. See bug 1245076. | ||
+#ifndef moz_dont_include_mozalloc_for_cstdlib | ||
+# define moz_dont_include_mozalloc_for_cstdlib | ||
+#endif | ||
+ | ||
+// Include mozalloc after the STL header and all other headers it includes | ||
+// have been preprocessed. | ||
+#if !defined(MOZ_INCLUDE_MOZALLOC_H) && \ | ||
+ !defined(moz_dont_include_mozalloc_for_${HEADER}) | ||
+# define MOZ_INCLUDE_MOZALLOC_H | ||
+# define MOZ_INCLUDE_H_FROM_${HEADER} | ||
+#endif | ||
+ | ||
#pragma GCC visibility push(default) | ||
#include_next <${HEADER}> | ||
#pragma GCC visibility pop | ||
+ | ||
+#ifdef MOZ_INCLUDE_MOZALLOC_H_FROM_${HEADER} | ||
+// See if we're in clode that can use mozalloc. NB: this duplicates | ||
+// code in nscore.h because nscore.h pulls in prtypes.h, and chromium | ||
+// can't built with that being included before base/basictypes.h. | ||
+# if !defined(XPCOM_GLUE) && !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC) | ||
+# include "mozilla/mozalloc.h" | ||
+# else | ||
+# error "STL code can only be used with infallible ::operator new()" | ||
+# endif | ||
+#endif | ||
|
||
// gcc calls a __throw_*() function from bits/functexcept.h when it | ||
// wants to "throw an exception". functexcept exists nominally to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
$OpenBSD$ | ||
|
||
Maybe one day we'll run with a clang built binary. | ||
We'll need this when we do. | ||
|
||
Index: config/gcc_hidden.h | ||
--- config/gcc_hidden.h.orig | ||
+++ config/gcc_hidden.h | ||
@@ -2,5 +2,7 @@ | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
-/* Begin all files as hidden visibility */ | ||
+/* Begin all files as hidden visibility, but only if using gcc */ | ||
+#ifndef __llvm__ | ||
#pragma GCC visibility push(hidden) | ||
+#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
$OpenBSD$ | ||
|
||
https://hg.mozilla.org/mozilla-central/rev/68da139d0866 | ||
|
||
Index: config/make-stl-wrappers.py | ||
--- config/make-stl-wrappers.py.orig | ||
+++ config/make-stl-wrappers.py | ||
@@ -30,7 +30,6 @@ def main(outdir, compiler, template_file, header_list_ | ||
os.mkdir(outdir) | ||
|
||
template = open(template_file, 'r').read() | ||
- path_to_new = header_path('new', compiler) | ||
|
||
for header in open(header_list_file, 'r'): | ||
header = header.rstrip() | ||
@@ -40,8 +39,7 @@ def main(outdir, compiler, template_file, header_list_ | ||
path = header_path(header, compiler) | ||
with FileAvoidWrite(os.path.join(outdir, header)) as f: | ||
f.write(string.Template(template).substitute(HEADER=header, | ||
- HEADER_PATH=path, | ||
- NEW_HEADER_PATH=path_to_new)) | ||
+ HEADER_PATH=path)) | ||
|
||
|
||
if __name__ == '__main__': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
$OpenBSD$ | ||
|
||
Don't attempt SSSE3 or SSE4. | ||
|
||
Index: gfx/skia/generate_mozbuild.py | ||
--- gfx/skia/generate_mozbuild.py.orig | ||
+++ gfx/skia/generate_mozbuild.py | ||
@@ -37,7 +37,7 @@ if not CONFIG['INTEL_ARCHITECTURE'] and CONFIG['CPU_AR | ||
'trunk/src/opts/memset32_neon.S', | ||
] | ||
|
||
-if CONFIG['INTEL_ARCHITECTURE'] and CONFIG['GNU_CC'] and CONFIG['OS_ARCH'] != 'WINNT': | ||
+if CONFIG['INTEL_ARCHITECTURE'] and CONFIG['GNU_CC'] and CONFIG['OS_ARCH'] == 'WINNT': | ||
if CONFIG['CPU_ARCH'] == 'x86_64': | ||
SOURCES += [ | ||
'trunk/src/opts/SkBlitRow_opts_SSE4_x64_asm.S', | ||
@@ -79,9 +79,6 @@ LOCAL_INCLUDES += [ | ||
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gtk2', 'gtk3', 'qt', 'gonk', 'cocoa'): | ||
DEFINES['SK_USE_POSIX_THREADS'] = 1 | ||
|
||
-if CONFIG['INTEL_ARCHITECTURE'] and CONFIG['HAVE_TOOLCHAIN_SUPPORT_MSSSE3']: | ||
- DEFINES['SK_BUILD_SSSE3'] = 1 | ||
- | ||
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gonk'): | ||
DEFINES['SK_FONTHOST_CAIRO_STANDALONE'] = 0 | ||
|
||
@@ -115,20 +112,15 @@ if CONFIG['_MSC_VER']: | ||
if CONFIG['INTEL_ARCHITECTURE'] and CONFIG['GNU_CC']: | ||
SOURCES['trunk/src/opts/SkBitmapFilter_opts_SSE2.cpp'].flags += CONFIG['SSE2_FLAGS'] | ||
SOURCES['trunk/src/opts/SkBitmapProcState_opts_SSE2.cpp'].flags += CONFIG['SSE2_FLAGS'] | ||
- SOURCES['trunk/src/opts/SkBitmapProcState_opts_SSSE3.cpp'].flags += ['-mssse3'] | ||
SOURCES['trunk/src/opts/SkBlitRect_opts_SSE2.cpp'].flags += CONFIG['SSE2_FLAGS'] | ||
SOURCES['trunk/src/opts/SkBlitRow_opts_SSE2.cpp'].flags += CONFIG['SSE2_FLAGS'] | ||
SOURCES['trunk/src/opts/SkBlurImage_opts_SSE2.cpp'].flags += CONFIG['SSE2_FLAGS'] | ||
- SOURCES['trunk/src/opts/SkBlurImage_opts_SSE4.cpp'].flags += ['-msse4.1'] | ||
SOURCES['trunk/src/opts/SkMorphology_opts_SSE2.cpp'].flags += CONFIG['SSE2_FLAGS'] | ||
SOURCES['trunk/src/opts/SkUtils_opts_SSE2.cpp'].flags += CONFIG['SSE2_FLAGS'] | ||
SOURCES['trunk/src/opts/SkXfermode_opts_SSE2.cpp'].flags += CONFIG['SSE2_FLAGS'] | ||
elif CONFIG['CPU_ARCH'] == 'arm' and CONFIG['GNU_CC'] and CONFIG['BUILD_ARM_NEON']: | ||
DEFINES['__ARM_HAVE_OPTIONAL_NEON_SUPPORT'] = 1 | ||
DEFINES['USE_ANDROID_NDK_CPU_FEATURES'] = 0 | ||
-elif CONFIG['CLANG_CL']: | ||
- SOURCES['trunk/src/opts/SkBitmapProcState_opts_SSSE3.cpp'].flags += ['-mssse3'] | ||
- SOURCES['trunk/src/opts/SkBlurImage_opts_SSE4.cpp'].flags += ['-msse4.1'] | ||
|
||
if CONFIG['GNU_CXX'] and CONFIG['CPU_ARCH'] == 'arm': | ||
SOURCES['skia/src/opts/SkBlitRow_opts_arm.cpp'].flags += ['-fomit-frame-pointer'] |
16 changes: 0 additions & 16 deletions
16
www/palemoon/patches/patch-gfx_skia_trunk_src_opts_SkBlitRow_opts_SSE4_asm_S
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
www/palemoon/patches/patch-gfx_skia_trunk_src_opts_SkBlitRow_opts_SSE4_x64_asm_S
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
www/palemoon/patches/patch-gfx_skia_trunk_src_opts_SkBlurImage_opts_SSE4_cpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.