Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jun 2020 14:20:33 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r540515 - head/www/firefox/files
Message-ID:  <202006261420.05QEKXTK076492@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Fri Jun 26 14:20:32 2020
New Revision: 540515
URL: https://svnweb.freebsd.org/changeset/ports/540515

Log:
  www/firefox: unbreak on 11.3 aarch64/amd64 after r539972
  
  mozglue/baseprofiler/core/shared-libraries-linux.cc:374:34: error: use of undeclared identifier 'NT_GNU_BUILD_ID'
        if (note_header->n_type == NT_GNU_BUILD_ID) break;
                                   ^
  
  Reported by:	leres, pkg-fallout

Added:
  head/www/firefox/files/patch-freebsd11.3   (contents, props changed)

Added: head/www/firefox/files/patch-freebsd11.3
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/firefox/files/patch-freebsd11.3	Fri Jun 26 14:20:32 2020	(r540515)
@@ -0,0 +1,60 @@
+Drop after FreeBSD 11.3 EOL around 2020-09-20.
+https://svnweb.freebsd.org/changeset/base/351766
+
+mozglue/baseprofiler/core/shared-libraries-linux.cc:374:34: error: use of undeclared
+      identifier 'NT_GNU_BUILD_ID'
+      if (note_header->n_type == NT_GNU_BUILD_ID) break;
+                                 ^
+In file included from Unified_cpp_mozglue_baseprofiler0.cpp:137:
+mozglue/baseprofiler/lul/LulElf.cpp:762:32: error: use of undeclared identifier
+      'NT_GNU_BUILD_ID'
+    if (note_header->n_type == NT_GNU_BUILD_ID) break;
+                               ^
+In file included from Unified_cpp_tools_profiler1.cpp:38:
+tools/profiler/lul/LulElf.cpp:776:32: error: use of undeclared identifier
+      'NT_GNU_BUILD_ID'
+    if (note_header->n_type == NT_GNU_BUILD_ID) break;
+                               ^
+
+--- mozglue/baseprofiler/core/shared-libraries-linux.cc.orig	2020-06-25 17:04:48 UTC
++++ mozglue/baseprofiler/core/shared-libraries-linux.cc
+@@ -50,6 +50,11 @@ extern "C" MOZ_EXPORT __attribute__((weak)) int dl_ite
+ #  define ElfW(type) Elf_##type
+ #endif
+ 
++#if defined(GP_OS_freebsd) && !defined(NT_GNU_BUILD_ID)
++// FreeBSD < 11.4 doesn't define NT_GNU_BUILD_ID
++#  define NT_GNU_BUILD_ID 3
++#endif
++
+ // ----------------------------------------------------------------------------
+ // Starting imports from toolkit/crashreporter/google-breakpad/, as needed by
+ // this file when moved to mozglue.
+--- mozglue/baseprofiler/lul/LulElf.cpp.orig	2020-06-25 17:04:48 UTC
++++ mozglue/baseprofiler/lul/LulElf.cpp
+@@ -79,6 +79,11 @@
+ #  define EM_AARCH64 183
+ #endif
+ 
++#if defined(GP_OS_freebsd) && !defined(NT_GNU_BUILD_ID)
++// FreeBSD < 11.4 doesn't define NT_GNU_BUILD_ID
++#  define NT_GNU_BUILD_ID 3
++#endif
++
+ // This namespace contains helper functions.
+ namespace {
+ 
+--- tools/profiler/lul/LulElf.cpp.orig	2020-06-25 17:05:05 UTC
++++ tools/profiler/lul/LulElf.cpp
+@@ -84,6 +84,11 @@
+ #  define EM_AARCH64 183
+ #endif
+ 
++#if defined(GP_OS_freebsd) && !defined(NT_GNU_BUILD_ID)
++// FreeBSD < 11.4 doesn't define NT_GNU_BUILD_ID
++#  define NT_GNU_BUILD_ID 3
++#endif
++
+ // This namespace contains helper functions.
+ namespace {
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006261420.05QEKXTK076492>