head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.08.27.01.23.17; author gutteridge; state Exp; branches; next ; commitid jHXIs10wmSYxkdTG; desc @@ 1.1 log @firefox153: import Firefox 153.1 as www/firefox153 Mozilla Firefox is a free, open-source and cross-platform web browser for Windows, Linux, MacOS X and many other operating systems. It is fast and easy to use, and offers many advantages over other web browsers, such as tabbed browsing and the ability to block pop-up windows. Firefox also offers excellent bookmark and history management, and it can be extended by developers using industry standards such as XML, CSS, JavaScript, C++, etc. Many extensions are available. Note: Due to upstream's trademark policies, this package identifies as "Nightly" rather than "Firefox" by default. This package provides Firefox 153 Extended Support Release. @ text @$NetBSD: patch-python_mozbuild_mozbuild_backend_recursivemake.py,v 1.2 2024/10/01 12:47:19 ryoon Exp $ * As of 129.0, libxul.so is built with -Wl,-z,defs (no undefined references). Supply memalign() from fallback.cpp (Unified_cpp_memory_build0) for NetBSD. This approach is completely incorrect, however I do not find the correct way to include Unified_cpp_memory_build0.o to objs yet. --- python/mozbuild/mozbuild/backend/recursivemake.py.orig 2024-08-23 12:51:15.000000000 +0000 +++ python/mozbuild/mozbuild/backend/recursivemake.py @@@@ -73,6 +73,8 @@@@ from ..util import FileAvoidWrite, ensur from .common import CommonBackend from .make import MakeBackend +import buildconfig + # To protect against accidentally adding logic to Makefiles that belong in moz.build, # we check if moz.build-like variables are defined in Makefiles. If they are, we throw # an error to encourage the usage of moz.build instead. @@@@ -1426,6 +1428,8 @@@@ class RecursiveMakeBackend(MakeBackend): def _process_linked_libraries(self, obj, backend_file): objs, shared_libs, os_libs, static_libs = self._expand_libs(obj) + if buildconfig.substs["OS_ARCH"] == "NetBSD" and obj.name == "libxul.so": + objs.append("memory/build/Unified_cpp_memory_build0.o") obj_target = obj.name if isinstance(obj, (Program, SharedLibrary)): @