Page MenuHomeFreeBSD

www/firefox, www/seamonkey: unbreak build with base libstdc++ on i386, powerpc
ClosedPublic

Authored by jbeich on Jan 20 2015, 9:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 4:39 AM
Unknown Object (File)
Dec 12 2023, 2:11 PM
Unknown Object (File)
Dec 8 2023, 1:49 AM
Unknown Object (File)
Oct 16 2023, 11:02 PM
Unknown Object (File)
Oct 13 2023, 4:51 PM
Unknown Object (File)
Oct 12 2023, 11:42 AM
Unknown Object (File)
Jun 21 2023, 3:10 AM
Unknown Object (File)
Jun 13 2023, 7:05 AM
Subscribers

Details

Reviewers
flo
Summary

Unbreak build with base libstdc++ on i386 and powerpc

std::abs(int64_t) for 32bit archs or std::llabs are not available in
base libstdc++ or before 10.0-RELEASE (r255294) for libstdc++ in
lang/gcc47 and earlier (libstdc++/54686). To avoid the build error use
mozilla::Abs which implements overloads for all signed natural types
but has unsigned return value.

This change won't be requried for Firefox 36 et al.

PR: 196772
Reported by: many
Patch by: bar (initial version)
Obtained from: https://github.com/mozilla/gecko-dev/commit/e664fe8
Approved by: flo (mentor)
MFH: 2015Q1

Test Plan

A few |poudriere bulk| logs are attached to the bug. The rest is
assumed to work fine - too many combinations to test.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

jbeich retitled this revision from to www/firefox, www/seamonkey: unbreak build with base libstdc++ on i386, powerpc.
jbeich updated this object.
jbeich edited the test plan for this revision. (Show Details)
jbeich added a reviewer: flo.
jbeich added a subscriber: beat.
flo edited edge metadata.

Approved.

This revision is now accepted and ready to land.Jan 20 2015, 9:58 PM