git: bc43faef5fc5 - 2024Q2 - www/*chromium: check for non-portable pthread functions in pthread_np.h only

From: Robert Nagy <rnagy_at_FreeBSD.org>
Date: Thu, 25 Apr 2024 07:50:55 UTC
The branch 2024Q2 has been updated by rnagy:

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

commit bc43faef5fc5d7e7bf0f89c7bcdcbb94dd683ef6
Author:     Robert Nagy <rnagy@FreeBSD.org>
AuthorDate: 2024-04-25 07:50:04 +0000
Commit:     Robert Nagy <rnagy@FreeBSD.org>
CommitDate: 2024-04-25 07:50:50 +0000

    www/*chromium: check for non-portable pthread functions in pthread_np.h only
    
    PR:     278560
    (cherry picked from commit 9fa5ded7494b548e2aca67bc839845d68604758f)
---
 www/chromium/files/patch-third__party_ffmpeg_configure      | 13 +++++++++++++
 .../files/patch-third__party_ffmpeg_configure               | 13 +++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/www/chromium/files/patch-third__party_ffmpeg_configure b/www/chromium/files/patch-third__party_ffmpeg_configure
new file mode 100644
index 000000000000..4ef45be429b6
--- /dev/null
+++ b/www/chromium/files/patch-third__party_ffmpeg_configure
@@ -0,0 +1,13 @@
+--- third_party/ffmpeg/configure.orig	2024-04-25 07:48:13 UTC
++++ third_party/ffmpeg/configure
+@@ -6713,8 +6713,8 @@ if ! disabled pthreads && ! enabled w32threads && ! en
+         if enabled pthread_np_h; then
+             hdrs="$hdrs pthread_np.h"
+         fi
+-        check_lib pthread_set_name_np "$hdrs" pthread_set_name_np -lpthread
+-        check_lib pthread_setname_np "$hdrs" pthread_setname_np -lpthread
++        check_lib pthread_set_name_np pthread_np.h pthread_set_name_np -lpthread
++        check_lib pthread_setname_np pthread_np.h pthread_setname_np -lpthread
+     fi
+ fi
+ 
diff --git a/www/ungoogled-chromium/files/patch-third__party_ffmpeg_configure b/www/ungoogled-chromium/files/patch-third__party_ffmpeg_configure
new file mode 100644
index 000000000000..4ef45be429b6
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-third__party_ffmpeg_configure
@@ -0,0 +1,13 @@
+--- third_party/ffmpeg/configure.orig	2024-04-25 07:48:13 UTC
++++ third_party/ffmpeg/configure
+@@ -6713,8 +6713,8 @@ if ! disabled pthreads && ! enabled w32threads && ! en
+         if enabled pthread_np_h; then
+             hdrs="$hdrs pthread_np.h"
+         fi
+-        check_lib pthread_set_name_np "$hdrs" pthread_set_name_np -lpthread
+-        check_lib pthread_setname_np "$hdrs" pthread_setname_np -lpthread
++        check_lib pthread_set_name_np pthread_np.h pthread_set_name_np -lpthread
++        check_lib pthread_setname_np pthread_np.h pthread_setname_np -lpthread
+     fi
+ fi
+