diff options
author | nia <nia@pkgsrc.org> | 2022-02-05 20:51:07 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2022-02-05 20:51:07 +0000 |
commit | 143aac171f3673f0be4a3c77d6690a593b0e3b74 (patch) | |
tree | 944e04dae62cc15806ce53f2d6c3e6b8e4b250e5 /www/arcticfox/patches | |
parent | 2f8ba9fc39b9044c9b03aa9139f4926f151ce645 (diff) | |
download | pkgsrc-143aac171f3673f0be4a3c77d6690a593b0e3b74.tar.gz |
Add www/arcticfox
Arctic Fox aims to be a desktop oriented web browser. It started as a forked
and rebranded Pale Moon 27.9.4 and retains its classic interface. Many fixes
and enhancements have been imported from Firefox and TenFourFox.
The goal here is to implement specific security updates and bug fixes to
keep this browser as up to date as possible for aging systems.
Diffstat (limited to 'www/arcticfox/patches')
4 files changed, 112 insertions, 0 deletions
diff --git a/www/arcticfox/patches/patch-configure.in b/www/arcticfox/patches/patch-configure.in new file mode 100644 index 00000000000..80686242988 --- /dev/null +++ b/www/arcticfox/patches/patch-configure.in @@ -0,0 +1,40 @@ +$NetBSD: patch-configure.in,v 1.1 2022/02/05 20:51:07 nia Exp $ + +- Add Sun Audio support. +- Replace a GNU regex with a portable one. + +--- configure.in.orig 2021-12-03 05:22:04.000000000 +0000 ++++ configure.in +@@ -5258,6 +5258,13 @@ if test -n "$MOZ_OMX_PLUGIN"; then + fi + fi + ++dnl If SunOS or NetBSD, assume that Sun Audio is available ++case "$OS_TARGET" in ++SunOS|NetBSD) ++ MOZ_SUN=1 ++ ;; ++esac ++ + dnl system libvpx Support + dnl ======================================================== + MOZ_ARG_WITH_BOOL(system-libvpx, +@@ -5428,6 +5435,8 @@ if test -n "$MOZ_WEBM_ENCODER"; then + fi + AC_SUBST(MOZ_WEBM_ENCODER) + ++AC_SUBST(MOZ_SUN) ++ + dnl ================================== + dnl = Check alsa availability on Linux + dnl ================================== +@@ -8812,7 +8821,8 @@ ac_configure_args="$_SUBDIR_CONFIG_ARGS" + + # --with-system-nspr will have been converted into the relevant $NSPR_CFLAGS + # and $NSPR_LIBS. +-ac_configure_args="`echo $ac_configure_args | sed -e 's/--with-system-nspr\S* *//'`" ++ac_configure_args="`echo $ac_configure_args | sed -e 's/--with-system-nspr[[^[: ++space:]]]* *//'`" + + ac_configure_args="$ac_configure_args --enable-threadsafe" + diff --git a/www/arcticfox/patches/patch-ipc_chromium_src_base_message__pump__libevent.cc b/www/arcticfox/patches/patch-ipc_chromium_src_base_message__pump__libevent.cc new file mode 100644 index 00000000000..e946f3d8dd8 --- /dev/null +++ b/www/arcticfox/patches/patch-ipc_chromium_src_base_message__pump__libevent.cc @@ -0,0 +1,27 @@ +$NetBSD: patch-ipc_chromium_src_base_message__pump__libevent.cc,v 1.1 2022/02/05 20:51:07 nia Exp $ + +Avoid compilation failure caused by slightly-incompatible libevent +headers. + +--- ipc/chromium/src/base/message_pump_libevent.cc.orig 2021-12-03 05:22:04.000000000 +0000 ++++ ipc/chromium/src/base/message_pump_libevent.cc +@@ -22,19 +22,6 @@ + #include "third_party/libevent/event.h" + #include "mozilla/UniquePtr.h" + +-// This macro checks that the _EVENT_SIZEOF_* constants defined in +-// ipc/chromiume/src/third_party/<platform>/event2/event-config.h are correct. +-#define CHECK_EVENT_SIZEOF(TYPE, type) \ +- static_assert(_EVENT_SIZEOF_##TYPE == sizeof(type), \ +- "bad _EVENT_SIZEOF_"#TYPE); +- +-CHECK_EVENT_SIZEOF(LONG, long); +-CHECK_EVENT_SIZEOF(LONG_LONG, long long); +-CHECK_EVENT_SIZEOF(PTHREAD_T, pthread_t); +-CHECK_EVENT_SIZEOF(SHORT, short); +-CHECK_EVENT_SIZEOF(SIZE_T, size_t); +-CHECK_EVENT_SIZEOF(VOID_P, void*); +- + // Lifecycle of struct event + // Libevent uses two main data structures: + // struct event_base (of which there is one per message pump), and diff --git a/www/arcticfox/patches/patch-media_libcubeb_src_cubeb.c b/www/arcticfox/patches/patch-media_libcubeb_src_cubeb.c new file mode 100644 index 00000000000..09f1b70ed89 --- /dev/null +++ b/www/arcticfox/patches/patch-media_libcubeb_src_cubeb.c @@ -0,0 +1,26 @@ +$NetBSD: patch-media_libcubeb_src_cubeb.c,v 1.1 2022/02/05 20:51:07 nia Exp $ + +- Add Sun Audio support. + +--- media/libcubeb/src/cubeb.c.orig 2021-12-03 05:22:04.000000000 +0000 ++++ media/libcubeb/src/cubeb.c +@@ -50,6 +50,9 @@ int wasapi_init(cubeb ** context, char c + #if defined(USE_SNDIO) + int sndio_init(cubeb ** context, char const * context_name); + #endif ++#if defined(USE_SUN) ++int sun_init(cubeb ** context, char const * context_name); ++#endif + #if defined(USE_OPENSL) + int opensl_init(cubeb ** context, char const * context_name); + #endif +@@ -116,6 +119,9 @@ cubeb_init(cubeb ** context, char const + #if defined(USE_SNDIO) + sndio_init, + #endif ++#if defined(USE_SUN) ++ sun_init, ++#endif + #if defined(USE_OPENSL) + opensl_init, + #endif diff --git a/www/arcticfox/patches/patch-media_libcubeb_src_moz.build b/www/arcticfox/patches/patch-media_libcubeb_src_moz.build new file mode 100644 index 00000000000..710ff9f21c4 --- /dev/null +++ b/www/arcticfox/patches/patch-media_libcubeb_src_moz.build @@ -0,0 +1,19 @@ +$NetBSD: patch-media_libcubeb_src_moz.build,v 1.1 2022/02/05 20:51:07 nia Exp $ + +- Add Sun Audio support. + +--- media/libcubeb/src/moz.build.orig 2021-12-03 05:22:04.000000000 +0000 ++++ media/libcubeb/src/moz.build +@@ -25,6 +25,12 @@ if CONFIG['MOZ_PULSEAUDIO']: + if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': + DEFINES['DISABLE_LIBPULSE_DLOPEN'] = True + ++if CONFIG['MOZ_SUN']: ++ SOURCES += [ ++ 'cubeb_sun.c', ++ ] ++ DEFINES['USE_SUN'] = True ++ + if CONFIG['OS_ARCH'] == 'OpenBSD': + SOURCES += [ + 'cubeb_sndio.c', |