Re: git: edae8a1c0404 - main - www/firefox: fix build on 32bit

From: Tijl Coosemans <tijl_at_coosemans.org>
Date: Thu, 07 Oct 2021 07:50:11 UTC
On Sat, 2 Oct 2021 21:10:57 GMT Christoph Moench-Tegeder
<cmt@FreeBSD.org> wrote:
> The branch main has been updated by cmt:
> 
> URL: https://cgit.FreeBSD.org/ports/commit/?id=edae8a1c040482b1cc559eee4f6d626288d54965
> 
> commit edae8a1c040482b1cc559eee4f6d626288d54965
> Author:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
> AuthorDate: 2021-10-02 21:08:43 +0000
> Commit:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
> CommitDate: 2021-10-02 21:08:43 +0000
> 
>     www/firefox: fix build on 32bit
>     
>     this brings the double_t-related typedefs in line with our definitions
>     and brings back the rounding helpers for those.
>     
>     PR:             258804
>     Reported by:    Felix Palmen
> ---
>  www/firefox/files/patch-bug1729459_comment12 | 93 ++++++++++++++++++++++++++++
>  1 file changed, 93 insertions(+)
> 
> diff --git a/www/firefox/files/patch-bug1729459_comment12 b/www/firefox/files/patch-bug1729459_comment12
> new file mode 100644
> index 000000000000..dda42170f71b
> --- /dev/null
> +++ b/www/firefox/files/patch-bug1729459_comment12
> @@ -0,0 +1,93 @@
> +--- modules/fdlibm/src/math_private.h.orig	2021-09-30 19:32:33.764224000 +0200
> ++++ modules/fdlibm/src/math_private.h	2021-10-02 22:15:33.265122000 +0200
> +@@ -30,7 +30,11 @@
> +  * Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t
> +  */
> + 
> +-typedef double      __double_t;
> ++#ifdef __LP64__
> ++typedef double __double_t;
> ++#else
> ++typedef long double __double_t;
> ++#endif
> + typedef __double_t  double_t;

It's only long double on i386, not all 32 bit architectures.