tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit a2ee9ef2cf4d68b359f8f60649b9cfe90fb0619c
parent 784cf2685fdf08c2f6786db5448d7088c2b129b0
Author: Bastien Orivel <borivel@mozilla.com>
Date:   Fri,  5 Dec 2025 18:14:12 +0000

Bug 2004431 - Ignore libonnxruntime.so when detecting RPM requirements. r=releng-reviewers,hneiva

The documented minimal requirement is 2.17 but the rpm packaging detects
the dependency on libc automatically by iterating over the .so files. It
finds libonnxruntime and marks the whole package as requiring glibc 2.34
because that particular library does. However, said library is loaded
dynamically at runtime and it fails gracefully if it cannot be loaded
(by not providing inference in the browser).

Before:

```
> rpm -qp --requires firefox-147.0a1.linux-x86_64.rpm | grep GLIBC_2.34
libc.so.6(GLIBC_2.34)(64bit)
>
```

After:

```
> rpm -qp --requires /tmp/rpm-output/firefox-default-147.0a1-20251201112216.x86_64.rpm | grep GLIBC_2.34
>
```

Differential Revision: https://phabricator.services.mozilla.com/D275288

Diffstat:
Mbrowser/installer/linux/app/rpm/firefox.spec.j2 | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/browser/installer/linux/app/rpm/firefox.spec.j2 b/browser/installer/linux/app/rpm/firefox.spec.j2 @@ -13,6 +13,8 @@ Source2: %{name}.1 Source{{ loop.index + 2 }}: {{ metadata.extension_id }}.xpi {%- endfor %} +%global __requires_exclude_from ^/usr/lib/firefox.*/libonnxruntime\\.so$ + %global mozappdir /{{ PKG_INSTALL_PATH }} %global appdir %{_datadir}/applications/