pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/mozjs128



Module Name:    pkgsrc
Committed By:   ryoon
Date:           Mon Aug 26 13:53:42 UTC 2024

Added Files:
        pkgsrc/lang/mozjs128: DESCR Makefile PLIST PLIST.Linux buildlink3.mk
            distinfo
        pkgsrc/lang/mozjs128/patches: patch-js_moz.configure
            patch-js_public_Utility.h patch-js_src_jit_FlushICache.cpp
            patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp
            patch-js_src_old-configure.in patch-js_src_util_NativeStack.cpp
            patch-js_src_vm_TypedArrayObject-inl.h

Log Message:
lang/mozjs128: import mozjs128-128.1.0

This directory contains SpiderMonkey 128, the JavaScript engine by
Mozilla.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/mozjs128/DESCR \
    pkgsrc/lang/mozjs128/Makefile pkgsrc/lang/mozjs128/PLIST \
    pkgsrc/lang/mozjs128/PLIST.Linux pkgsrc/lang/mozjs128/buildlink3.mk \
    pkgsrc/lang/mozjs128/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/mozjs128/patches/patch-js_moz.configure \
    pkgsrc/lang/mozjs128/patches/patch-js_public_Utility.h \
    pkgsrc/lang/mozjs128/patches/patch-js_src_jit_FlushICache.cpp \
    pkgsrc/lang/mozjs128/patches/patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp \
    pkgsrc/lang/mozjs128/patches/patch-js_src_old-configure.in \
    pkgsrc/lang/mozjs128/patches/patch-js_src_util_NativeStack.cpp \
    pkgsrc/lang/mozjs128/patches/patch-js_src_vm_TypedArrayObject-inl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/lang/mozjs128/DESCR
diff -u /dev/null pkgsrc/lang/mozjs128/DESCR:1.1
--- /dev/null   Mon Aug 26 13:53:42 2024
+++ pkgsrc/lang/mozjs128/DESCR  Mon Aug 26 13:53:41 2024
@@ -0,0 +1,2 @@
+This directory contains SpiderMonkey 128, the JavaScript engine by
+Mozilla.
Index: pkgsrc/lang/mozjs128/Makefile
diff -u /dev/null pkgsrc/lang/mozjs128/Makefile:1.1
--- /dev/null   Mon Aug 26 13:53:42 2024
+++ pkgsrc/lang/mozjs128/Makefile       Mon Aug 26 13:53:41 2024
@@ -0,0 +1,103 @@
+# $NetBSD: Makefile,v 1.1 2024/08/26 13:53:41 ryoon Exp $
+
+MOZVER=                128.1.0esr
+DISTNAME=      firefox-${MOZVER}.source
+PKGNAME=       mozjs128-${MOZVER:S/esr//}
+CATEGORIES=    lang
+MASTER_SITES=  ${MASTER_SITE_MOZILLA:=firefox/releases/${MOZVER}/source/}
+EXTRACT_SUFX=  .tar.xz
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://spidermonkey.dev/
+COMMENT=       SpiderMonkey JavaScript library (128.x branch)
+LICENSE=       mpl-1.1
+
+WRKSRC=                ${WRKDIR}/firefox-${PKGVERSION_NOREV}
+USE_TOOLS+=    gmake perl pkg-config
+USE_LANGUAGES= c c++
+
+# "ERROR: Only GCC 7.1 or newer is supported"
+GCC_REQD+=     7
+
+CHECK_PORTABILITY_SKIP+=       security/nss/tests/libpkix/libpkix.sh
+CHECK_PORTABILITY_SKIP+=       security/nss/tests/multinit/multinit.sh
+
+CONFIGURE_DIRS=        js/src/build
+BUILD_DIRS=    js/src/build
+
+HAS_CONFIGURE=         yes
+CONFIGURE_SCRIPT=      ../configure
+CONFIGURE_ARGS+=       --prefix=${PREFIX}
+CONFIGURE_ARGS+=       --disable-debug
+CONFIGURE_ARGS+=       --with-system-icu
+CONFIGURE_ARGS+=       --with-system-zlib
+CONFIGURE_ARGS+=       --enable-readline
+CONFIGURE_ARGS+=       --disable-jemalloc
+CONFIGURE_ARGS+=       --disable-debug-symbols
+CONFIGURE_ARGS+=       --enable-strip
+CONFIGURE_ARGS+=       --with-intl-api
+# --disable-optimize
+
+OVERRIDE_GNU_CONFIG_SCRIPTS=   yes
+OVERRIDE_DIRDEPTH=             4
+
+CPPFLAGS.SunOS+=       -DSOLARIS
+
+# For rustc/cargo detection
+.include "../../mk/bsd.prefs.mk"
+
+# This is to work around build failures where an upstream configuration script
+# is confused by having more than one approximate match to MACHINE_GNU_PLATFORM
+# "i486" when attempting to select the Rust compiler target.
+.if ${MACHINE_PLATFORM:MNetBSD-*-i386}
+CONFIGURE_ARGS+=       --target=i586-unknown-netbsd
+CONFIGURE_ARGS+=       --host=i586-unknown-netbsd
+.elif ${MACHINE_PLATFORM:MSunOS-*}
+CONFIGURE_ARGS+=       --target=x86_64-unknown-illumos
+CONFIGURE_ARGS+=       --host=x86_64-unknown-illumos
+.else
+CONFIGURE_ARGS+=       --target=${MACHINE_GNU_PLATFORM}
+CONFIGURE_ARGS+=       --host=${MACHINE_GNU_PLATFORM}
+.endif
+
+BUILDLINK_TRANSFORM.SunOS+=    rm:-pie
+
+SUBST_CLASSES+=                conf
+SUBST_STAGE.conf=      pre-configure
+SUBST_MESSAGE.conf=    Set variables in configuration file.
+SUBST_FILES.conf+=     js/moz.configure
+SUBST_VARS.conf=       PREFIX
+
+PKGCONFIG_OVERRIDE+=   js/src/build/js.pc.in
+PKGCONFIG_OVERRIDE+=   js/src/ctypes/libffi/libffi.pc.in
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+PYTHON_FOR_BUILD_ONLY=         tool
+
+TEST_DEPENDS+=                 ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+
+TEST_TARGET=                   check-jstests
+
+post-install:
+       cd ${DESTDIR}${PREFIX}/lib && \
+               ${MV} libmozjs-128.so libmozjs-128.so.0.0.0 && \
+               ${LN} -s libmozjs-128.so.0.0.0 libmozjs-128.so.0 && \
+               ${LN} -s libmozjs-128.so.0 libmozjs-128.so
+       ${RM} -f ${DESTDIR}${PREFIX}/lib/libjs_static.ajs
+       ${CHMOD} -x ${DESTDIR}${PREFIX}/include/mozjs-128/js-config.h
+       ${CHMOD} -x ${DESTDIR}${PREFIX}/lib/pkgconfig/mozjs-128.pc
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+BUILDLINK_DEPMETHOD.clang=     build
+.include "../../lang/clang/buildlink3.mk"
+RUST_REQ=      1.41.0
+.include "../../lang/rust/rust.mk"
+.include "../../lang/python/batteries-included.mk"
+.include "../../lang/python/tool.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../mk/readline.buildlink3.mk"
+# XXX This does not work entirely correctly at present. There are
+# 26 atomic type test failures on powerpc, where these pass on i386.
+.include "../../mk/atomic64.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/lang/mozjs128/PLIST
diff -u /dev/null pkgsrc/lang/mozjs128/PLIST:1.1
--- /dev/null   Mon Aug 26 13:53:42 2024
+++ pkgsrc/lang/mozjs128/PLIST  Mon Aug 26 13:53:41 2024
@@ -0,0 +1,366 @@
+@comment $NetBSD: PLIST,v 1.1 2024/08/26 13:53:41 ryoon Exp $
+bin/js128
+bin/js128-config
+include/mozjs-128/BaseProfiler.h
+include/mozjs-128/BaseProfilerSharedLibraries.h
+include/mozjs-128/BaseProfilingCategory.h
+include/mozjs-128/PHC.h
+include/mozjs-128/double-conversion/double-conversion.h
+include/mozjs-128/double-conversion/double-to-string.h
+include/mozjs-128/double-conversion/string-to-double.h
+include/mozjs-128/double-conversion/utils.h
+include/mozjs-128/encoding_rs_mem.h
+include/mozjs-128/fdlibm.h
+include/mozjs-128/function2/function2.hpp
+include/mozjs-128/js-config.h
+include/mozjs-128/js/AllocPolicy.h
+include/mozjs-128/js/AllocationLogging.h
+include/mozjs-128/js/AllocationRecording.h
+include/mozjs-128/js/Array.h
+include/mozjs-128/js/ArrayBuffer.h
+include/mozjs-128/js/ArrayBufferMaybeShared.h
+include/mozjs-128/js/BigInt.h
+include/mozjs-128/js/BuildId.h
+include/mozjs-128/js/CallAndConstruct.h
+include/mozjs-128/js/CallArgs.h
+include/mozjs-128/js/CallNonGenericMethod.h
+include/mozjs-128/js/CharacterEncoding.h
+include/mozjs-128/js/Class.h
+include/mozjs-128/js/ColumnNumber.h
+include/mozjs-128/js/ComparisonOperators.h
+include/mozjs-128/js/CompilationAndEvaluation.h
+include/mozjs-128/js/CompileOptions.h
+include/mozjs-128/js/Context.h
+include/mozjs-128/js/ContextOptions.h
+include/mozjs-128/js/Conversions.h
+include/mozjs-128/js/Date.h
+include/mozjs-128/js/Debug.h
+include/mozjs-128/js/Equality.h
+include/mozjs-128/js/ErrorInterceptor.h
+include/mozjs-128/js/ErrorReport.h
+include/mozjs-128/js/Exception.h
+include/mozjs-128/js/ForOfIterator.h
+include/mozjs-128/js/GCAPI.h
+include/mozjs-128/js/GCAnnotations.h
+include/mozjs-128/js/GCHashTable.h
+include/mozjs-128/js/GCPolicyAPI.h
+include/mozjs-128/js/GCTypeMacros.h
+include/mozjs-128/js/GCVariant.h
+include/mozjs-128/js/GCVector.h
+include/mozjs-128/js/GlobalObject.h
+include/mozjs-128/js/HashTable.h
+include/mozjs-128/js/HeapAPI.h
+include/mozjs-128/js/HelperThreadAPI.h
+include/mozjs-128/js/Id.h
+include/mozjs-128/js/Initialization.h
+include/mozjs-128/js/Interrupt.h
+include/mozjs-128/js/Iterator.h
+include/mozjs-128/js/JSON.h
+include/mozjs-128/js/JitCodeAPI.h
+include/mozjs-128/js/LocaleSensitive.h
+include/mozjs-128/js/MapAndSet.h
+include/mozjs-128/js/MemoryCallbacks.h
+include/mozjs-128/js/MemoryFunctions.h
+include/mozjs-128/js/MemoryMetrics.h
+include/mozjs-128/js/Modules.h
+include/mozjs-128/js/Object.h
+include/mozjs-128/js/Prefs.h
+include/mozjs-128/js/Principals.h
+include/mozjs-128/js/Printer.h
+include/mozjs-128/js/Printf.h
+include/mozjs-128/js/ProfilingCategory.h
+include/mozjs-128/js/ProfilingCategoryList.h
+include/mozjs-128/js/ProfilingFrameIterator.h
+include/mozjs-128/js/ProfilingStack.h
+include/mozjs-128/js/Promise.h
+include/mozjs-128/js/PropertyAndElement.h
+include/mozjs-128/js/PropertyDescriptor.h
+include/mozjs-128/js/PropertySpec.h
+include/mozjs-128/js/ProtoKey.h
+include/mozjs-128/js/Proxy.h
+include/mozjs-128/js/Realm.h
+include/mozjs-128/js/RealmIterators.h
+include/mozjs-128/js/RealmOptions.h
+include/mozjs-128/js/RefCounted.h
+include/mozjs-128/js/RegExp.h
+include/mozjs-128/js/RegExpFlags.h
+include/mozjs-128/js/Result.h
+include/mozjs-128/js/RootingAPI.h
+include/mozjs-128/js/SavedFrameAPI.h
+include/mozjs-128/js/ScalarType.h
+include/mozjs-128/js/ScriptPrivate.h
+include/mozjs-128/js/ShadowRealmCallbacks.h
+include/mozjs-128/js/SharedArrayBuffer.h
+include/mozjs-128/js/SliceBudget.h
+include/mozjs-128/js/SourceText.h
+include/mozjs-128/js/StableStringChars.h
+include/mozjs-128/js/Stack.h
+include/mozjs-128/js/StreamConsumer.h
+include/mozjs-128/js/String.h
+include/mozjs-128/js/StructuredClone.h
+include/mozjs-128/js/SweepingAPI.h
+include/mozjs-128/js/Symbol.h
+include/mozjs-128/js/TelemetryTimers.h
+include/mozjs-128/js/TraceKind.h
+include/mozjs-128/js/TracingAPI.h
+include/mozjs-128/js/Transcoding.h
+include/mozjs-128/js/TypeDecls.h
+include/mozjs-128/js/UbiNode.h
+include/mozjs-128/js/UbiNodeBreadthFirst.h
+include/mozjs-128/js/UbiNodeCensus.h
+include/mozjs-128/js/UbiNodeDominatorTree.h
+include/mozjs-128/js/UbiNodePostOrder.h
+include/mozjs-128/js/UbiNodeShortestPaths.h
+include/mozjs-128/js/UbiNodeUtils.h
+include/mozjs-128/js/UniquePtr.h
+include/mozjs-128/js/Utility.h
+include/mozjs-128/js/Value.h
+include/mozjs-128/js/ValueArray.h
+include/mozjs-128/js/Vector.h
+include/mozjs-128/js/WaitCallbacks.h
+include/mozjs-128/js/Warnings.h
+include/mozjs-128/js/WasmFeatures.h
+include/mozjs-128/js/WasmModule.h
+include/mozjs-128/js/WeakMap.h
+include/mozjs-128/js/WeakMapPtr.h
+include/mozjs-128/js/Wrapper.h
+include/mozjs-128/js/WrapperCallbacks.h
+include/mozjs-128/js/Zone.h
+include/mozjs-128/js/experimental/CTypes.h
+include/mozjs-128/js/experimental/CodeCoverage.h
+include/mozjs-128/js/experimental/CompileScript.h
+include/mozjs-128/js/experimental/Intl.h
+include/mozjs-128/js/experimental/JSStencil.h
+include/mozjs-128/js/experimental/JitInfo.h
+include/mozjs-128/js/experimental/PCCountProfiling.h
+include/mozjs-128/js/experimental/SourceHook.h
+include/mozjs-128/js/experimental/TypedData.h
+include/mozjs-128/js/friend/DOMProxy.h
+include/mozjs-128/js/friend/DumpFunctions.h
+include/mozjs-128/js/friend/ErrorMessages.h
+include/mozjs-128/js/friend/ErrorNumbers.msg
+include/mozjs-128/js/friend/JSMEnvironment.h
+include/mozjs-128/js/friend/PerformanceHint.h
+include/mozjs-128/js/friend/StackLimits.h
+include/mozjs-128/js/friend/UsageStatistics.h
+include/mozjs-128/js/friend/WindowProxy.h
+include/mozjs-128/js/friend/XrayJitInfo.h
+include/mozjs-128/js/shadow/Function.h
+include/mozjs-128/js/shadow/Object.h
+include/mozjs-128/js/shadow/Realm.h
+include/mozjs-128/js/shadow/Shape.h
+include/mozjs-128/js/shadow/String.h
+include/mozjs-128/js/shadow/Symbol.h
+include/mozjs-128/js/shadow/Zone.h
+include/mozjs-128/jsapi.h
+include/mozjs-128/jsfriendapi.h
+include/mozjs-128/jspubtd.h
+include/mozjs-128/jstypes.h
+include/mozjs-128/malloc_decls.h
+include/mozjs-128/mozilla/Algorithm.h
+include/mozjs-128/mozilla/Alignment.h
+include/mozjs-128/mozilla/AllocPolicy.h
+include/mozjs-128/mozilla/AlreadyAddRefed.h
+include/mozjs-128/mozilla/Array.h
+include/mozjs-128/mozilla/ArrayUtils.h
+include/mozjs-128/mozilla/Assertions.h
+include/mozjs-128/mozilla/AtomicBitfields.h
+include/mozjs-128/mozilla/Atomics.h
+include/mozjs-128/mozilla/Attributes.h
+include/mozjs-128/mozilla/AutoProfilerLabel.h
+include/mozjs-128/mozilla/AwakeTimeStamp.h
+include/mozjs-128/mozilla/BaseAndGeckoProfilerDetail.h
+include/mozjs-128/mozilla/BaseProfileJSONWriter.h
+include/mozjs-128/mozilla/BaseProfilerCounts.h
+include/mozjs-128/mozilla/BaseProfilerDetail.h
+include/mozjs-128/mozilla/BaseProfilerLabels.h
+include/mozjs-128/mozilla/BaseProfilerMarkerTypes.h
+include/mozjs-128/mozilla/BaseProfilerMarkers.h
+include/mozjs-128/mozilla/BaseProfilerMarkersDetail.h
+include/mozjs-128/mozilla/BaseProfilerMarkersPrerequisites.h
+include/mozjs-128/mozilla/BaseProfilerRAIIMacro.h
+include/mozjs-128/mozilla/BaseProfilerState.h
+include/mozjs-128/mozilla/BaseProfilerUtils.h
+include/mozjs-128/mozilla/BinarySearch.h
+include/mozjs-128/mozilla/BitSet.h
+include/mozjs-128/mozilla/BloomFilter.h
+include/mozjs-128/mozilla/Buffer.h
+include/mozjs-128/mozilla/BufferList.h
+include/mozjs-128/mozilla/Casting.h
+include/mozjs-128/mozilla/ChaosMode.h
+include/mozjs-128/mozilla/Char16.h
+include/mozjs-128/mozilla/CheckedInt.h
+include/mozjs-128/mozilla/CompactPair.h
+include/mozjs-128/mozilla/Compiler.h
+include/mozjs-128/mozilla/Compression.h
+include/mozjs-128/mozilla/DbgMacro.h
+include/mozjs-128/mozilla/DebugOnly.h
+include/mozjs-128/mozilla/Decimal.h
+include/mozjs-128/mozilla/DefineEnum.h
+include/mozjs-128/mozilla/DoubleConversion.h
+include/mozjs-128/mozilla/DoublyLinkedList.h
+include/mozjs-128/mozilla/EndianUtils.h
+include/mozjs-128/mozilla/EnumSet.h
+include/mozjs-128/mozilla/EnumTypeTraits.h
+include/mozjs-128/mozilla/EnumeratedArray.h
+include/mozjs-128/mozilla/EnumeratedRange.h
+include/mozjs-128/mozilla/FStream.h
+include/mozjs-128/mozilla/FailureLatch.h
+include/mozjs-128/mozilla/FastBernoulliTrial.h
+include/mozjs-128/mozilla/FloatingPoint.h
+include/mozjs-128/mozilla/FunctionRef.h
+include/mozjs-128/mozilla/FunctionTypeTraits.h
+include/mozjs-128/mozilla/Fuzzing.h
+include/mozjs-128/mozilla/HashFunctions.h
+include/mozjs-128/mozilla/HashTable.h
+include/mozjs-128/mozilla/HelperMacros.h
+include/mozjs-128/mozilla/InitializedOnce.h
+include/mozjs-128/mozilla/IntegerPrintfMacros.h
+include/mozjs-128/mozilla/IntegerRange.h
+include/mozjs-128/mozilla/IntegerTypeTraits.h
+include/mozjs-128/mozilla/JSONWriter.h
+include/mozjs-128/mozilla/JsRust.h
+include/mozjs-128/mozilla/Latin1.h
+include/mozjs-128/mozilla/Likely.h
+include/mozjs-128/mozilla/LinkedList.h
+include/mozjs-128/mozilla/Literals.h
+include/mozjs-128/mozilla/MPSCQueue.h
+include/mozjs-128/mozilla/MacroArgs.h
+include/mozjs-128/mozilla/MacroForEach.h
+include/mozjs-128/mozilla/MathAlgorithms.h
+include/mozjs-128/mozilla/Maybe.h
+include/mozjs-128/mozilla/MaybeOneOf.h
+include/mozjs-128/mozilla/MaybeStorageBase.h
+include/mozjs-128/mozilla/MemoryChecking.h
+include/mozjs-128/mozilla/MemoryReporting.h
+include/mozjs-128/mozilla/MmapFaultHandler.h
+include/mozjs-128/mozilla/ModuloBuffer.h
+include/mozjs-128/mozilla/MoveOnlyFunction.h
+include/mozjs-128/mozilla/MruCache.h
+include/mozjs-128/mozilla/NeverDestroyed.h
+include/mozjs-128/mozilla/NonDereferenceable.h
+include/mozjs-128/mozilla/NotNull.h
+include/mozjs-128/mozilla/Opaque.h
+include/mozjs-128/mozilla/OperatorNewExtensions.h
+include/mozjs-128/mozilla/PairHash.h
+include/mozjs-128/mozilla/Path.h
+include/mozjs-128/mozilla/PlatformConditionVariable.h
+include/mozjs-128/mozilla/PlatformMutex.h
+include/mozjs-128/mozilla/PlatformRWLock.h
+include/mozjs-128/mozilla/PodOperations.h
+include/mozjs-128/mozilla/Poison.h
+include/mozjs-128/mozilla/PowerOfTwo.h
+include/mozjs-128/mozilla/Printf.h
+include/mozjs-128/mozilla/ProfileBufferChunk.h
+include/mozjs-128/mozilla/ProfileBufferChunkManager.h
+include/mozjs-128/mozilla/ProfileBufferChunkManagerSingle.h
+include/mozjs-128/mozilla/ProfileBufferChunkManagerWithLocalLimit.h
+include/mozjs-128/mozilla/ProfileBufferControlledChunkManager.h
+include/mozjs-128/mozilla/ProfileBufferEntryKinds.h
+include/mozjs-128/mozilla/ProfileBufferEntrySerialization.h
+include/mozjs-128/mozilla/ProfileBufferIndex.h
+include/mozjs-128/mozilla/ProfileChunkedBuffer.h
+include/mozjs-128/mozilla/ProfileChunkedBufferDetail.h
+include/mozjs-128/mozilla/ProfilerBufferSize.h
+include/mozjs-128/mozilla/ProgressLogger.h
+include/mozjs-128/mozilla/ProportionValue.h
+include/mozjs-128/mozilla/RandomNum.h
+include/mozjs-128/mozilla/Range.h
+include/mozjs-128/mozilla/RangedArray.h
+include/mozjs-128/mozilla/RangedPtr.h
+include/mozjs-128/mozilla/ReentrancyGuard.h
+include/mozjs-128/mozilla/RefCountType.h
+include/mozjs-128/mozilla/RefCounted.h
+include/mozjs-128/mozilla/RefPtr.h
+include/mozjs-128/mozilla/Result.h
+include/mozjs-128/mozilla/ResultExtensions.h
+include/mozjs-128/mozilla/ResultVariant.h
+include/mozjs-128/mozilla/ReverseIterator.h
+include/mozjs-128/mozilla/RollingMean.h
+include/mozjs-128/mozilla/SHA1.h
+include/mozjs-128/mozilla/SIMD.h
+include/mozjs-128/mozilla/SPSCQueue.h
+include/mozjs-128/mozilla/SSE.h
+include/mozjs-128/mozilla/Saturate.h
+include/mozjs-128/mozilla/ScopeExit.h
+include/mozjs-128/mozilla/SegmentedVector.h
+include/mozjs-128/mozilla/SharedLibrary.h
+include/mozjs-128/mozilla/SmallPointerArray.h
+include/mozjs-128/mozilla/Span.h
+include/mozjs-128/mozilla/SplayTree.h
+include/mozjs-128/mozilla/Sprintf.h
+include/mozjs-128/mozilla/StackWalk.h
+include/mozjs-128/mozilla/StaticAnalysisFunctions.h
+include/mozjs-128/mozilla/StringBuffer.h
+include/mozjs-128/mozilla/TaggedAnonymousMemory.h
+include/mozjs-128/mozilla/Tainting.h
+include/mozjs-128/mozilla/TemplateLib.h
+include/mozjs-128/mozilla/TextUtils.h
+include/mozjs-128/mozilla/ThreadLocal.h
+include/mozjs-128/mozilla/ThreadSafeWeakPtr.h
+include/mozjs-128/mozilla/ThreadSafety.h
+include/mozjs-128/mozilla/TimeStamp.h
+include/mozjs-128/mozilla/ToString.h
+include/mozjs-128/mozilla/Try.h
+include/mozjs-128/mozilla/TypedEnumBits.h
+include/mozjs-128/mozilla/Types.h
+include/mozjs-128/mozilla/UniquePtr.h
+include/mozjs-128/mozilla/UniquePtrExtensions.h
+include/mozjs-128/mozilla/Unused.h
+include/mozjs-128/mozilla/Uptime.h
+include/mozjs-128/mozilla/Utf8.h
+include/mozjs-128/mozilla/Variant.h
+include/mozjs-128/mozilla/Vector.h
+include/mozjs-128/mozilla/WeakPtr.h
+include/mozjs-128/mozilla/WrappingOperations.h
+include/mozjs-128/mozilla/XorShift128PlusRNG.h
+include/mozjs-128/mozilla/cxxalloc.h
+include/mozjs-128/mozilla/fallible.h
+include/mozjs-128/mozilla/glue/Debug.h
+include/mozjs-128/mozilla/glue/WinUtils.h
+include/mozjs-128/mozilla/intl/Bidi.h
+include/mozjs-128/mozilla/intl/BidiClass.h
+include/mozjs-128/mozilla/intl/BidiEmbeddingLevel.h
+include/mozjs-128/mozilla/intl/Calendar.h
+include/mozjs-128/mozilla/intl/Collator.h
+include/mozjs-128/mozilla/intl/Currency.h
+include/mozjs-128/mozilla/intl/DateIntervalFormat.h
+include/mozjs-128/mozilla/intl/DateTimeFormat.h
+include/mozjs-128/mozilla/intl/DateTimePart.h
+include/mozjs-128/mozilla/intl/DateTimePatternGenerator.h
+include/mozjs-128/mozilla/intl/DisplayNames.h
+include/mozjs-128/mozilla/intl/FormatBuffer.h
+include/mozjs-128/mozilla/intl/GeneralCategory.h
+include/mozjs-128/mozilla/intl/ICU4CGlue.h
+include/mozjs-128/mozilla/intl/ICU4CLibrary.h
+include/mozjs-128/mozilla/intl/ICU4XGeckoDataProvider.h
+include/mozjs-128/mozilla/intl/ICUError.h
+include/mozjs-128/mozilla/intl/IDNA.h
+include/mozjs-128/mozilla/intl/ListFormat.h
+include/mozjs-128/mozilla/intl/Locale.h
+include/mozjs-128/mozilla/intl/LocaleCanonicalizer.h
+include/mozjs-128/mozilla/intl/MeasureUnit.h
+include/mozjs-128/mozilla/intl/MeasureUnitGenerated.h
+include/mozjs-128/mozilla/intl/NumberFormat.h
+include/mozjs-128/mozilla/intl/NumberParser.h
+include/mozjs-128/mozilla/intl/NumberPart.h
+include/mozjs-128/mozilla/intl/NumberRangeFormat.h
+include/mozjs-128/mozilla/intl/NumberingSystem.h
+include/mozjs-128/mozilla/intl/PluralRules.h
+include/mozjs-128/mozilla/intl/RelativeTimeFormat.h
+include/mozjs-128/mozilla/intl/String.h
+include/mozjs-128/mozilla/intl/TimeZone.h
+include/mozjs-128/mozilla/intl/UnicodeProperties.h
+include/mozjs-128/mozilla/intl/UnicodeScriptCodes.h
+include/mozjs-128/mozilla/leb128iterator.h
+include/mozjs-128/mozilla/mozalloc.h
+include/mozjs-128/mozilla/mozalloc_abort.h
+include/mozjs-128/mozilla/mozalloc_oom.h
+include/mozjs-128/mozjemalloc_types.h
+include/mozjs-128/mozmemory.h
+include/mozjs-128/mozmemory_utils.h
+include/mozjs-128/mozmemory_wrap.h
+lib/libmozjs-128.so
+lib/libmozjs-128.so.0
+lib/libmozjs-128.so.0.0.0
+lib/pkgconfig/mozjs-128.pc
Index: pkgsrc/lang/mozjs128/PLIST.Linux
diff -u /dev/null pkgsrc/lang/mozjs128/PLIST.Linux:1.1
--- /dev/null   Mon Aug 26 13:53:42 2024
+++ pkgsrc/lang/mozjs128/PLIST.Linux    Mon Aug 26 13:53:41 2024
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST.Linux,v 1.1 2024/08/26 13:53:41 ryoon Exp $
+include/mozjs-128/mozilla/LinuxSignal.h
Index: pkgsrc/lang/mozjs128/buildlink3.mk
diff -u /dev/null pkgsrc/lang/mozjs128/buildlink3.mk:1.1
--- /dev/null   Mon Aug 26 13:53:42 2024
+++ pkgsrc/lang/mozjs128/buildlink3.mk  Mon Aug 26 13:53:41 2024
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2024/08/26 13:53:41 ryoon Exp $
+
+BUILDLINK_TREE+=       mozjs128
+
+.if !defined(MOZJS128_BUILDLINK3_MK)
+MOZJS128_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.mozjs128+=       mozjs128>=128.1.0
+BUILDLINK_PKGSRCDIR.mozjs128?= ../../lang/mozjs128
+
+.endif # MOZJS128_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -mozjs128
Index: pkgsrc/lang/mozjs128/distinfo
diff -u /dev/null pkgsrc/lang/mozjs128/distinfo:1.1
--- /dev/null   Mon Aug 26 13:53:42 2024
+++ pkgsrc/lang/mozjs128/distinfo       Mon Aug 26 13:53:41 2024
@@ -0,0 +1,12 @@
+$NetBSD: distinfo,v 1.1 2024/08/26 13:53:41 ryoon Exp $
+
+BLAKE2s (firefox-128.1.0esr.source.tar.xz) = 281774e06fb58430bd45aab1ce9600e4f9aa8ba5784f96988620131da7ac5bf4
+SHA512 (firefox-128.1.0esr.source.tar.xz) = 8055a7f83acf0cab6124ba5809aff1c082e81a0d30ff318ec719f8fd3f4af9aa60e2094c1abd6c981193d751075a9569370176e20e50f3c1959fe27a15511388
+Size (firefox-128.1.0esr.source.tar.xz) = 561953208 bytes
+SHA1 (patch-js_moz.configure) = f7492cb2b45c6728592a2ae4753f17970d7ca429
+SHA1 (patch-js_public_Utility.h) = bb5464a0398b91693ab362e6b9b06d48429b9e7d
+SHA1 (patch-js_src_jit_FlushICache.cpp) = d1e611eaf7d7be22abfac6b39fbcd99df3570e47
+SHA1 (patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp) = d90fca47d79551fd74214d47f8184670b901b792
+SHA1 (patch-js_src_old-configure.in) = 589e24765615ede2c3c6abfe0b3529c5645193ed
+SHA1 (patch-js_src_util_NativeStack.cpp) = a0a16d8d8d78d3cc3f4d2a508586f1a7821f7dba
+SHA1 (patch-js_src_vm_TypedArrayObject-inl.h) = 65e1dee34fa5e9f9d1424390f3baf6c0c070617b

Index: pkgsrc/lang/mozjs128/patches/patch-js_moz.configure
diff -u /dev/null pkgsrc/lang/mozjs128/patches/patch-js_moz.configure:1.1
--- /dev/null   Mon Aug 26 13:53:42 2024
+++ pkgsrc/lang/mozjs128/patches/patch-js_moz.configure Mon Aug 26 13:53:42 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-js_moz.configure,v 1.1 2024/08/26 13:53:42 ryoon Exp $
+
+Check ${PREFIX} to allow use of non-builtin readlink libraries.
+
+--- js/moz.configure.orig      2024-08-10 13:08:57.707589518 +0000
++++ js/moz.configure
+@@ -1255,7 +1255,7 @@ option(
+ 
+ has_readline = check_symbol(
+     "readline",
+-    flags=["-lreadline"],
++    flags=["-lreadline", '-L@PREFIX@/lib'],
+     when="--enable-readline",
+     onerror=lambda: die("No system readline library found"),
+ )
Index: pkgsrc/lang/mozjs128/patches/patch-js_public_Utility.h
diff -u /dev/null pkgsrc/lang/mozjs128/patches/patch-js_public_Utility.h:1.1
--- /dev/null   Mon Aug 26 13:53:42 2024
+++ pkgsrc/lang/mozjs128/patches/patch-js_public_Utility.h      Mon Aug 26 13:53:42 2024
@@ -0,0 +1,27 @@
+$NetBSD: patch-js_public_Utility.h,v 1.1 2024/08/26 13:53:42 ryoon Exp $
+
+- kludge to build on NetBSD/i386 10.0
+  https://mail-index.netbsd.org/pkgsrc-users/2024/07/16/msg039900.html
+
+--- js/public/Utility.h.orig   2024-07-04 17:04:15.000000000 +0000
++++ js/public/Utility.h
+@@ -482,9 +482,6 @@ static inline void js_free(void* p) {
+ #define JS_DECLARE_NEW_METHODS(NEWNAME, ALLOCATOR, QUALIFIERS)              \
+   template <class T, typename... Args>                                      \
+   QUALIFIERS T* MOZ_HEAP_ALLOCATOR NEWNAME(Args&&... args) {                \
+-    static_assert(                                                          \
+-        alignof(T) <= alignof(max_align_t),                                 \
+-        "over-aligned type is not supported by JS_DECLARE_NEW_METHODS");    \
+     void* memory = ALLOCATOR(sizeof(T));                                    \
+     return MOZ_LIKELY(memory) ? new (memory) T(std::forward<Args>(args)...) \
+                               : nullptr;                                    \
+@@ -501,9 +498,6 @@ static inline void js_free(void* p) {
+ #define JS_DECLARE_NEW_ARENA_METHODS(NEWNAME, ALLOCATOR, QUALIFIERS)           \
+   template <class T, typename... Args>                                         \
+   QUALIFIERS T* MOZ_HEAP_ALLOCATOR NEWNAME(arena_id_t arena, Args&&... args) { \
+-    static_assert(                                                             \
+-        alignof(T) <= alignof(max_align_t),                                    \
+-        "over-aligned type is not supported by JS_DECLARE_NEW_ARENA_METHODS"); \
+     void* memory = ALLOCATOR(arena, sizeof(T));                                \
+     return MOZ_LIKELY(memory) ? new (memory) T(std::forward<Args>(args)...)    \
+                               : nullptr;                                       \
Index: pkgsrc/lang/mozjs128/patches/patch-js_src_jit_FlushICache.cpp
diff -u /dev/null pkgsrc/lang/mozjs128/patches/patch-js_src_jit_FlushICache.cpp:1.1
--- /dev/null   Mon Aug 26 13:53:42 2024
+++ pkgsrc/lang/mozjs128/patches/patch-js_src_jit_FlushICache.cpp       Mon Aug 26 13:53:42 2024
@@ -0,0 +1,34 @@
+$NetBSD: patch-js_src_jit_FlushICache.cpp,v 1.1 2024/08/26 13:53:42 ryoon Exp $
+
+NetBSD does not have the Linux-specific membarrier(2) syscall.
+
+--- js/src/jit/FlushICache.cpp.orig    2023-08-15 20:31:19.000000000 +0000
++++ js/src/jit/FlushICache.cpp
+@@ -31,12 +31,18 @@
+ #    elif defined(__android__)
+ #      include <sys/syscall.h>
+ #      include <unistd.h>
++#    elif defined(__NetBSD__)
++       // nothing
+ #    else
+ #      error "Missing platform-specific declarations for membarrier syscall!"
+ #    endif  // __linux__ / ANDROID
+ 
+ static int membarrier(int cmd, int flags) {
++#if defined(__NetBSD__)
++  return ENOSYS;
++#else
+   return syscall(__NR_membarrier, cmd, flags);
++#endif
+ }
+ 
+ // These definitions come from the Linux kernel source, for kernels before 4.16
+@@ -92,6 +98,8 @@ bool CanFlushExecutionContextForAllThrea
+ 
+   computed = true;
+   return kernelHasMembarrier;
++#  elif defined(__NetBSD__)
++  return false;
+ #  else
+   // On other platforms, we assume that the syscall for flushing the icache
+   // will flush the execution context for other cores.
Index: pkgsrc/lang/mozjs128/patches/patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp
diff -u /dev/null pkgsrc/lang/mozjs128/patches/patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp:1.1
--- /dev/null   Mon Aug 26 13:53:42 2024
+++ pkgsrc/lang/mozjs128/patches/patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp    Mon Aug 26 13:53:42 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp,v 1.1 2024/08/26 13:53:42 ryoon Exp $
+
+Add NetBSD support.
+
+--- js/src/jit/arm64/vixl/MozCpu-vixl.cpp.orig 2024-02-13 14:50:57.324257195 +0000
++++ js/src/jit/arm64/vixl/MozCpu-vixl.cpp
+@@ -110,7 +110,7 @@ void CPU::EnsureIAndDCacheCoherency(void
+   FlushInstructionCache(GetCurrentProcess(), address, length);
+ #elif defined(XP_DARWIN)
+   sys_icache_invalidate(address, length);
+-#elif defined(__aarch64__) && (defined(__linux__) || defined(__android__) || defined(__FreeBSD__))
++#elif defined(__aarch64__) && (defined(__linux__) || defined(__android__) || defined(__FreeBSD__) || defined(__NetBSD__))
+   // Implement the cache synchronisation for all targets where AArch64 is the
+   // host, even if we're building the simulator for an AAarch64 host. This
+   // allows for cases where the user wants to simulate code as well as run it
Index: pkgsrc/lang/mozjs128/patches/patch-js_src_old-configure.in
diff -u /dev/null pkgsrc/lang/mozjs128/patches/patch-js_src_old-configure.in:1.1
--- /dev/null   Mon Aug 26 13:53:42 2024
+++ pkgsrc/lang/mozjs128/patches/patch-js_src_old-configure.in  Mon Aug 26 13:53:42 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-js_src_old-configure.in,v 1.1 2024/08/26 13:53:42 ryoon Exp $
+
+Fix unportable test(1) operator.
+
+--- js/src/old-configure.in.orig       2024-07-14 16:00:40.315149382 +0000
++++ js/src/old-configure.in
+@@ -257,7 +257,7 @@ case "$target" in
+ 
+ *-android*|*-linuxandroid*)
+     MOZ_OPTIMIZE_FLAGS="-O3"
+-    if test "$CC_TYPE" == gcc ; then
++    if test "$CC_TYPE" = gcc ; then
+        MOZ_OPTIMIZE_FLAGS="-fno-reorder-functions $MOZ_OPTIMIZE_FLAGS"
+     fi
+     ;;
Index: pkgsrc/lang/mozjs128/patches/patch-js_src_util_NativeStack.cpp
diff -u /dev/null pkgsrc/lang/mozjs128/patches/patch-js_src_util_NativeStack.cpp:1.1
--- /dev/null   Mon Aug 26 13:53:42 2024
+++ pkgsrc/lang/mozjs128/patches/patch-js_src_util_NativeStack.cpp      Mon Aug 26 13:53:42 2024
@@ -0,0 +1,32 @@
+$NetBSD: patch-js_src_util_NativeStack.cpp,v 1.1 2024/08/26 13:53:42 ryoon Exp $
+
+Support SunOS.
+
+--- js/src/util/NativeStack.cpp.orig   2020-04-03 19:34:51.000000000 +0000
++++ js/src/util/NativeStack.cpp
+@@ -13,7 +13,7 @@
+ #  if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+ #    include <pthread_np.h>
+ #  endif
+-#  if defined(SOLARIS) || defined(AIX)
++#  if defined(__sun) || defined(AIX)
+ #    include <ucontext.h>
+ #  endif
+ #  if defined(ANDROID) && !defined(__aarch64__)
+@@ -40,7 +40,7 @@ void* js::GetNativeStackBaseImpl() {
+   return static_cast<void*>(pTib->StackBase);
+ }
+ 
+-#elif defined(SOLARIS)
++#elif defined(__sun)
+ 
+ static_assert(JS_STACK_GROWTH_DIRECTION < 0);
+ 
+@@ -128,6 +128,7 @@ void* js::GetNativeStackBaseImpl() {
+ #    elif defined(PTHREAD_NP_H) || defined(_PTHREAD_NP_H_) || defined(NETBSD)
+   /* e.g. on FreeBSD 4.8 or newer, neundorf%kde.org@localhost */
+   pthread_attr_get_np(thread, &sattr);
++#    elif defined(__sun)
+ #    else
+   /*
+    * FIXME: this function is non-portable;
Index: pkgsrc/lang/mozjs128/patches/patch-js_src_vm_TypedArrayObject-inl.h
diff -u /dev/null pkgsrc/lang/mozjs128/patches/patch-js_src_vm_TypedArrayObject-inl.h:1.1
--- /dev/null   Mon Aug 26 13:53:42 2024
+++ pkgsrc/lang/mozjs128/patches/patch-js_src_vm_TypedArrayObject-inl.h Mon Aug 26 13:53:42 2024
@@ -0,0 +1,17 @@
+$NetBSD: patch-js_src_vm_TypedArrayObject-inl.h,v 1.1 2024/08/26 13:53:42 ryoon Exp $
+
+- kludge to build on NetBSD/i386 10.0
+  https://mail-index.netbsd.org/pkgsrc-users/2024/07/16/msg039900.html
+
+--- js/src/vm/TypedArrayObject-inl.h.orig      2024-07-25 20:34:47.000000000 +0000
++++ js/src/vm/TypedArrayObject-inl.h
+@@ -404,7 +404,9 @@ class ElementSpecific {
+     // `malloc` returns memory at least as strictly aligned as for max_align_t
+     // and the alignment of max_align_t is a multiple of the size of `T`,
+     // so `SharedMem::cast` will be called with properly aligned memory.
++#if !defined(__i386__)
+     static_assert(alignof(std::max_align_t) % sizeof(T) == 0);
++#endif
+ 
+     SharedMem<T*> dest =
+         target->dataPointerEither().template cast<T*>() + offset;



Home | Main Index | Thread Index | Old Index