pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/firefox



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Nov 28 22:54:26 UTC 2026

Modified Files:
        pkgsrc/www/firefox: distinfo
Added Files:
        pkgsrc/www/firefox/patches:
            patch-build_moz.configure_libraries.configure

Log Message:
firefox: link directly against librt for shm_open

Related to PR 61079.


To generate a diff of this commit:
cvs rdiff -u -r1.599 -r1.600 pkgsrc/www/firefox/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/www/firefox/patches/patch-build_moz.configure_libraries.configure

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

Modified files:

Index: pkgsrc/www/firefox/distinfo
diff -u pkgsrc/www/firefox/distinfo:1.599 pkgsrc/www/firefox/distinfo:1.600
--- pkgsrc/www/firefox/distinfo:1.599   Thu Nov  5 03:16:51 2026
+++ pkgsrc/www/firefox/distinfo Sat Nov 28 22:54:26 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.599 2026/11/05 03:16:51 gutteridge Exp $
+$NetBSD: distinfo,v 1.600 2026/11/28 22:54:26 wiz Exp $
 
 BLAKE2s (firefox-159.0.1.source.tar.xz) = f720bec1d79e3d1e406faa90dbfdf1bb5902908aacabd2fdd26a911ab86b2d55
 SHA512 (firefox-159.0.1.source.tar.xz) = e7375c0c18361b22fa1d2e6fd5f6a4ff20b22e7090a64bf32d7ef79edb0a649983439b8e6e80106fe51bb96699bdd3096c921fe198d1b460193a66d6d8f227a4
@@ -9,6 +9,7 @@ Size (nodejs-output-156.0.1.tgz) = 25138
 SHA1 (patch-browser_app_profile_firefox.js) = 1168ba368c5ffdcf77e330366848466f48a92642
 SHA1 (patch-build_gn__processor.py) = c9b2f31787704c3fec466711010ef632199ae385
 SHA1 (patch-build_moz.configure_init.configure) = 65deb3c233df0aab81eb1fca05d708e5a4ed169a
+SHA1 (patch-build_moz.configure_libraries.configure) = dc4a449317aacf1dbaec58e0b64503143104b89a
 SHA1 (patch-build_moz.configure_rust.configure) = 25ddfacd29cebbc6db005dbe61a2a7446d480678
 SHA1 (patch-config_gcc-stl-wrapper.template.h) = 9360a859e71ebfbead97c0bfbb5153cb2184381a
 SHA1 (patch-config_makefiles_rust.mk) = 2e1c6093090b5d49700f381ad7f2d64bc9931ea4

Added files:

Index: pkgsrc/www/firefox/patches/patch-build_moz.configure_libraries.configure
diff -u /dev/null pkgsrc/www/firefox/patches/patch-build_moz.configure_libraries.configure:1.1
--- /dev/null   Sat Nov 28 22:54:27 2026
+++ pkgsrc/www/firefox/patches/patch-build_moz.configure_libraries.configure    Sat Nov 28 22:54:26 2026
@@ -0,0 +1,54 @@
+$NetBSD: patch-build_moz.configure_libraries.configure,v 1.1 2026/11/28 22:54:26 wiz Exp $
+
+Check for shm_open in librt, needed on at least NetBSD.
+
+--- build/moz.configure/libraries.configure.orig       2026-11-26 21:07:34.327275688 +0000
++++ build/moz.configure/libraries.configure
+@@ -4,6 +4,28 @@
+ 
+ 
+ @template
++def check_shm_open(lib=None, when=None):
++    check_msg = "for shm_open"
++    flags = []
++
++    if lib is not None:
++        check_msg += f" in {lib}"
++        flags.append(f"-l{lib}")
++
++    check_when = building_with_gnu_compatible_cc
++    if when is not None:
++        check_when &= when
++
++    return try_link(
++        includes=["sys/types.h", "sys/mman.h", "fcntl.h"],
++        body="shm_open(\"shmtest\", O_RDONLY|O_CREAT, 0444);",
++        check_msg=check_msg,
++        flags=flags,
++        when=check_when,
++    )
++
++
++@template
+ def check_clock_monotonic_support(lib=None, when=None):
+     check_msg = "for clock_gettime(CLOCK_MONOTONIC)"
+     flags = []
+@@ -30,6 +52,9 @@ have_rt_clock_monotonic_support = check_clock_monotoni
+     lib="rt", when=~have_raw_clock_monotonic_support
+ )
+ 
++have_raw_shm_open = check_shm_open()
++have_rt_shm_open = check_shm_open(lib="rt", when=~have_raw_shm_open)
++
+ set_define(
+     "HAVE_CLOCK_MONOTONIC",
+     have_raw_clock_monotonic_support | have_rt_clock_monotonic_support,
+@@ -39,7 +64,7 @@ set_config(
+     have_raw_clock_monotonic_support | have_rt_clock_monotonic_support,
+ )
+ 
+-set_config("REALTIME_LIBS", ["-lrt"], when=have_rt_clock_monotonic_support)
++set_config("REALTIME_LIBS", ["-lrt"], when=have_rt_clock_monotonic_support | have_rt_shm_open)
+ 
+ 
+ have_res_ninit = try_link(



Home | Main Index | Thread Index | Old Index