pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/palemoon



Module Name:    pkgsrc
Committed By:   martin
Date:           Sun Dec 14 18:05:18 UTC 2025

Modified Files:
        pkgsrc/www/palemoon: Makefile distinfo
Added Files:
        pkgsrc/www/palemoon/patches:
            patch-platform_layout_base_FrameProperties.h

Log Message:
Fix a crash on big endian 32bit platforms


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 pkgsrc/www/palemoon/Makefile
cvs rdiff -u -r1.33 -r1.34 pkgsrc/www/palemoon/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/www/palemoon/patches/patch-platform_layout_base_FrameProperties.h

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

Modified files:

Index: pkgsrc/www/palemoon/Makefile
diff -u pkgsrc/www/palemoon/Makefile:1.43 pkgsrc/www/palemoon/Makefile:1.44
--- pkgsrc/www/palemoon/Makefile:1.43   Thu Oct 23 20:39:49 2025
+++ pkgsrc/www/palemoon/Makefile        Sun Dec 14 18:05:18 2025
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.43 2025/10/23 20:39:49 wiz Exp $
+# $NetBSD: Makefile,v 1.44 2025/12/14 18:05:18 martin Exp $
 # for build instructions see
 # https://developer.palemoon.org/build/linux/
 
 PKGNAME=       palemoon-33.9.1
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    www
 
 DIST_SUBDIR=   palemoon-${PKGVERSION_NOREV}
@@ -62,7 +62,10 @@ CONFIGURE_ARGS+=     --enable-jxl
 CONFIGURE_ARGS+=       --disable-webrtc
 CONFIGURE_ARGS+=       --disable-gamepad
 CONFIGURE_ARGS+=       --disable-tests
-CONFIGURE_ARGS+=       --disable-debug
+#CONFIGURE_ARGS+=      --disable-debug
+CONFIGURE_ARGS+=       --enable-debug-symbols
+CONFIGURE_ARGS+=       --enable-optimize=-O2
+CONFIGURE_ARGS+=       --disable-install-strip
 CONFIGURE_ARGS+=       --disable-necko-wifi
 CONFIGURE_ARGS+=       --disable-updater
 CONFIGURE_ARGS+=       --with-pthreads

Index: pkgsrc/www/palemoon/distinfo
diff -u pkgsrc/www/palemoon/distinfo:1.33 pkgsrc/www/palemoon/distinfo:1.34
--- pkgsrc/www/palemoon/distinfo:1.33   Sun Dec  7 13:58:58 2025
+++ pkgsrc/www/palemoon/distinfo        Sun Dec 14 18:05:18 2025
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.33 2025/12/07 13:58:58 martin Exp $
+$NetBSD: distinfo,v 1.34 2025/12/14 18:05:18 martin Exp $
 
 BLAKE2s (palemoon-33.9.1/icudt63b.dat.gz) = 609cc504b54df324a891aa9531ab069b3699591bf49b989e792479df33262a92
 SHA512 (palemoon-33.9.1/icudt63b.dat.gz) = 514b8bfe28fb54e1e26b9140d4b3065504a0b0284fded121f26c4e0f13697154a54da4a7c85a0fa0b9dae2e5b452aff4df138228c28ed80969ec0ac33b0ad0b2
@@ -20,6 +20,7 @@ SHA1 (patch-platform_gfx_angle_src_libAN
 SHA1 (patch-platform_intl_icu_source_configure) = 87d19e9212b4340d9b052b5a89be84432ad1cff2
 SHA1 (patch-platform_ipc_chromium_src_base_atomicops.h) = ab4b489e9f9c22a861a275924ef34a909d210828
 SHA1 (patch-platform_ipc_chromium_src_base_atomicops__internals__arm__gcc.h) = f33b6c391689c52d0a6855e29ff25d863a7f15e5
+SHA1 (patch-platform_layout_base_FrameProperties.h) = 400fca775e5bdf2595fbd02ca8679b15988a66d0
 SHA1 (patch-platform_media_ffvpx_config.h) = 7d42a3cbcb10818b2d2d890a6fcc9ec7b6b05ec1
 SHA1 (patch-platform_media_ffvpx_config__unix__sparc64.h) = bbecefd480ab7bc20206bd46ef918fcedbd700f5
 SHA1 (patch-platform_media_libaom_config_linux_arm_config_aom__config.h) = 69ef22fe9892c2288accb6eb00b4533d8cee0299

Added files:

Index: pkgsrc/www/palemoon/patches/patch-platform_layout_base_FrameProperties.h
diff -u /dev/null pkgsrc/www/palemoon/patches/patch-platform_layout_base_FrameProperties.h:1.1
--- /dev/null   Sun Dec 14 18:05:18 2025
+++ pkgsrc/www/palemoon/patches/patch-platform_layout_base_FrameProperties.h    Sun Dec 14 18:05:18 2025
@@ -0,0 +1,47 @@
+$NetBSD: patch-platform_layout_base_FrameProperties.h,v 1.1 2025/12/14 18:05:18 martin Exp $
+
+Fix crash on big endian 32bit platforms.
+Just start the browser and press F12 for dev tools.
+
+--- platform/layout/base/FrameProperties.h.orig        2025-10-15 19:46:52.000000000 +0200
++++ platform/layout/base/FrameProperties.h     2025-12-14 09:14:24.451706944 +0100
+@@ -310,15 +310,35 @@
+ 
+     static uint64_t ToInternalValue(PropertyType<T> aValue)
+     {
+-      uint64_t v = 0;
+-      memcpy(&v, &aValue, sizeof(aValue));
+-      return v;
++#ifndef _LP64
++      if (sizeof(PropertyType<T>) <= sizeof(uint32_t)) {
++          // make sure to loose the unimportant half on 32bit architectures
++          uint32_t v = 0;
++        memcpy(&v, &aValue, sizeof(aValue));
++        return v;
++      } else {
++#endif
++          uint64_t v = 0;
++          memcpy(&v, &aValue, sizeof(aValue));
++          return v;
++#ifndef _LP64
++      }
++#endif
+     }
+ 
+     static PropertyType<T> FromInternalValue(uint64_t aInternalValue)
+     {
+       PropertyType<T> value;
+-      memcpy(&value, &aInternalValue, sizeof(value));
++#ifndef _LP64
++      if (sizeof(value) <= sizeof(uint32_t)) {
++          uint32_t v32 = (uint32_t)aInternalValue;
++        memcpy(&value, &v32, sizeof(value));
++      } else {
++#endif
++          memcpy(&value, &aInternalValue, sizeof(value));
++#ifndef _LP64
++      }
++#endif
+       return value;
+     }
+   };



Home | Main Index | Thread Index | Old Index