diff --git a/www-client/librewolf/librewolf-143.0.recipe b/www-client/librewolf/librewolf-143.0.4.recipe similarity index 93% rename from www-client/librewolf/librewolf-143.0.recipe rename to www-client/librewolf/librewolf-143.0.4.recipe index aff4e6b8e..cfb277499 100644 --- a/www-client/librewolf/librewolf-143.0.recipe +++ b/www-client/librewolf/librewolf-143.0.4.recipe @@ -12,7 +12,7 @@ COPYRIGHT="1995-2025 Mozilla Developers and Contributors" LICENSE="MPL v2.0" REVISION="1" SOURCE_URI="https://gitlab.com/api/v4/projects/32320088/packages/generic/librewolf-source/${portVersion}-1/librewolf-${portVersion}-1.source.tar.gz" -CHECKSUM_SHA256="95e12aca5828c7e1b0b0077ad812554b1573d135264d3f17f0e5e0a1ca9270af" +CHECKSUM_SHA256="c40d149016c578d39f7a9f25f28cf31960c6009ca81782675145c5c976b63360" SOURCE_DIR="librewolf-${portVersion}-1" PATCHES=" librewolf-$portVersion.patchset @@ -88,7 +88,6 @@ BUILD_PREREQUIRES=" cmd:make cmd:nasm cmd:perl - cmd:pip3 cmd:pkg_config cmd:python3 cmd:tar @@ -105,7 +104,11 @@ BUILD() cp -f $portDir/additional-files/mozconfig mozconfig + export DISABLE_ASLR=1 export MOZBUILD_STATE_PATH="$sourceDir/.mozconfig" + export RUSTFLAGS="-C link-arg=-Wl,--no-gc-sections" + + python3 -m ensurepip --default-pip ./mach -vv \ --no-interactive bootstrap \ @@ -122,6 +125,7 @@ BUILD() INSTALL() { + export DISABLE_ASLR=1 export MOZBUILD_STATE_PATH="$sourceDir/.mozconfig" ./mach install @@ -152,7 +156,7 @@ INSTALL() local APP_SIGNATURE="application/x-vnd.librewolf" local MAJOR="`echo "$portVersion" | cut -d. -f1`" local MIDDLE="`echo "$portVersion" | cut -d. -f2`" - local MINOR="0" + local MINOR="`echo "$portVersion" | cut -d. -f3`" local LONG_INFO="$SUMMARY" sed \ -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ diff --git a/www-client/librewolf/patches/librewolf-143.0.patchset b/www-client/librewolf/patches/librewolf-143.0.4.patchset similarity index 99% rename from www-client/librewolf/patches/librewolf-143.0.patchset rename to www-client/librewolf/patches/librewolf-143.0.4.patchset index c2c51b1bc..3ad318794 100644 --- a/www-client/librewolf/patches/librewolf-143.0.patchset +++ b/www-client/librewolf/patches/librewolf-143.0.4.patchset @@ -804,19 +804,6 @@ index 06954b3..f9dd019 100644 # elif defined(XP_DARWIN) # define EIP_sig(p) ((p)->thread.uts.ts32.__eip) # define EBP_sig(p) ((p)->thread.uts.ts32.__ebp) -diff --git a/media/ffvpx/config_unix64.h b/media/ffvpx/config_unix64.h -index 7d63f47..2fe6932 100644 ---- a/media/ffvpx/config_unix64.h -+++ b/media/ffvpx/config_unix64.h -@@ -291,7 +291,7 @@ - #define HAVE_COMMANDLINETOARGVW 0 - #define HAVE_FCNTL 1 - #define HAVE_GETADDRINFO 1 --#define HAVE_GETAUXVAL 1 -+#define HAVE_GETAUXVAL 0 - #define HAVE_GETENV 1 - #define HAVE_GETHRTIME 0 - #define HAVE_GETOPT 1 diff --git a/media/libcubeb/src/cubeb.c b/media/libcubeb/src/cubeb.c index 0511ad9..1e0b48e 100644 --- a/media/libcubeb/src/cubeb.c @@ -5896,6 +5883,28 @@ index 6b566f9..2895ad9 100644 "NetBSD", "OpenBSD", "SunOS", +diff --git a/media/ffvpx/config_unix64.h b/media/ffvpx/config_unix64.h +index 7d63f47..f72e3bd 100644 +--- a/media/ffvpx/config_unix64.h ++++ b/media/ffvpx/config_unix64.h +@@ -291,7 +291,7 @@ + #define HAVE_COMMANDLINETOARGVW 0 + #define HAVE_FCNTL 1 + #define HAVE_GETADDRINFO 1 +-#define HAVE_GETAUXVAL 1 ++#define HAVE_GETAUXVAL 0 + #define HAVE_GETENV 1 + #define HAVE_GETHRTIME 0 + #define HAVE_GETOPT 1 +@@ -319,7 +319,7 @@ + #define HAVE_NANOSLEEP 1 + #define HAVE_PEEKNAMEDPIPE 0 + #define HAVE_PTHREAD_CANCEL 1 +-#define HAVE_SCHED_GETAFFINITY 1 ++#define HAVE_SCHED_GETAFFINITY 0 + #define HAVE_SECITEMIMPORT 0 + #define HAVE_SETCONSOLETEXTATTRIBUTE 0 + #define HAVE_SETCONSOLECTRLHANDLER 0 diff --git a/xpcom/threads/nsProcessCommon.cpp b/xpcom/threads/nsProcessCommon.cpp index dbd9993..1431340 100644 --- a/xpcom/threads/nsProcessCommon.cpp @@ -5916,3 +5925,62 @@ index dbd9993..1431340 100644 -- 2.50.1 +From b94e4a8c930e40defd9fde07db8a3ffc6de42db9 Mon Sep 17 00:00:00 2001 +From: Gerasim Troeglazov <3dEyes@gmail.com> +Date: Mon, 6 Oct 2025 13:13:03 +1000 +Subject: Fix timezone + + +diff --git a/js/src/vm/DateTime.cpp b/js/src/vm/DateTime.cpp +index ca220ac..f773ef5 100644 +--- a/js/src/vm/DateTime.cpp ++++ b/js/src/vm/DateTime.cpp +@@ -10,6 +10,15 @@ + # include "mozilla/intl/ICU4CGlue.h" + # include "mozilla/intl/TimeZone.h" + #endif ++ ++#if JS_HAS_INTL_API && defined(__HAIKU__) ++# pragma GCC visibility push(default) ++# include ++# include ++# include ++# pragma GCC visibility pop ++#endif ++ + #include "mozilla/ScopeExit.h" + #include "mozilla/Span.h" + #include "mozilla/TextUtils.h" +@@ -784,6 +793,21 @@ void js::DateTimeInfo::internalResyncICUDefaultTimeZone() { + return; + } + ++#if defined(__HAIKU__) ++ BTimeZone timeZone; ++ if (BLocaleRoster::Default()->GetDefaultTimeZone(&timeZone) == B_OK) { ++ BString timeZoneID = timeZone.ID(); ++ if (timeZoneID.Length() > 0) { ++ mozilla::Span tzid(timeZoneID.String(), ++ timeZoneID.Length()); ++ auto result = mozilla::intl::TimeZone::SetDefaultTimeZone(tzid); ++ if (result.isOk() && result.unwrap()) { ++ return; ++ } ++ } ++ } ++ (void)mozilla::intl::TimeZone::SetDefaultTimeZoneFromHostTimeZone(); ++#else + if (const char* tzenv = std::getenv("TZ")) { + std::string_view tz(tzenv); + +@@ -845,5 +869,6 @@ void js::DateTimeInfo::internalResyncICUDefaultTimeZone() { + // Intentionally ignore any errors, because we don't have a good way to report + // errors from this function. + (void)mozilla::intl::TimeZone::SetDefaultTimeZoneFromHostTimeZone(); +-#endif ++#endif /* __HAIKU__ */ ++#endif /* JS_HAS_INTL_API */ + } +-- +2.50.1 + diff --git a/www-client/librewolf/patches/librewolf_launcher-141.0.patchset b/www-client/librewolf/patches/librewolf_launcher-143.0.4.patchset similarity index 100% rename from www-client/librewolf/patches/librewolf_launcher-141.0.patchset rename to www-client/librewolf/patches/librewolf_launcher-143.0.4.patchset