FreeBSD Bugzilla – Attachment 236648 Details for
Bug 266470
www/firefox: 105.0_1,2 fails to build on i386
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-www-firefox-fix-build-on-i386
0001-www-firefox-fix-build-on-i386.patch (text/plain), 1.58 KB, created by
Felix Palmen
on 2022-09-17 21:17:19 UTC
(
hide
)
Description:
0001-www-firefox-fix-build-on-i386
Filename:
MIME Type:
Creator:
Felix Palmen
Created:
2022-09-17 21:17:19 UTC
Size:
1.58 KB
patch
obsolete
>From 26041002b7a272f609bc725006373b20d1c3f9e3 Mon Sep 17 00:00:00 2001 >From: Felix Palmen <zirias@FreeBSD.org> >Date: Sat, 17 Sep 2022 23:12:36 +0200 >Subject: [PATCH] www/firefox: fix build on i386 > >Fixes > >modules/fdlibm/src/math_private.h:33:21: error: typedef redefinition with different types ('double' vs 'long double') >typedef double __double_t; > ^ >/usr/include/x86/_types.h:87:21: note: previous definition is here >typedef long double __double_t; > ^ > >and the same error for __float_t, by just skipping these typedefs on FreeBSD. >--- > .../patch-modules_fdlibm_src_math__private.h | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > create mode 100644 www/firefox/files/patch-modules_fdlibm_src_math__private.h > >diff --git a/www/firefox/files/patch-modules_fdlibm_src_math__private.h b/www/firefox/files/patch-modules_fdlibm_src_math__private.h >new file mode 100644 >index 000000000000..5042d39beb53 >--- /dev/null >+++ b/www/firefox/files/patch-modules_fdlibm_src_math__private.h >@@ -0,0 +1,17 @@ >+the typedefs for __double_t and __float_t are redundant on FreeBSD, and wrong >+on 32bit architectures, so just skip them on FreeBSD. >+--- modules/fdlibm/src/math_private.h.orig 2022-09-17 17:36:31 UTC >++++ modules/fdlibm/src/math_private.h >+@@ -30,9 +30,11 @@ >+ * Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t >+ */ >+ >++#ifndef __FreeBSD__ >+ typedef double __double_t; >+-typedef __double_t double_t; >+ typedef float __float_t; >++#endif >++typedef __double_t double_t; >+ typedef __float_t float_t; >+ >+ /* >-- >2.37.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
zirias
:
maintainer-approval?
(
gecko
)
Actions:
View
|
Diff
Attachments on
bug 266470
: 236648 |
238289