Closed Bug 2004431 Opened 6 months ago Closed 6 months ago

The in-tree RPM requires glibc 2.34 because of libonnxruntime

Categories

(Release Engineering :: General, defect)

defect

Tracking

(firefox147 fixed)

RESOLVED FIXED
Tracking Status
firefox147 --- fixed

People

(Reporter: eijebong, Assigned: eijebong)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The documented minimal requirement is 2.17 but rpm detects the dependency on libc automatically by iterating over the .so, 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).

RPM provides ways of ignoring some files when detecting requirements, we should add libonnxruntime.so to it

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
>
Pushed by borivel@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a2ee9ef2cf4d https://hg.mozilla.org/integration/autoland/rev/bfeb5b06cef5 Ignore libonnxruntime.so when detecting RPM requirements. r=releng-reviewers,hneiva
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: