git: 267bcb9622cf - main - www/*chromium: unbreak build on i386

From: Robert Nagy <rnagy_at_FreeBSD.org>
Date: Tue, 06 Feb 2024 12:09:55 UTC
The branch main has been updated by rnagy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=267bcb9622cf491934dc84bd27bb983768a24ac7

commit 267bcb9622cf491934dc84bd27bb983768a24ac7
Author:     Robert Nagy <rnagy@FreeBSD.org>
AuthorDate: 2024-02-06 12:09:31 +0000
Commit:     Robert Nagy <rnagy@FreeBSD.org>
CommitDate: 2024-02-06 12:09:47 +0000

    www/*chromium: unbreak build on i386
---
 ...third__party_perfetto_src_trace__processor_db_column.h | 15 +++++++++++++++
 ...third__party_perfetto_src_trace__processor_db_column.h | 15 +++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/www/chromium/files/patch-third__party_perfetto_src_trace__processor_db_column.h b/www/chromium/files/patch-third__party_perfetto_src_trace__processor_db_column.h
new file mode 100644
index 000000000000..1eac1a4617f9
--- /dev/null
+++ b/www/chromium/files/patch-third__party_perfetto_src_trace__processor_db_column.h
@@ -0,0 +1,15 @@
+--- third_party/perfetto/src/trace_processor/db/column.h.orig	2024-02-06 12:08:38 UTC
++++ third_party/perfetto/src/trace_processor/db/column.h
+@@ -48,6 +48,12 @@ template <>
+ struct ColumnTypeHelper<int64_t> {
+   static constexpr ColumnType ToColumnType() { return ColumnType::kInt64; }
+ };
++#if (defined(__OpenBSD__) || defined(__FreeBSD__)) && defined(__i386__)
++template <>
++struct ColumnTypeHelper<long double> {
++  static constexpr ColumnType ToColumnType() { return ColumnType::kDouble; }
++};
++#endif
+ template <>
+ struct ColumnTypeHelper<double> {
+   static constexpr ColumnType ToColumnType() { return ColumnType::kDouble; }
diff --git a/www/ungoogled-chromium/files/patch-third__party_perfetto_src_trace__processor_db_column.h b/www/ungoogled-chromium/files/patch-third__party_perfetto_src_trace__processor_db_column.h
new file mode 100644
index 000000000000..1eac1a4617f9
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-third__party_perfetto_src_trace__processor_db_column.h
@@ -0,0 +1,15 @@
+--- third_party/perfetto/src/trace_processor/db/column.h.orig	2024-02-06 12:08:38 UTC
++++ third_party/perfetto/src/trace_processor/db/column.h
+@@ -48,6 +48,12 @@ template <>
+ struct ColumnTypeHelper<int64_t> {
+   static constexpr ColumnType ToColumnType() { return ColumnType::kInt64; }
+ };
++#if (defined(__OpenBSD__) || defined(__FreeBSD__)) && defined(__i386__)
++template <>
++struct ColumnTypeHelper<long double> {
++  static constexpr ColumnType ToColumnType() { return ColumnType::kDouble; }
++};
++#endif
+ template <>
+ struct ColumnTypeHelper<double> {
+   static constexpr ColumnType ToColumnType() { return ColumnType::kDouble; }