summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-util/codex/Manifest4
-rw-r--r--dev-util/codex/codex-0.156.0.ebuild (renamed from dev-util/codex/codex-0.155.0.ebuild)0
-rw-r--r--media-libs/libsdl3/libsdl3-3.4.16.ebuild2
-rw-r--r--media-libs/vips/vips-8.18.6.ebuild2
-rw-r--r--www-client/librewolf-bin/Manifest6
-rw-r--r--www-client/librewolf-bin/librewolf-bin-155.0_p1.ebuild321
-rw-r--r--www-client/librewolf-bin/librewolf-bin-156.0.1_p1.ebuild (renamed from www-client/librewolf-bin/librewolf-bin-155.0.1_p1.ebuild)0
-rw-r--r--www-client/librewolf/Manifest6
-rw-r--r--www-client/librewolf/librewolf-155.0_p1.ebuild1321
-rw-r--r--www-client/librewolf/librewolf-156.0.1_p1.ebuild (renamed from www-client/librewolf/librewolf-155.0.1_p1.ebuild)11
-rw-r--r--x11-libs/motif/files/motif-2.5.2-DrawLine.patch22
-rw-r--r--x11-libs/motif/motif-2.5.2-r2.ebuild (renamed from x11-libs/motif/motif-2.5.2-r1.ebuild)5
12 files changed, 39 insertions, 1661 deletions
diff --git a/dev-util/codex/Manifest b/dev-util/codex/Manifest
index b7f8cf72330f..77446a102858 100644
--- a/dev-util/codex/Manifest
+++ b/dev-util/codex/Manifest
@@ -1,6 +1,6 @@
DIST cloudflare-zlib-sys-0.3.6.crate 147199 BLAKE2B b7089d328048b838fd9003f14cd9bddb720507a3426bd3a99ab70aa32dabee44078d6e9f9cc0171d7674ebf084fdd60776063e6976d5bd9ae61b2943c94c00d1 SHA512 c0064ab7dda47088450b3abd0ac12981e1db44564e7acf03af0836f9a9c54310cac5f93dd0cbc64c32749ea9cfe899ead81533f630dd00f5e29e9c6ef7150e6e
-DIST codex-0.155.0.tar.gz 14486537 BLAKE2B 10250cbe0259df03f21d140ef3d6baa4c56711332756f53b90b4405bcf03641f5931d11d935a047c8970e913cd4e7941ff8fe8da1c2e3fd61b6bd7b0553f1e69 SHA512 cf276e946d0fd65bfa8f8cf420319a152d87b069f0e1d233d74bd8e3f1f966b6f46793959ec4aaac8ebdd70700c41bc5514fa757677d172a7a1f8d89c6f4f68b
-DIST codex-rust-v0.155.0-crates.tar.xz 157941648 BLAKE2B fd3afda982a21c614e0eb96fc2f37aad83b4bc01a815c1664341d05d88e7a0eb52ef5259c3b60e2669ccf4daa6aebada9e74de79f993c1255919d9bf432866e6 SHA512 9939652cf897eae7178785aca31c8cde52facc38425e496eca7904f6263f96b5cf64f815fa3d368b322ea8d241bc8737ecd1dd25b1d01e51364811ded7c2dc29
+DIST codex-0.156.0.tar.gz 15838789 BLAKE2B 2a5a198d8fd66abf39f5f82ae7d2d810875970f31fb49b2032e7be9b69fef42153f2ffe4663f7d1174eada52f85080e2c22bdd6410d02da1ddeb660ba73ce73e SHA512 e50430d2fab4898feaeeda5c51e790c38f55b2837c087ac7c5b5a552add491276c9cfecc4c72927a2d68b89eafcab2a933a390910f7752dcfc9ac3ddcc84fa5a
+DIST codex-rust-v0.156.0-crates.tar.xz 158178052 BLAKE2B 878048fd7831cab2e226d72370246d86e8eba923aff2b04dda017bc843c3b35d284ace60ea1f75d9c986e3c1c3d405da25430c9236b9bddb08a9aa8578de44f5 SHA512 1f3d8195db2fd4968e125b551ef2ef28cc7c64b46ddcba36c87df5be30767f02f1397f653967757f86606f654a1f21f4579c2d7072db89be524a8e6a9ae98c46
DIST crossterm-45fecb9508105988f42fe6ff0441783ed3717f92.gh.tar.gz 144786 BLAKE2B 18577acd2586a50723657e77b304d7bd309208d7ce597d315d13d7e36c90ac08f15510053ad1e927798b0edabc75fc8e54f1f2ac4978215084c0cf84573193e8 SHA512 aa5fd475a306000032fa0a68c758d81056920c68fd001ce632e0fbc11d70efd37def5786a677f3f4cd2e17b76672eda6bb53a517ba90a18e8dc312c390987786
DIST libz-ng-sys-1.1.16.crate 478122 BLAKE2B 7c1be97251029732cd3a8c77dad8a492193282b5fddf40df480ef3a35a49f5d25c7dc183d81aa267722276156c8b97243742117686d078f2d3a566546fa83d58 SHA512 c7d1b062a06b283ee2d398ff456f13634ed1d2d436ea2b8a55f19fbbad47bc419e068b0f9e805221321062b8c5ad309dd3e5d466741780549ae3e5299eee06e1
DIST libz-sys-1.1.20.crate 830422 BLAKE2B 26265b1faf04f7d0cfd751ddf003585b1be59fcf8fde3ddfd86f18cc3e2d5c3b62a808f47c01329a57759d14fe6283cd94a72eda46d5c5031249df0f1696ab03 SHA512 9b537e7c01553e782be145223c6d174601ade3a950bfd0eb4ea09658da5b8910cf0d0c5984672f9d198f73d5aa63d21e0c20c4c44ff7d0a017ee11ae4ecf4859
diff --git a/dev-util/codex/codex-0.155.0.ebuild b/dev-util/codex/codex-0.156.0.ebuild
index e4cd743774c1..e4cd743774c1 100644
--- a/dev-util/codex/codex-0.155.0.ebuild
+++ b/dev-util/codex/codex-0.156.0.ebuild
diff --git a/media-libs/libsdl3/libsdl3-3.4.16.ebuild b/media-libs/libsdl3/libsdl3-3.4.16.ebuild
index b9517251c44d..5d658b5f56da 100644
--- a/media-libs/libsdl3/libsdl3-3.4.16.ebuild
+++ b/media-libs/libsdl3/libsdl3-3.4.16.ebuild
@@ -12,7 +12,7 @@ S=${WORKDIR}/SDL3-${PV}
LICENSE="ZLIB"
SLOT="0"
-KEYWORDS="~amd64 ~arm arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~sparc x86"
IUSE="
X alsa aqua bidi dbus doc ibus io-uring jack kms opengl oss
diff --git a/media-libs/vips/vips-8.18.6.ebuild b/media-libs/vips/vips-8.18.6.ebuild
index d5deb973e169..9388cd22d5cd 100644
--- a/media-libs/vips/vips-8.18.6.ebuild
+++ b/media-libs/vips/vips-8.18.6.ebuild
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/libvips/libvips/releases/download/v${PV}/${P}.tar.xz
LICENSE="LGPL-2.1+ MIT"
SLOT="0/42" # soname
-KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+KEYWORDS="amd64 ~arm64 ~riscv ~x86"
IUSE="
archive deprecated doc exif fftw fits fontconfig graphicsmagick
heif +highway imagemagick imagequant +introspection +jpeg jpeg2k
diff --git a/www-client/librewolf-bin/Manifest b/www-client/librewolf-bin/Manifest
index 322d90e38ecd..d9dcfde46d84 100644
--- a/www-client/librewolf-bin/Manifest
+++ b/www-client/librewolf-bin/Manifest
@@ -1,6 +1,4 @@
-DIST librewolf-155.0-1-linux-arm64-package.tar.xz 89404648 BLAKE2B 5b3b54d0e0739bd0c1ad3078e64ac352cb78ce6b3492dbf5a414688081e9c900c2f26bcc2c396332d6a0c86a338f4b045b183766027185d1d73cfeea743266ec SHA512 d8d4e002ae7b54b93a2d58b2f6722f46b0b8d1a4c4952e2c4d831fb5b3585fb75ff1d858f7da69d28fced724acb995812232bf738487d7ceb4bbb3834bb1cacc
-DIST librewolf-155.0-1-linux-x86_64-package.tar.xz 99628592 BLAKE2B 552440be23bc288119fa09db0ee8d7fcf51e1cc2857983bf15a558ebe1b7869e63bc80a7a7da5a7b4f5dbabe9ac9f8a502c59bff886cb72294f2d3a32e0c1605 SHA512 dcf871c029fef0c2abc30ccc668a8e68e556644f7cb74b3712d96a9fe16fa49ab4a733bf5c32fca3a3ba514008d480a30bab5c9690ed3239e5b186c3b3abba23
-DIST librewolf-155.0.1-1-linux-arm64-package.tar.xz 89433008 BLAKE2B bcfef100fcdc811052caf9ea6be85406c3409436192907de5e93377bea4323b769ef1095b69ac4d6c4c26f390ab5dc65fee95f83ef7d64b908ef3f93e420974b SHA512 d273a4a1e311a80d047f20e2ebcfc8356f901db678c9aa2871465b63066c79008a3e7c85721e993fdc95d32c886dfdfc9531c43ee9b5587f566d9a1fa0174f05
-DIST librewolf-155.0.1-1-linux-x86_64-package.tar.xz 99687184 BLAKE2B 07366548f992d5cb884e3ed6d02969104e6cbbc71541ca9273a3f71f3e0b492f9caf17b8cb5d003f28885703eb94658ff4a6aa7c9990e64d93f13087d9b3e2ac SHA512 3898136f41b28c8f2ebf11f495c28753cf79878071c660e21416902fe3754c4b5ee85ab03ad2903f65364017ddc8fac353b219aca0441353f6c8c02619cf839c
DIST librewolf-156.0-1-linux-arm64-package.tar.xz 90386956 BLAKE2B f1b66f7361519f7cae68d5c29cce6fb973f53d636254315913733819b81cfd55a9225b2e9ceb60915ccad67f9499d974a80cb562224fb61e45979337dcda438f SHA512 dc45df7d8a266ca06baf5eadaf78f6fc04cf44b24dba0af70e2449e90aef4f368aaf2ea0c13713670423d41e5ca129ec4a75a6a09dc8519a473ddeb0483515c6
DIST librewolf-156.0-1-linux-x86_64-package.tar.xz 100983872 BLAKE2B 489be060959d783a0478dfdf30eaf1333c6dd6af240215b42db376165aab43d31a3cc327ce51420f052dcb99ef8296a7500ef2a278becb7cfae48824c6282f2f SHA512 07fdbbd8d229ced69369929c2573a4b37bf405ca555bd4aaba12388f21d3a2f2a20d00f589be078b24bfa5ccf672d7b4af498906deb3f9f956b9ac5a6cec0ce0
+DIST librewolf-156.0.1-1-linux-arm64-package.tar.xz 90380924 BLAKE2B c0c4934e46906261903ae4ea300361dbf485f6f03b9487beb728b76202e9c5cca4d272aba1508e21a17f5a4efbcc23e7deb82b10b7ffa4d4228952cdecdaf919 SHA512 e4fc3f7fc1ab4130f574c12c7034748a11698ec97ec3904703c70a7c384de3741df1f6b2c2c82abfd3b4be4ba3f55fab1c4b205dc7f1283448966743e9ffcf52
+DIST librewolf-156.0.1-1-linux-x86_64-package.tar.xz 100665284 BLAKE2B 801ea418cda9ff37deccf468b22ebef062917263c745c7379a30329d49b27ef00f6152e4889919ae289ab505b4d4a6169f8e8fe7f090bcf4fd8d948b9d767bda SHA512 4c71b530a58f884a0b7d10659ab1c8adcb66f96cf940ba39dd2145bfd222f81519a868cf82586011dae3b3658c240e04ab69b014e24984195172f1d3eccf73b2
diff --git a/www-client/librewolf-bin/librewolf-bin-155.0_p1.ebuild b/www-client/librewolf-bin/librewolf-bin-155.0_p1.ebuild
deleted file mode 100644
index caefc458634a..000000000000
--- a/www-client/librewolf-bin/librewolf-bin-155.0_p1.ebuild
+++ /dev/null
@@ -1,321 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LIBREWOLF_PV="${PV/_p/-}"
-
-MOZ_ESR=
-
-MOZ_PV=${PV/_p[0-9]/}
-MOZ_PV_SUFFIX=
-if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
- MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
-
- # Convert the ebuild version to the upstream Mozilla version
- MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
- MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
- MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
-fi
-
-if [[ -n ${MOZ_ESR} ]] ; then
- # ESR releases have slightly different version numbers
- MOZ_PV="${MOZ_PV}esr"
-fi
-
-MOZ_PN="${PN%-bin}"
-MOZ_P="${MOZ_PN}-${MOZ_PV}"
-MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
-MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
-
-inherit desktop linux-info optfeature pax-utils xdg
-
-MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
-
-SRC_URI="${SRC_URI}
- amd64? ( https://dl.librewolf.net/librewolf/${LIBREWOLF_PV}/librewolf-${LIBREWOLF_PV}-linux-x86_64-package.tar.xz )
- arm64? ( https://dl.librewolf.net/librewolf/${LIBREWOLF_PV}/librewolf-${LIBREWOLF_PV}-linux-arm64-package.tar.xz )"
-
-DESCRIPTION="LibreWolf Web Browser"
-HOMEPAGE="https://librewolf.net/"
-
-KEYWORDS="-* amd64 ~arm64"
-SLOT="0"
-LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-IUSE="selinux wayland"
-
-RESTRICT="strip"
-
-BDEPEND="app-arch/unzip"
-RDEPEND="${DEPEND}
- || (
- media-libs/libpulse
- media-sound/apulse
- )
- >=app-accessibility/at-spi2-core-2.46.0:2
- >=dev-libs/glib-2.26:2
- media-libs/alsa-lib
- media-libs/fontconfig
- >=media-libs/freetype-2.4.10
- media-video/ffmpeg
- sys-apps/dbus
- virtual/freedesktop-icon-theme
- >=x11-libs/cairo-1.10[X]
- x11-libs/gdk-pixbuf:2
- >=x11-libs/gtk+-3.11:3[X,wayland?]
- x11-libs/libX11
- x11-libs/libXcomposite
- x11-libs/libXcursor
- x11-libs/libXdamage
- x11-libs/libXext
- x11-libs/libXfixes
- x11-libs/libXi
- x11-libs/libXrandr
- x11-libs/libXrender
- x11-libs/libxcb
- >=x11-libs/pango-1.22.0
- selinux? ( sec-policy/selinux-mozilla )
-"
-
-QA_PREBUILT="opt/${MOZ_PN}/*"
-
-# Allow MOZ_GMP_PLUGIN_LIST to be set in an eclass or
-# overridden in the enviromnent (advanced hackers only)
-if [[ -z "${MOZ_GMP_PLUGIN_LIST+set}" ]] ; then
- MOZ_GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm )
-fi
-
-MOZ_LANGS=()
-
-mozilla_set_globals() {
- # https://bugs.gentoo.org/587334
- local MOZ_TOO_REGIONALIZED_FOR_L10N=(
- fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
- )
-
- local lang xflag
- for lang in "${MOZ_LANGS[@]}" ; do
- # en and en_US are handled internally
- if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
- continue
- fi
-
- # strip region subtag if $lang is in the list
- if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
- xflag=${lang%%-*}
- else
- xflag=${lang}
- fi
-
- SRC_URI+=" l10n_${xflag/[_@]/-}? ("
- SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi"
- SRC_URI+=" )"
- IUSE+=" l10n_${xflag/[_@]/-}"
- done
-}
-mozilla_set_globals
-
-moz_install_xpi() {
- debug-print-function ${FUNCNAME} "$@"
-
- if [[ ${#} -lt 2 ]] ; then
- die "${FUNCNAME} requires at least two arguments"
- fi
-
- local DESTDIR=${1}
- shift
-
- insinto "${DESTDIR}"
-
- local emid xpi_file xpi_tmp_dir
- for xpi_file in "${@}" ; do
- emid=
- xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
-
- # Unpack XPI
- unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
-
- # Determine extension ID
- if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
- emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
- [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
- elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
- emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
- [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
- else
- die "failed to determine extension id"
- fi
-
- einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
- newins "${xpi_file}" "${emid}.xpi"
- done
-}
-
-pkg_setup() {
- CONFIG_CHECK="~SECCOMP"
- WARNING_SECCOMP="CONFIG_SECCOMP not set! This system will be unable to play DRM-protected content."
-
- linux-info_pkg_setup
-}
-
-src_unpack() {
- local _lp_dir="${WORKDIR}/language_packs"
- local _src_file
-
- mkdir "${S}" || die
-
- if [[ ! -d "${_lp_dir}" ]] ; then
- mkdir "${_lp_dir}" || die
- fi
-
- for _src_file in ${A} ; do
- if [[ ${_src_file} == *.xpi ]]; then
- cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
- else
- MY_SRC_FILE=${_src_file}
- fi
- done
-}
-
-src_install() {
- # Set MOZILLA_FIVE_HOME
- local MOZILLA_FIVE_HOME="/opt/${MOZ_PN}"
-
- dodir /opt
- pushd "${ED}"/opt &>/dev/null || die
- unpack "${MY_SRC_FILE}"
- popd &>/dev/null || die
-
- pax-mark m \
- "${ED}${MOZILLA_FIVE_HOME}"/${MOZ_PN} \
- "${ED}${MOZILLA_FIVE_HOME}"/${MOZ_PN}-bin \
- "${ED}${MOZILLA_FIVE_HOME}"/plugin-container
-
- # Prevent auto-updater from popping up.
- echo "This installation is managed by Gentoo's package manager." > "${ED}${MOZILLA_FIVE_HOME}"/is-packaged-app
-
- # Install system-wide preferences
- local PREFS_DIR="${MOZILLA_FIVE_HOME}/browser/defaults/preferences"
- # insinto "${PREFS_DIR}"
- # newins "${FILESDIR}"/gentoo-default-prefs.js all-gentoo.js
-
- # local GENTOO_PREFS="${ED}${PREFS_DIR}/all-gentoo.js"
-
- # Install language packs
- local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
- if [[ -n "${langpacks}" ]] ; then
- moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
- fi
-
- # Install icons
- local icon_srcdir="${ED}/${MOZILLA_FIVE_HOME}/browser/chrome/icons/default"
-
- insinto /usr/share/icons/hicolor/symbolic/apps
-
- local icon size
- for icon in "${icon_srcdir}"/default*.png ; do
- size=${icon%.png}
- size=${size##*/default}
-
- if [[ ${size} -eq 48 ]] ; then
- newicon "${icon}" ${PN}.png
- fi
-
- newicon -s ${size} "${icon}" ${PN}.png
- done
-
- # Install menu
- local app_name="LibreWolf (bin)"
- local desktop_file="${FILESDIR}/firefox-bin-r3.desktop"
- local desktop_filename="${PN}.desktop"
- local exec_command="${PN}"
- local icon="${PN}"
- local use_wayland="false"
-
- if use wayland ; then
- use_wayland="true"
- fi
-
- cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
-
- # Add apulse support through our wrapper shell launcher, patchelf-method broken since 119.0.
- # See bgo#916230, bgo#941873
- local apulselib=
- if has_version -r media-sound/apulse[-sdk] ; then
- apulselib="${EPREFIX}/usr/$(get_libdir)/apulse"
- ewarn "media-sound/apulse with -sdk use flag detected!"
- ewarn "Firefox-bin will be installed with a wrapper, that attempts to load"
- ewarn "apulse instead of pipewire/pulseadio. This may lead to sound issues."
- ewarn "Please either enable sdk use flag for apulse, or remove apulse"
- ewarn "completely and re-install firefox-bin to utilize pipewire/pulseaudio instead."
- fi
-
- sed -i \
- -e "s:@NAME@:${app_name}:" \
- -e "s:@EXEC@:${exec_command}:" \
- -e "s:@ICON@:${icon}:" \
- "${WORKDIR}/${PN}.desktop-template" \
- || die
-
- newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
-
- rm "${WORKDIR}/${PN}.desktop-template" || die
-
- # Install wrapper script
- [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
- newbin "${FILESDIR}/firefox-bin-r1.sh" ${PN}
-
- # Update wrapper
- sed -i \
- -e "s:@PREFIX@:${EPREFIX}/usr:" \
- -e "s:@MOZ_FIVE_HOME@:${EPREFIX}${MOZILLA_FIVE_HOME}:" \
- -e "s:@APULSELIB_DIR@:${apulselib}:" \
- -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
- "${ED}/usr/bin/${PN}" \
- || die
-}
-
-pkg_postinst() {
- xdg_pkg_postinst
-
- local show_doh_information show_normandy_information
-
- if [[ -z "${REPLACING_VERSIONS}" ]] ; then
- # New install; Tell user that DoH is disabled by default
- show_doh_information=yes
- show_normandy_information=yes
- fi
-
- if [[ -n "${show_doh_information}" ]] ; then
- elog
- elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
- elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
- elog "DNS traffic to Cloudflare by default is not a good idea and applications"
- elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
- elog "(\"Off by choice\") by default."
- elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
- fi
-
- # bug 713782
- if [[ -n "${show_normandy_information}" ]] ; then
- elog
- elog "Upstream operates a service named Normandy which allows Mozilla to"
- elog "push changes for default settings or even install new add-ons remotely."
- elog "While this can be useful to address problems like 'Armagadd-on 2.0' or"
- elog "revert previous decisions to disable TLS 1.0/1.1, privacy and security"
- elog "concerns prevail, which is why we have switched off the use of this"
- elog "service by default."
- elog
- elog "To re-enable this service set"
- elog
- elog " app.normandy.enabled=true"
- elog
- elog "in about:config."
- fi
-
- optfeature_header "Optional programs for extra features:"
- optfeature "speech syntesis (text-to-speech) support" app-accessibility/speech-dispatcher
- optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas
- # optfeature "ffmpeg-based audio/video codec support, required for HTML5 video rendering" media-video/ffmpeg
- optfeature "desktop notifications" x11-libs/libnotify
-}
diff --git a/www-client/librewolf-bin/librewolf-bin-155.0.1_p1.ebuild b/www-client/librewolf-bin/librewolf-bin-156.0.1_p1.ebuild
index caefc458634a..caefc458634a 100644
--- a/www-client/librewolf-bin/librewolf-bin-155.0.1_p1.ebuild
+++ b/www-client/librewolf-bin/librewolf-bin-156.0.1_p1.ebuild
diff --git a/www-client/librewolf/Manifest b/www-client/librewolf/Manifest
index 9fee0f9fa0ef..090071885999 100644
--- a/www-client/librewolf/Manifest
+++ b/www-client/librewolf/Manifest
@@ -1,8 +1,6 @@
-DIST firefox-155-patches-04.tar.xz 12860 BLAKE2B f16f2ce03d625f12c1512ab8271c6bd368b5774482b4173723fbfed7be4f37444f084d6b18c047310dc76ed4be42b18f5580934cc5e9afbb6058173c869a63df SHA512 8f341eaf640d3b75e95b152e36e59836ef7cacfa4182c8dd759e2303fadc3261c28a1f81440f1456aa5477ccbb53542f79599be021d208cf4b1a025eebce07ba
-DIST firefox-155-patches-05.tar.xz 19468 BLAKE2B 463a5fe05041a97fe6479c362e3898d58d2dbd487bc2b860791a145c625e4a8a57b1646579947aeae28ab2d61dfedc0e003852a3447b9516b2001b8de78e74ee SHA512 a7a55b4eb27301536ab874044aca2b487091f8b63c7f9e1d7220507edeff738e06e043f1de2b8d7938c96a32d112bdeea39a43e38b4787b96894a5d211b16a83
DIST firefox-156-patches-01.tar.xz 18908 BLAKE2B ea2734e98c8ab19f5205ac4ed6ff4c4ded8d061b90ddf7bcca475a3b35b757d9daba337ef6b6a62d91f973f86ae11892a6d72fdd3f2d70e32ba0281cce02d601 SHA512 9131d3ef2245f9445df9569ee7d8898e0bb9e269dcf665353cdb5bd23f22f25e92e497753c30f5f72d24b310333e4674e675e4fd10bad123387ebbf4ff18b86c
-DIST librewolf-155.0-1.source.tar.gz 1175547857 BLAKE2B 40fadff66b74a6c6584677ff711a8dc083ded4064f3b03984a2321386610b868af40faa9fe9f559377dfabba3f6b0ebeb1694d9deace01828474a097f3f26feb SHA512 63fbd4fcf5b60efc41a50904ab9446db6cc1e6167d250ee934f8426d3ab36f2ddb39c717635f20d711fcde97c43a352b6770d313c18ee761e6c654981e75d824
-DIST librewolf-155.0.1-1.source.tar.gz 1176022855 BLAKE2B ac01738e2cca7504f16f38de0fec7f376822ae3422e4e5b6aa8d7e9681c65b5f1ce066a898bd610772fabb17a009dda9348d0ef0f767085aa1ff444c599a6c35 SHA512 f12c7f7d0cffccd82d4c8596e9d7c96c45b509eef6ac3dc55052b70e68672568364433e23990e87c5958d96b64fd720efdc9b17107d4bacf36b0ebbc0cf5e3fc
+DIST firefox-156-patches-02.tar.xz 24940 BLAKE2B 8ee722fa8c5ca5ff53797a348457876409aed2fc7b1682f42153516d5fdcfed314cb81bc2879c5a1d13646e7cf72f7876649c768bf2a6bc07d396c270b3bf5cc SHA512 6d4b61e0021c7a6af70f301ca1257641b4ffbb3e91f9a626d0fa7784cdd11d68f8f77ac723088608569490a363057f695a21101434de9d5f4fa3bacecc7cc6bf
DIST librewolf-156.0-1.source.tar.gz 1170660313 BLAKE2B b3b1da398cd88f5f652a6ee5a6fe3d6f80898e68e96c0d5d3284e9c4823a65ed1f405ee2dd19c757eb8daf61fbc171135de4ca71a865c89071023335919e08af SHA512 36796a4e6b5b3ac8c73054a1e2ffe067e4fd0c776ca90ec72abcb73907ab2c47f3817575283458d63bc09dca6f7935cdc283c2677621e1e9d4fb18fcc7a54412
+DIST librewolf-156.0.1-1.source.tar.gz 1171422864 BLAKE2B 41901ecd27cb7383f37778608d83b12d26b5678d7770bb9328e7d6472f33e31a4a9eb9eac5882615298e148d2e686474b7ad7ed2b073bb3a82101e071d864ebe SHA512 56c6f3dceec9bab68cb3e4e72478bb9d5e5e2768093a756e1d414fc598dcd68892d4f4bd7f509bf230cb82e390f0e25bc1c2af50f4e9370621ae70428beb2bdd
DIST wasi-sdk-34.0-arm64-linux.tar.gz 192255247 BLAKE2B 3d185e7e98a1e5091aba98f76f221b7e641acadb8dae5aa453ec24a07f1b3e1643ab2a4d4da2d86cd08fbe3e93a7617864716fb7ca64e716d203bdece6087aa5 SHA512 b27453c20b949e8c783980e69937cfa24a306ed3fe0ce2716a72b5ba4cbf231bdd0f114af6a519c41dd6cd81da7bfb06bb86d7b86a45ffd4a723fe4341d8b653
DIST wasi-sdk-34.0-x86_64-linux.tar.gz 192383077 BLAKE2B 065494c3f81555844293f33974a7230a47f50133aa2b8ed0c81de771c9342799e36a4814d6b3084daf07f19b4d7ce2dc576e134015625b2fad94c14e199ba319 SHA512 12d773d5c3d4b333c82f3280ac753c93877966df84a11b70e70d07aa1dbf20607eb64ceae836e21f9c6aed44054dc3e50f910657bedc590415e3b02789ab4685
diff --git a/www-client/librewolf/librewolf-155.0_p1.ebuild b/www-client/librewolf/librewolf-155.0_p1.ebuild
deleted file mode 100644
index e924aa936551..000000000000
--- a/www-client/librewolf/librewolf-155.0_p1.ebuild
+++ /dev/null
@@ -1,1321 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-FIREFOX_PATCHSET="firefox-155-patches-04.tar.xz"
-
-LLVM_COMPAT=( 22 )
-
-# This will also filter rust versions that don't match LLVM_COMPAT in the non-clang path; this is fine.
-RUST_NEEDS_LLVM=1
-RUST_MIN_VER=1.90.0
-
-PYTHON_COMPAT=( python3_{13..14} )
-PYTHON_REQ_USE="ncurses,sqlite,ssl"
-
-VIRTUALX_REQUIRED="manual"
-
-# Librewolf version (please rev-bump if changed)
-# Used when cloning patches repository.
-LIBREWOLF_PV="${PV/_p/-}"
-
-# Information about the bundled wasi toolchain from
-# https://github.com/WebAssembly/wasi-sdk/
-WASI_SDK_VER=34.0
-WASI_SDK_LLVM_VER=23
-
-HOMEPAGE="https://librewolf.net/"
-
-MOZ_PN="firefox"
-
-inherit check-reqs desktop flag-o-matic gnome2-utils linux-info llvm-r1 multiprocessing \
- optfeature pax-utils python-any-r1 readme.gentoo-r1 rust toolchain-funcs virtualx xdg
-
-LIBREWOLF_SRC_URI="https://librewolf.dev/api/packages/librewolf/generic/librewolf-source/${LIBREWOLF_PV}/librewolf-${LIBREWOLF_PV}.source.tar.gz"
-
-PATCH_URIS=(
- https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET}
-)
-
-DESCRIPTION="LibreWolf Web Browser"
-SRC_URI="${LIBREWOLF_SRC_URI} -> librewolf-${LIBREWOLF_PV}.source.tar.gz
- ${PATCH_URIS[@]}
- wasm-sandbox? (
- amd64? ( https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VER/.*/}/wasi-sdk-${WASI_SDK_VER}-x86_64-linux.tar.gz )
- arm64? ( https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VER/.*/}/wasi-sdk-${WASI_SDK_VER}-arm64-linux.tar.gz )
- )"
-
-S="${WORKDIR}/librewolf-${LIBREWOLF_PV}"
-LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-SLOT="0/$(ver_cut 1)"
-KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
-
-RESTRICT="
- mirror
- !test? ( test )
-"
-
-IUSE="+clang dbus debug eme-free +hardened hwaccel jack libproxy pgo pulseaudio selinux sndio"
-IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx"
-IUSE+=" system-pipewire system-png +system-webp test wayland wifi +X"
-
-# Firefox-only IUSE
-IUSE+=" +gmp-autoupdate jpegxl +jumbo-build openh264 telemetry valgrind wasm-sandbox"
-
-REQUIRED_USE="|| ( X wayland )
- debug? ( !system-av1 )
- pgo? ( jumbo-build )
- wayland? ( dbus )
- wifi? ( dbus )
-"
-
-FF_ONLY_DEPEND="selinux? ( sec-policy/selinux-mozilla )"
-BDEPEND="${PYTHON_DEPS}
- $(llvm_gen_dep '
- llvm-core/clang:${LLVM_SLOT}
- llvm-core/llvm:${LLVM_SLOT}
- clang? (
- llvm-core/lld:${LLVM_SLOT}
- pgo? ( llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
- )
- wasm-sandbox? ( llvm-core/lld:${LLVM_SLOT} )
- ')
- app-alternatives/awk
- app-arch/unzip
- app-arch/zip
- >=dev-util/cbindgen-0.29.4
- net-libs/nodejs
- virtual/pkgconfig
- amd64? ( >=dev-lang/nasm-2.14 )
- x86? ( >=dev-lang/nasm-2.14 )
- pgo? (
- X? (
- sys-devel/gettext
- x11-base/xorg-server[xvfb]
- x11-apps/xhost
- )
- !X? (
- gui-wm/tinywl
- x11-misc/xkeyboard-config
- )
- )"
-COMMON_DEPEND="${FF_ONLY_DEPEND}
- >=app-accessibility/at-spi2-core-2.46.0:2
- dev-libs/glib:2
- dev-libs/libffi:=
- >=dev-libs/nss-3.127
- >=dev-libs/nspr-4.39
- media-libs/alsa-lib
- media-libs/fontconfig
- media-libs/freetype
- media-libs/mesa
- media-video/ffmpeg
- virtual/zlib:=
- virtual/freedesktop-icon-theme
- x11-libs/cairo
- x11-libs/gdk-pixbuf:2
- x11-libs/libdrm
- x11-libs/pango
- x11-libs/pixman
- dbus? (
- sys-apps/dbus
- )
- jack? ( virtual/jack )
- pulseaudio? (
- || (
- media-libs/libpulse
- >=media-sound/apulse-0.1.12-r4[sdk]
- )
- )
- libproxy? ( net-libs/libproxy )
- selinux? ( sec-policy/selinux-mozilla )
- sndio? ( >=media-sound/sndio-1.8.0-r1 )
- system-av1? (
- >=media-libs/dav1d-1.0.0:=
- >=media-libs/libaom-3.10.0:=
- )
- system-harfbuzz? (
- >=media-libs/harfbuzz-2.8.1:0=
- !wasm-sandbox? ( >=media-gfx/graphite2-1.3.13 )
- )
- system-icu? ( >=dev-libs/icu-78.1:= )
- system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= )
- system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
- system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
- system-pipewire? ( >=media-video/pipewire-1.4.7-r2:= )
- system-png? ( >=media-libs/libpng-1.6.45:0=[apng] )
- system-webp? ( >=media-libs/libwebp-1.1.0:0= )
- valgrind? ( dev-debug/valgrind )
- wayland? (
- >=media-libs/libepoxy-1.5.10-r1
- x11-libs/gtk+:3[wayland]
- )
- wifi? (
- kernel_linux? (
- || (
- net-misc/networkmanager
- net-misc/connman[networkmanager]
- )
- sys-apps/dbus
- )
- )
- X? (
- virtual/opengl
- x11-libs/cairo[X]
- x11-libs/gtk+:3[X]
- x11-libs/libX11
- x11-libs/libXcomposite
- x11-libs/libXdamage
- x11-libs/libXext
- x11-libs/libXfixes
- x11-libs/libXrandr
- x11-libs/libxcb:=
- )"
-RDEPEND="${COMMON_DEPEND}
- hwaccel? (
- media-video/libva-utils
- sys-apps/pciutils
- )
- jack? ( virtual/jack )
- openh264? ( media-libs/openh264:*[plugin] )"
-DEPEND="${COMMON_DEPEND}
- X? (
- x11-base/xorg-proto
- x11-libs/libICE
- x11-libs/libSM
- )"
-
-# Allow MOZ_GMP_PLUGIN_LIST to be set in an eclass or
-# overridden in the enviromnent (advanced hackers only)
-if [[ -z "${MOZ_GMP_PLUGIN_LIST+set}" ]] ; then
- MOZ_GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm )
-fi
-
-llvm_check_deps() {
- if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then
- einfo "llvm-core/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
- return 1
- fi
-
- if use clang && ! tc-ld-is-mold ; then
- if ! has_version -b "llvm-core/lld:${LLVM_SLOT}" ; then
- einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
- return 1
- fi
- fi
-
- if use pgo ; then
- if ! has_version -b "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
- einfo "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2
- einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
- return 1
- fi
- fi
-
- einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
-}
-
-MOZ_LANGS=(
- ace ach af ak an ar as ast az be bg bn bn-BD bn-IN bo bqi br brx bs ca cak ca-valencia
- ckb crh cs csb cy da de dsb el en-CA en-GB en-ZA eo es-AR es-CL es-ES es-MX et eu fa
- ff fi fr frp fur fy-NL ga-IE gd gl gn gu-IN gv he hi hi-IN hr hsb hto hu hy-AM
- hye ia id ilo is it ixl ja ja-JP-mac ka kab kk km kn ko kok ks ku kw lb lg lij lo lt ltg
- lv mai meh mix mk ml mn mr ms my nb-NO ne-NP nl nn-NO nr nso ny oc or pai pa-IN pbb pl
- ppl pt-BR pt-PT quy qvi rm ro ru rw sah sat sc scn sco si sk skr sl son sq sr ss st sv-SE
- sw szl ta ta-LK te tg th tl tn tr trs ts tsz uk ur uz ve vi wo xcl xh zam zh-CN zh-TW zu
-)
-MOZ_LANG_MAP=()
-
-mozilla_set_globals() {
- # https://bugs.gentoo.org/587334
- local MOZ_TOO_REGIONALIZED_FOR_L10N=(
- fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
- )
-
- local lang xflag
- for lang in "${MOZ_LANGS[@]}" ; do
- # en and en_US are handled internally
- if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
- continue
- fi
-
- # strip region subtag if $lang is in the list
- if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
- xflag=${lang%%-*}
- else
- xflag=${lang}
- fi
-
- MOZ_LANG_MAP+=("l10n_${xflag/[_@]/-} ${lang}")
-
- IUSE+=" l10n_${xflag/[_@]/-}"
- done
-}
-mozilla_set_globals
-
-moz_clear_vendor_checksums() {
- debug-print-function ${FUNCNAME} "$@"
-
- if [[ ${#} -ne 1 ]] ; then
- die "${FUNCNAME} requires exact one argument"
- fi
-
- einfo "Clearing cargo checksums for ${1} ..."
-
- sed -i \
- -e 's/\("files":{\)[^}]*/\1/' \
- "${S}"/third_party/rust/${1}/.cargo-checksum.json || die
-}
-
-moz_install_xpi() {
- debug-print-function ${FUNCNAME} "$@"
-
- if [[ ${#} -lt 2 ]] ; then
- die "${FUNCNAME} requires at least two arguments"
- fi
-
- local DESTDIR=${1}
- shift
-
- insinto "${DESTDIR}"
-
- local emid xpi_file xpi_tmp_dir
- for xpi_file in "${@}" ; do
- emid=
- xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
-
- # Unpack XPI
- unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
-
- # Determine extension ID
- if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
- emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
- [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
- elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
- emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
- [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
- else
- die "failed to determine extension id"
- fi
-
- einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
- newins "${xpi_file}" "${emid}.xpi"
- done
-}
-
-mozconfig_add_options_ac() {
- debug-print-function ${FUNCNAME} "$@"
-
- if [[ ${#} -lt 2 ]] ; then
- die "${FUNCNAME} requires at least two arguments"
- fi
-
- local reason=${1}
- shift
-
- local option
- for option in ${@} ; do
- echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
- done
-}
-
-mozconfig_add_options_mk() {
- debug-print-function ${FUNCNAME} "$@"
-
- if [[ ${#} -lt 2 ]] ; then
- die "${FUNCNAME} requires at least two arguments"
- fi
-
- local reason=${1}
- shift
-
- local option
- for option in ${@} ; do
- echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
- done
-}
-
-mozconfig_use_enable() {
- debug-print-function ${FUNCNAME} "$@"
-
- if [[ ${#} -lt 1 ]] ; then
- die "${FUNCNAME} requires at least one arguments"
- fi
-
- local flag=$(use_enable "${@}")
- mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
-}
-
-mozconfig_use_with() {
- debug-print-function ${FUNCNAME} "$@"
-
- if [[ ${#} -lt 1 ]] ; then
- die "${FUNCNAME} requires at least one arguments"
- fi
-
- local flag=$(use_with "${@}")
- mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
-}
-
-virtwl() {
- debug-print-function ${FUNCNAME} "$@"
-
- [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
- [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset"
- tinywl -h >/dev/null || die 'tinywl -h failed'
-
- local VIRTWL VIRTWL_PID
- coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; }
- local -x WAYLAND_DISPLAY
- read WAYLAND_DISPLAY <&${VIRTWL[0]}
-
- debug-print "${FUNCNAME}: $@"
- "$@"
- local r=$?
-
- [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
- exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
- return $r
-}
-
-pkg_pretend() {
- if [[ ${MERGE_TYPE} != binary ]] ; then
- # Ensure we have enough disk space to compile
- if use pgo || use debug ; then
- CHECKREQS_DISK_BUILD="18700M"
- elif tc-is-lto ; then
- CHECKREQS_DISK_BUILD="10900M"
- else
- CHECKREQS_DISK_BUILD="9700M"
- fi
-
- check-reqs_pkg_pretend
- fi
-}
-
-pkg_setup() {
-
- # Get LTO from environment; export after this phase for use in src_configure (etc)
- use_lto=no
-
- if [[ ${MERGE_TYPE} != binary ]] ; then
-
- if tc-is-lto; then
- use_lto=yes
- # LTO is handled via configure
- filter-lto
- fi
-
- if use pgo ; then
- if ! has userpriv ${FEATURES} ; then
- eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!"
- fi
- fi
-
- if [[ ${use_lto} = yes ]]; then
- # -Werror=lto-type-mismatch -Werror=odr are going to fail with GCC,
- # bmo#1516758, bgo#942288
- filter-flags -Werror=lto-type-mismatch -Werror=odr
- fi
-
- # Ensure we have enough disk space to compile
- if use pgo || use debug ; then
- CHECKREQS_DISK_BUILD="18700M"
- elif [[ ${use_lto} == "yes" ]] ; then
- CHECKREQS_DISK_BUILD="10900M"
- else
- CHECKREQS_DISK_BUILD="9700M"
- fi
-
- check-reqs_pkg_setup
- llvm-r1_pkg_setup
- rust_pkg_setup
- python-any-r1_pkg_setup
-
- # Avoid PGO profiling problems due to enviroment leakage
- # These should *always* be cleaned up anyway
- unset \
- DBUS_SESSION_BUS_ADDRESS \
- DISPLAY \
- ORBIT_SOCKETDIR \
- SESSION_MANAGER \
- XAUTHORITY \
- XDG_CACHE_HOME \
- XDG_SESSION_COOKIE
-
- # Build system is using /proc/self/oom_score_adj, bug #604394
- addpredict /proc/self/oom_score_adj
-
- if use pgo ; then
- # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure
- # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage
- # (PORTAGE_SCHEDULING_POLICY) update...
- addpredict /proc
-
- # Clear tons of conditions, since PGO is hardware-dependant.
- addpredict /dev
- fi
-
- if ! mountpoint -q /dev/shm ; then
- # If /dev/shm is not available, configure is known to fail with
- # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
- ewarn "/dev/shm is not mounted -- expect build failures!"
- fi
-
- # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
- # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
- # get your own set of keys.
- if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
- MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
- fi
-
- if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
- MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
- fi
-
- # Mozilla API keys (see https://location.services.mozilla.com/api)
- # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
- # get your own set of keys.
- if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
- MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
- fi
-
- # Ensure we use C locale when building, bug #746215
- export LC_ALL=C
- fi
-
- export use_lto
-
- CONFIG_CHECK="~SECCOMP"
- WARNING_SECCOMP="CONFIG_SECCOMP not set! This system will be unable to play DRM-protected content."
- linux-info_pkg_setup
-}
-
-src_unpack() {
- local _lp_dir="${WORKDIR}/language_packs"
- local _src_file
-
- if [[ ! -d "${_lp_dir}" ]] ; then
- mkdir "${_lp_dir}" || die
- fi
-
- for _src_file in ${A} ; do
- if [[ ${_src_file} == *.xpi ]]; then
- cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
- else
- unpack ${_src_file}
- fi
- done
-}
-
-src_prepare() {
- if [[ ${use_lto} == "yes" ]]; then
- rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
- fi
-
- # Workaround for bgo#915651 and bmo#1988166 on musl
- if use elibc_glibc ; then
- rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
- rm -v "${WORKDIR}"/firefox-patches/*bgo-967694-musl-prctrl-exception-on-musl.patch || die
- fi
-
- eapply "${WORKDIR}/firefox-patches"
-
- # Allow user to apply any additional patches without modifing ebuild
- eapply_user
-
- # Make cargo respect MAKEOPTS
- export CARGO_BUILD_JOBS="$(makeopts_jobs)"
-
- # Workaround for bgo#915651
- if ! use elibc_glibc ; then
- if use amd64 ; then
- export RUST_TARGET="x86_64-unknown-linux-musl"
- elif use x86 ; then
- export RUST_TARGET="i686-unknown-linux-musl"
- elif use arm64 ; then
- export RUST_TARGET="aarch64-unknown-linux-musl"
- elif use loong; then
- # Only the LP64D ABI of LoongArch64 is actively supported among
- # the wider Linux ecosystem, so the assumption is safe.
- export RUST_TARGET="loongarch64-unknown-linux-musl"
- elif use ppc64 ; then
- export RUST_TARGET="powerpc64le-unknown-linux-musl"
- elif use riscv ; then
- # We can pretty safely rule out any 32-bit riscvs, but 64-bit riscvs also have tons of
- # different ABIs available. riscv64gc-unknown-linux-musl seems to be the best working
- # guess right now though.
- elog "riscv detected, forcing a riscv64 target for now."
- export RUST_TARGET="riscv64gc-unknown-linux-musl"
- else
- die "Unknown musl chost, please post a new bug with your rustc -vV along with emerge --info"
- fi
- fi
-
- # Pre-built wasm-sandbox path manipulation.
- if use wasm-sandbox ; then
- if use amd64 ; then
- export wasi_arch="x86_64"
- elif use arm64 ; then
- export wasi_arch="arm64"
- else
- die "wasm-sandbox enabled on unknown/unsupported arch!"
- fi
-
- sed -i \
- -e "s:%%PORTAGE_WORKDIR%%:${WORKDIR}:" \
- -e "s:%%WASI_ARCH%%:${wasi_arch}:" \
- -e "s:%%WASI_SDK_VER%%:${WASI_SDK_VER}:" \
- -e "s:%%WASI_SDK_LLVM_VER%%:${WASI_SDK_LLVM_VER}:" \
- toolkit/moz.configure || die "Failed to update wasi-related paths."
- fi
-
- # Make LTO respect MAKEOPTS
- sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
- "${S}"/build/moz.configure/lto-pgo.configure || die "Failed sedding multiprocessing.cpu_count"
-
- sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
- "${S}"/third_party/chromium/build/toolchain/get_cpu_count.py || die "Failed sedding multiprocessing.cpu_count"
-
- sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
- "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed sedding multiprocessing.cpu_count"
-
- # sed-in toolchain prefix
- sed -i \
- -e "s/objdump/${CHOST}-objdump/" \
- "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py || die "sed failed to set toolchain prefix"
-
- sed -i \
- -e 's/ccache_stats = None/return None/' \
- "${S}"/python/mozbuild/mozbuild/controller/building.py || die "sed failed to disable ccache stats call"
-
- einfo "Removing pre-built binaries ..."
-
- find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
-
- # Clear checksums from cargo crates we've manually patched.
- # moz_clear_vendor_checksums xyz
-
- # Respect choice for "jumbo-build"
- # Changing the value for FILES_PER_UNIFIED_FILE may not work, see #905431
- if [[ -n ${FILES_PER_UNIFIED_FILE} ]] && use jumbo-build; then
- local my_files_per_unified_file=${FILES_PER_UNIFIED_FILE:=16}
- elog ""
- elog "jumbo-build defaults modified to ${my_files_per_unified_file}."
- elog "if you get a build failure, try undefining FILES_PER_UNIFIED_FILE,"
- elog "if that fails try -jumbo-build before opening a bug report."
- elog ""
-
- sed -i -e "s/\"FILES_PER_UNIFIED_FILE\", 16/\"FILES_PER_UNIFIED_FILE\", "${my_files_per_unified_file}"/" \
- python/mozbuild/mozbuild/frontend/data.py ||
- die "Failed to adjust FILES_PER_UNIFIED_FILE in python/mozbuild/mozbuild/frontend/data.py"
- sed -i -e "s/FILES_PER_UNIFIED_FILE = 6/FILES_PER_UNIFIED_FILE = "${my_files_per_unified_file}"/" \
- js/src/moz.build ||
- die "Failed to adjust FILES_PER_UNIFIED_FILE in js/src/moz.build"
- fi
-
- # Create build dir
- BUILD_DIR="${WORKDIR}/${PN}_build"
- mkdir -p "${BUILD_DIR}" || die
-
- # Write API keys to disk
- echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
- echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die
- echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
-
- xdg_environment_reset
-}
-
-src_configure() {
- # Show flags set at the beginning
- einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
- einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
- einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
- einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
- einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
-
- local have_switched_compiler=
- if use clang; then
- # Force clang
- einfo "Enforcing the use of clang due to USE=clang ..."
-
- local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }')
- [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}")
- [[ -z ${version_clang} ]] && die "Failed to read clang version!"
-
- if tc-is-gcc; then
- have_switched_compiler=yes
- fi
-
- AR=llvm-ar
- CC=${CHOST}-clang-${version_clang}
- CXX=${CHOST}-clang++-${version_clang}
- NM=llvm-nm
- RANLIB=llvm-ranlib
- elif ! use clang && ! tc-is-gcc ; then
- # Force gcc
- have_switched_compiler=yes
- einfo "Enforcing the use of gcc due to USE=-clang ..."
- AR=gcc-ar
- CC=${CHOST}-gcc
- CXX=${CHOST}-g++
- NM=gcc-nm
- RANLIB=gcc-ranlib
- fi
-
- if [[ -n "${have_switched_compiler}" ]] ; then
- # Because we switched active compiler we have to ensure
- # that no unsupported flags are set
- strip-unsupported-flags
- fi
-
- # Ensure we use correct toolchain,
- # AS is used in a non-standard way by upstream, #bmo1654031
- export HOST_CC="$(tc-getBUILD_CC)"
- export HOST_CXX="$(tc-getBUILD_CXX)"
- export AS="$(tc-getCC) -c"
-
- # Configuration tests expect llvm-readelf output, bug 913130
- READELF="llvm-readelf"
-
- tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG
-
- # Pass the correct toolchain paths through cbindgen
- if tc-is-cross-compiler ; then
- export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}"
- fi
-
- # Set MOZILLA_FIVE_HOME
- export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
-
- # python/mach/mach/mixin/process.py fails to detect SHELL
- export SHELL="${EPREFIX}/bin/bash"
-
- # Set state path
- export MOZBUILD_STATE_PATH="${BUILD_DIR}"
-
- # Set MOZCONFIG
- export MOZCONFIG="${S}/.mozconfig"
-
- # Initialize MOZCONFIG
- mozconfig_add_options_ac '' --enable-application=browser
- mozconfig_add_options_ac '' --enable-project=browser
-
- # Set Gentoo defaults
- export MOZILLA_OFFICIAL=1
-
- mozconfig_add_options_ac 'Gentoo default' \
- --allow-addon-sideload \
- --disable-cargo-incremental \
- --disable-crashreporter \
- --disable-disk-remnant-avoidance \
- --disable-geckodriver \
- --disable-install-strip \
- --disable-legacy-profile-creation \
- --disable-parental-controls \
- --disable-strip \
- --disable-updater \
- --disable-wmf \
- --enable-negotiateauth \
- --enable-new-pass-manager \
- --enable-packed-relative-relocs \
- --enable-release \
- --enable-system-policies \
- --host="${CBUILD:-${CHOST}}" \
- --libdir="${EPREFIX}/usr/$(get_libdir)" \
- --prefix="${EPREFIX}/usr" \
- --target="${CHOST}" \
- --without-ccache \
- --with-intl-api \
- --with-libclang-path="$(llvm-config --libdir)" \
- --with-system-ffi \
- --with-system-gbm \
- --with-system-libdrm \
- --with-system-nspr \
- --with-system-nss \
- --with-system-pixman \
- --with-system-zlib \
- --with-toolchain-prefix="${CHOST}-" \
- --with-unsigned-addon-scopes=app,system
-
- # Librewolf
- mozconfig_add_options_ac 'LibreWolf Branding' \
- --with-app-name="librewolf" \
- --with-app-basename="librewolf" \
- --with-branding=browser/branding/librewolf
- export MOZ_APP_REMOTINGNAME=LibreWolf
-
- # I really have know idea if this is actually doing anything.
- mozconfig_add_options_ac 'LibreWolf Localization' \
- --with-l10n-base=$PWD/lw/l10n
-
- ## Controlled via 'telemetry' IUSE
- # mozconfig_add_options_mk 'LibreWolf Disable Telemetry' \
- # MOZ_CRASHREPORTER=0 \
- # MOZ_DATA_REPORTING=0 \
- # MOZ_SERVICES_HEALTHREPORT=0 \
- # MOZ_TELEMETRY_REPORTING=0
-
- export MOZ_REQUIRE_SIGNING=
-
- # Set update channel
- mozconfig_add_options_ac '' --enable-update-channel=release
-
- # Whitelist to allow unkeyworded arches to build with "--disable-rust-simd" by default.
- if use amd64 || use arm64 || use ppc64 || use loong || use riscv ; then
- mozconfig_add_options_ac '' --enable-rust-simd
- fi
-
- # For future keywording: This is currently (97.0) only supported on:
- # amd64, arm, arm64 & x86.
- # Might want to flip the logic around if Firefox is to support more arches.
- # bug 833001, bug 903411#c8
- if use loong || use ppc64 || use riscv; then
- mozconfig_add_options_ac '' --disable-sandbox
- else
- mozconfig_add_options_ac '' --enable-sandbox
- fi
-
- # riscv-related options, bgo#947337, bgo#947338, bgo#977845
- if use riscv ; then
- mozconfig_add_options_ac 'Disable webrtc for RISC-V' --disable-webrtc
- mozconfig_add_options_ac 'Disable JIT for RISC-V' --disable-jit
- fi
-
- mozconfig_use_enable valgrind
-
- if use valgrind ; then
- mozconfig_add_options_ac 'valgrind requirement' --disable-sandbox
- mozconfig_add_options_ac 'valgrind requirement' --disable-jemalloc
-
- sed -i -e 's/--enable-optimize=-O[0-9s]/--enable-optimize="-g -O2"/' .mozconfig || die
- fi
-
- if [[ -s "${S}/api-google.key" ]] ; then
- local key_origin="Gentoo default"
- if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
- key_origin="User value"
- fi
-
- mozconfig_add_options_ac "${key_origin}" \
- --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
- else
- einfo "Building without Google API key ..."
- fi
-
- if [[ -s "${S}/api-location.key" ]] ; then
- local key_origin="Gentoo default"
- if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
- key_origin="User value"
- fi
-
- mozconfig_add_options_ac "${key_origin}" \
- --with-google-location-service-api-keyfile="${S}/api-location.key"
- else
- einfo "Building without Location API key ..."
- fi
-
- if [[ -s "${S}/api-mozilla.key" ]] ; then
- local key_origin="Gentoo default"
- if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
- key_origin="User value"
- fi
-
- mozconfig_add_options_ac "${key_origin}" \
- --with-mozilla-api-keyfile="${S}/api-mozilla.key"
- else
- einfo "Building without Mozilla API key ..."
- fi
-
- mozconfig_use_with system-av1
- mozconfig_use_with system-harfbuzz
- mozconfig_use_with system-icu
- mozconfig_use_with system-jpeg
- mozconfig_use_with system-libevent
- mozconfig_use_with system-libvpx
- mozconfig_use_with system-pipewire
- mozconfig_use_with system-png
- mozconfig_use_with system-webp
-
- mozconfig_use_enable dbus
- mozconfig_use_enable libproxy
- mozconfig_use_enable jumbo-build unified-build
-
- use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
-
- if use hardened ; then
- mozconfig_add_options_ac "+hardened" --enable-hardening
- mozconfig_add_options_ac "+hardened stl" --enable-stl-hardening
- append-ldflags "-Wl,-z,relro -Wl,-z,now"
-
- # Increase the FORTIFY_SOURCE value, #910071.
- sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' "${S}"/build/moz.configure/toolchain.configure || die
- fi
-
- local myaudiobackends=""
- use jack && myaudiobackends+="jack,"
- use sndio && myaudiobackends+="sndio,"
- use pulseaudio && myaudiobackends+="pulseaudio,"
- ! use pulseaudio && myaudiobackends+="alsa,"
-
- mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}"
-
- mozconfig_use_enable wifi necko-wifi
-
- if use X && use wayland ; then
- mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland
- elif ! use X && use wayland ; then
- mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only
- else
- mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3-x11-only
- fi
-
- # wasm-sandbox
- # Since graphite2 is one of the sandboxed libraries, system-graphite2 obviously can't work with +wasm-sandbox.
- if use wasm-sandbox ; then
- mozconfig_add_options_ac '+wasm-sandbox' --with-wasi-sysroot="${WORKDIR}/wasi-sdk-${WASI_SDK_VER}-${wasi_arch}-linux/share/wasi-sysroot/"
- else
- mozconfig_add_options_ac 'no wasm-sandbox' --without-wasm-sandboxed-libraries
- mozconfig_use_with system-harfbuzz system-graphite2
- fi
-
- ! use jpegxl && mozconfig_add_options_ac '-jpegxl' --disable-jxl
-
- if [[ ${use_lto} == "yes" ]] ; then
- if use clang ; then
- # Upstream only supports lld or mold when using clang.
- if tc-ld-is-mold ; then
- # mold expects the -flto line from *FLAGS configuration, bgo#923119
- append-ldflags "-flto=thin"
- mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
- else
- mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
- fi
-
- mozconfig_add_options_ac '+lto' --enable-lto=cross
-
- else
- # ThinLTO is currently broken, see bmo#1644409.
- # mold does not support gcc+lto combination.
- mozconfig_add_options_ac '+lto' --enable-lto=full
- mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
- fi
-
- else
- # Avoid auto-magic on linker
- if use clang ; then
- # lld is upstream's default
- if tc-ld-is-mold ; then
- mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
- else
- mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
- fi
-
- else
- if tc-ld-is-mold ; then
- mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
- else
- mozconfig_add_options_ac "linker is set to bfd due to USE=-clang" --enable-linker=bfd
- fi
- fi
- fi
-
- # PGO was moved outside lto block to allow building pgo without lto.
- if use pgo ; then
- mozconfig_add_options_ac '+pgo' MOZ_PGO=1
-
- # Avoid compressing just-built instrumented Firefox with
- # high levels of compression. Just use tar as a container
- # to save >=10 minutes.
- export MOZ_PKG_FORMAT=TAR
-
- if use clang ; then
- # Used in build/pgo/profileserver.py
- export LLVM_PROFDATA="llvm-profdata"
- else
- # Attempt to fix pgo hanging with gcc, bgo#966309.
- export MOZ_REMOTE_SETTINGS_DEVTOOLS=1
- fi
- fi
-
- mozconfig_use_enable debug
- if use debug ; then
- mozconfig_add_options_ac '+debug' --disable-optimize
- mozconfig_add_options_ac '+debug' --enable-jemalloc
- mozconfig_add_options_ac '+debug' --enable-real-time-tracing
- else
- mozconfig_add_options_ac 'Gentoo defaults' --disable-real-time-tracing
-
- if is-flag '-g*' ; then
- if use clang ; then
- mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
- else
- mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
- fi
- else
- mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
- fi
-
- if is-flag '-O0' ; then
- mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
- elif is-flag '-O4' ; then
- mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
- elif is-flag '-O3' ; then
- mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
- elif is-flag '-O1' ; then
- mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
- elif is-flag '-Os' ; then
- mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
- else
- mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
- fi
- fi
-
- # Debug flag was handled via configure
- filter-flags '-g*'
-
- # Optimization flag was handled via configure
- filter-flags '-O*'
-
- # elf-hack
- # Filter "-z,pack-relative-relocs" and let the build system handle it instead.
- if use amd64 || use x86 ; then
- filter-flags "-z,pack-relative-relocs"
-
- if tc-ld-is-mold ; then
- # relr-elf-hack is currently broken with mold, bgo#916259
- mozconfig_add_options_ac 'disable elf-hack with mold linker' --disable-elf-hack
- else
- mozconfig_add_options_ac 'relr elf-hack' --enable-elf-hack=relr
- fi
- elif use loong || use ppc64 || use riscv ; then
- # '--disable-elf-hack' is not recognized on loong/ppc64/riscv,
- # see bgo #917049, #930046
- :;
- else
- mozconfig_add_options_ac 'disable elf-hack on non-supported arches' --disable-elf-hack
- fi
-
- if ! use elibc_glibc; then
- mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
- fi
-
- # System-av1 fix
- use system-av1 && append-ldflags "-Wl,--undefined-version"
-
- # Make revdep-rebuild.sh happy; Also required for musl
- append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
-
- # Pass $MAKEOPTS to build system
- export MOZ_MAKE_FLAGS="${MAKEOPTS}"
-
- # Use system's Python environment
- export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
-
- export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
-
- if ! use telemetry; then
- mozconfig_add_options_mk '-telemetry setting' "MOZ_CRASHREPORTER=0"
- mozconfig_add_options_mk '-telemetry setting' "MOZ_DATA_REPORTING=0"
- mozconfig_add_options_mk '-telemetry setting' "MOZ_SERVICES_HEALTHREPORT=0"
- mozconfig_add_options_mk '-telemetry setting' "MOZ_TELEMETRY_REPORTING=0"
- fi
-
- mozconfig_use_enable test tests
-
- # Disable notification when build system has finished
- export MOZ_NOSPAM=1
-
- # Portage sets XARGS environment variable to "xargs -r" by default which
- # breaks build system's check_prog() function which doesn't support arguments
- mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
-
- # Set build dir
- mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
-
- # Show flags we will use
- einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
- einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
- einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
- einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
- einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
-
- # Handle EXTRA_CONF and show summary
- local ac opt hash reason
-
- # Apply EXTRA_ECONF entries to $MOZCONFIG
- if [[ -n ${EXTRA_ECONF} ]] ; then
- IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
- for opt in "${ac[@]}"; do
- mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
- done
- fi
-
- echo
- echo "=========================================================="
- echo "Building ${PF} with the following configuration"
- grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
- [[ -z ${hash} || ${hash} == \# ]] \
- || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
- printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
- done
- echo "=========================================================="
- echo
-
- ./mach configure || die
-}
-
-src_compile() {
- local virtx_cmd=
-
- if [[ ${use_lto} == "yes" ]] && tc-ld-is-mold ; then
- # increase ulimit with mold+lto, bugs #892641, #907485
- if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
- ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources."
- ewarn "Please see bugs #892641 & #907485."
- else
- ulimit -n 16384
- fi
- fi
-
- if use pgo; then
- # Reset and cleanup environment variables used by GNOME/XDG
- gnome2_environment_reset
-
- addpredict /root
-
- if ! use X; then
- virtx_cmd=virtwl
- else
- virtx_cmd=virtx
- fi
- fi
-
- if ! use X; then
- local -x GDK_BACKEND=wayland
- else
- local -x GDK_BACKEND=x11
- fi
-
- ${virtx_cmd} ./mach build --verbose || die
-}
-
-src_test() {
- # https://firefox-source-docs.mozilla.org/testing/automated-testing/index.html
- local -a failures=()
-
- # Some tests respect this
- local -x MOZ_HEADLESS=1
-
- # Check testing/mach_commands.py
- einfo "Testing with cppunittest ..."
- ./mach cppunittest
- local ret=$?
- if [[ ${ret} -ne 0 ]]; then
- eerror "Test suite cppunittest failed with error code ${ret}"
- failures+=( cppunittest )
- fi
-
- if [[ ${#failures} -eq 0 ]]; then
- einfo "Test suites succeeded"
- else
- die "Test suites failed: ${failures[@]}"
- fi
-}
-
-src_install() {
- # xpcshell is getting called during install
- pax-mark m \
- "${BUILD_DIR}"/dist/bin/xpcshell \
- "${BUILD_DIR}"/dist/bin/${PN} \
- "${BUILD_DIR}"/dist/bin/plugin-container
-
- #DESTDIR="${D}" ./mach install || die
- ## LibreWolf
- # ./mach install doesn't install the locale information for some reason.
- # Use packge-multi-locale instead
- local mymozlangs=()
- for lang_tuple in "${MOZ_LANG_MAP[@]}"; do
- IFS=' ' read -r l10n lang <<< "${lang_tuple}"
-
- if use "${l10n}"; then
- mymozlangs+=("${lang}")
- fi
- done
-
- if (( ${#mymozlangs[@]} == 0 )); then
- einfo "Running ./mach package"
- ./mach package || die
- else
- einfo "Running ./mach package-multi-locale"
- ./mach package-multi-locale --locale "${mymozlangs[@]}" || die
- fi
-
- dodir "${MOZILLA_FIVE_HOME}" || die
- cp -r "${BUILD_DIR}"/dist/librewolf/* "${ED}"/"${MOZILLA_FIVE_HOME}" || die
-
- ## LibreWolf
- # For some reason 'local-settings.js' doesn't get properly packaged.
- # Install it manually
- insinto "${MOZILLA_FIVE_HOME}/defaults/pref"
- doins "${S}/lw/local-settings.js"
-
- # Upstream cannot ship symlink but we can (bmo#658850)
- rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
- dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
-
- # Don't install llvm-symbolizer from llvm-core/llvm package
- if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
- rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
- fi
-
- ## Disabled for LibreWolf
- # Install policy (currently only used to disable application updates)
- # insinto "${MOZILLA_FIVE_HOME}/distribution"
- # newins "${FILESDIR}"/distribution.ini distribution.ini
- # newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
-
- # Install system-wide preferences
- local PREFS_DIR="${MOZILLA_FIVE_HOME}/browser/defaults/preferences"
- insinto "${PREFS_DIR}"
- newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
-
- local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
-
- # Set dictionary path to use system hunspell
- cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
- pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
- EOF
-
- # Force hwaccel prefs if USE=hwaccel is enabled
- if use hwaccel ; then
- cat "${FILESDIR}"/gentoo-hwaccel-prefs.js-r4 \
- >>"${GENTOO_PREFS}" \
- || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
-
- if use wayland; then
- cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs"
- pref("gfx.x11-egl.force-enabled", false);
- EOF
- else
- cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs"
- pref("gfx.x11-egl.force-enabled", true);
- EOF
- fi
-
- # Install the gfxtest binary on supported arches
- exeinto "${MOZILLA_FIVE_HOME}"
- doexe "${BUILD_DIR}"/dist/bin/gfxtest
- fi
-
- if ! use gmp-autoupdate ; then
- local plugin
- for plugin in "${MOZ_GMP_PLUGIN_LIST[@]}" ; do
- einfo "Disabling auto-update for ${plugin} plugin ..."
- cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to disable autoupdate for ${plugin} media plugin"
- pref("media.${plugin}.autoupdate", false);
- EOF
- done
- fi
-
- # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
- if use system-harfbuzz ; then
- cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
- sticky_pref("gfx.font_rendering.graphite.enabled", true);
- EOF
- fi
-
- # Add telemetry config prefs, just in case something happens in future and telemetry build
- # options stop working.
- if ! use telemetry ; then
- cat "${FILESDIR}"/gentoo-telemetry-prefs.js >>"${GENTOO_PREFS}" || die "failed to set telemetry prefs"
- fi
-
- # Install icons
- local icon_srcdir="${S}/browser/branding/${PN}"
-
- insinto /usr/share/icons/hicolor/symbolic/apps
-
- local icon size
- for icon in "${icon_srcdir}"/default*.png ; do
- size=${icon%.png}
- size=${size##*/default}
-
- if [[ ${size} -eq 48 ]] ; then
- newicon "${icon}" ${PN}.png
- fi
-
- newicon -s ${size} "${icon}" ${PN}.png
- done
-
- # Install menu
- local app_name="LibreWolf"
- local desktop_file="${FILESDIR}/icon/${MOZ_PN}-r3.desktop"
- local desktop_filename="${PN}.desktop"
- local exec_command="${PN}"
- local icon="${PN}"
- local use_wayland="false"
-
- if use wayland ; then
- use_wayland="true"
- fi
-
- cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
-
- sed -i \
- -e "s:@NAME@:${app_name}:" \
- -e "s:@EXEC@:${exec_command}:" \
- -e "s:@ICON@:${icon}:" \
- "${WORKDIR}/${PN}.desktop-template" || die
-
- newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
-
- rm "${WORKDIR}/${PN}.desktop-template" || die
-
- if use jpegxl ; then
- cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to enable jpegxl via pref"
- pref("image.jxl.enabled", true);
- EOF
- fi
-
- # Install wrapper script
- [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
- newbin "${FILESDIR}/${MOZ_PN}-r1.sh" ${PN}
-
- # Update wrapper
- sed -i \
- -e "s:@PREFIX@:${EPREFIX}/usr:" \
- -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
- "${ED}/usr/bin/${PN}" || die
-
- readme.gentoo_create_doc
-}
-
-pkg_postinst() {
- xdg_pkg_postinst
-
- if ! use gmp-autoupdate ; then
- elog "USE='-gmp-autoupdate' has disabled the following plugins from updating or"
- elog "installing into new profiles:"
- local plugin
- for plugin in "${MOZ_GMP_PLUGIN_LIST[@]}" ; do
- elog "\t ${plugin}"
- done
- elog
- fi
-
- readme.gentoo_print_elog
-
- optfeature_header "Optional programs for extra features:"
- optfeature "desktop notifications" x11-libs/libnotify
- optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas
- optfeature "screencasting with pipewire" sys-apps/xdg-desktop-portal
-
- if ! has_version "sys-libs/glibc"; then
- elog
- elog "glibc not found! You won't be able to play DRM content."
- elog "See Gentoo bug #910309 or upstream bug #1843683."
- elog
- fi
-}
diff --git a/www-client/librewolf/librewolf-155.0.1_p1.ebuild b/www-client/librewolf/librewolf-156.0.1_p1.ebuild
index 45cea22f845c..466b29fb9279 100644
--- a/www-client/librewolf/librewolf-155.0.1_p1.ebuild
+++ b/www-client/librewolf/librewolf-156.0.1_p1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-FIREFOX_PATCHSET="firefox-155-patches-05.tar.xz"
+FIREFOX_PATCHSET="firefox-156-patches-02.tar.xz"
LLVM_COMPAT=( 22 )
@@ -104,7 +104,7 @@ COMMON_DEPEND="${FF_ONLY_DEPEND}
>=app-accessibility/at-spi2-core-2.46.0:2
dev-libs/glib:2
dev-libs/libffi:=
- >=dev-libs/nss-3.127
+ >=dev-libs/nss-3.128
>=dev-libs/nspr-4.39
media-libs/alsa-lib
media-libs/fontconfig
@@ -132,8 +132,8 @@ COMMON_DEPEND="${FF_ONLY_DEPEND}
selinux? ( sec-policy/selinux-mozilla )
sndio? ( >=media-sound/sndio-1.8.0-r1 )
system-av1? (
- >=media-libs/dav1d-1.0.0:=
- >=media-libs/libaom-3.10.0:=
+ >=media-libs/dav1d-1.5.4:=
+ >=media-libs/libaom-3.12.1:=
)
system-harfbuzz? (
>=media-libs/harfbuzz-2.8.1:0=
@@ -143,7 +143,7 @@ COMMON_DEPEND="${FF_ONLY_DEPEND}
system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= )
system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
- system-pipewire? ( >=media-video/pipewire-1.4.7-r2:= )
+ system-pipewire? ( >=media-video/pipewire-1.6.8:= )
system-png? ( >=media-libs/libpng-1.6.45:0=[apng] )
system-webp? ( >=media-libs/libwebp-1.1.0:0= )
valgrind? ( dev-debug/valgrind )
@@ -780,7 +780,6 @@ src_configure() {
# riscv-related options, bgo#947337, bgo#947338, bgo#977845
if use riscv ; then
mozconfig_add_options_ac 'Disable webrtc for RISC-V' --disable-webrtc
- mozconfig_add_options_ac 'Disable JIT for RISC-V' --disable-jit
fi
mozconfig_use_enable valgrind
diff --git a/x11-libs/motif/files/motif-2.5.2-DrawLine.patch b/x11-libs/motif/files/motif-2.5.2-DrawLine.patch
new file mode 100644
index 000000000000..fd67b392f31b
--- /dev/null
+++ b/x11-libs/motif/files/motif-2.5.2-DrawLine.patch
@@ -0,0 +1,22 @@
+https://bugs.gentoo.org/983119
+Patch backported from upstream
+
+commit f2c490cc233d2d55cd7c1eade9431d9711de375d
+Author: Tim Hentenaar <tim@hentenaar.com>
+Date: Mon, 4 May 2026 07:29:32 +0000
+
+ XmString: DrawLine: If there's only a single segment, don't deref
+
+--- motif-2.5.2/lib/Xm/XmString.c
++++ motif-2.5.2/lib/Xm/XmString.c
+@@ -3737,7 +3737,9 @@
+ Boolean set_direction = False;
+ XmDirection lay_dir = prim_dir; /* layout direction of this line */
+
+- seg = _XmEntrySegmentGet(line)[seg_index];
++ if (_XmEntryMultiple(line))
++ seg = _XmEntrySegment(line)[seg_index];
++ else seg = (_XmStringNREntry)line;
+
+ if (_XmEntryType(seg) != XmSTRING_ENTRY_OPTIMIZED) {
+ lay_dir = _XmEntryLayoutGet(seg, prim_dir);
diff --git a/x11-libs/motif/motif-2.5.2-r1.ebuild b/x11-libs/motif/motif-2.5.2-r2.ebuild
index 012efb7473aa..74e5bffa2365 100644
--- a/x11-libs/motif/motif-2.5.2-r1.ebuild
+++ b/x11-libs/motif/motif-2.5.2-r2.ebuild
@@ -49,7 +49,10 @@ DEPEND="${RDEPEND}
BDEPEND="sys-devel/flex
dev-util/byacc"
-PATCHES=( "${FILESDIR}/${P}-configure-posix.patch" )
+PATCHES=(
+ "${FILESDIR}/${P}-configure-posix.patch"
+# "${FILESDIR}/${P}-DrawLine.patch"
+)
src_prepare() {
default