From patchwork Wed May 12 20:42:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 1477831 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=QZng3mPr; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FgRZX2ztKz9sVt for ; Thu, 13 May 2021 06:43:16 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id DB94283183; Wed, 12 May 2021 20:43:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WRrYQysVTwc0; Wed, 12 May 2021 20:43:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 29FF48319F; Wed, 12 May 2021 20:43:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id B0EBC1C1178 for ; Wed, 12 May 2021 20:42:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id A4A4F40694 for ; Wed, 12 May 2021 20:42:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yG7N5iVdItlz for ; Wed, 12 May 2021 20:42:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by smtp4.osuosl.org (Postfix) with ESMTPS id 2BC6040675 for ; Wed, 12 May 2021 20:42:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620852172; bh=KTE6s+67lcUe3SAK7WjpTN+0TfbChk8ERoegRtRwcYM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=QZng3mPrnEatLHwRxmxl1AyeKteq3qtrSeMMHSOKsIRrBOX1RlafQn1yC7Zfh0HT/ bgIgvBOb+os3ezn9dKNTtAPpALWhxT8Vceulli3M4yP3RxfNpzPe0YC6ru7ErPR7Kb ctQj2U6+qTmI8gVpKleAom0YcpKQKFGfWRSWsacg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.fritz.box ([62.216.209.75]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M8ygY-1lbxcI0Eis-006A1i; Wed, 12 May 2021 22:42:52 +0200 From: Peter Seiderer To: buildroot@buildroot.org Date: Wed, 12 May 2021 22:42:50 +0200 Message-Id: <20210512204251.28928-1-ps.report@gmx.net> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:hgUktKQn6KhELDnT57GuN0zlL6NS8IsUfqB32M5b1UwhEVYdk3o S5WVQe32WV04w2CyLJFkJ7B/vF2+97oUXOF5e/BSxhHaqra3reF9C0RSbXfzAfTn55MY8Tg tmZY7cCcH/IlW1qGJXfwRCq+NSuUl5NeXSvqcBWTFDxzaXE2b4v0kSAkm8T+zngELFamUeK 4ZzG7gKQktv9nIUH8FFZA== X-UI-Out-Filterresults: notjunk:1;V03:K0:jy+4EyKS/4U=:gQyCdjyrsvq+TMnfEkxibE WsFAQHn7dgf1/MhMfnwQJR+av01tO7n6ly4UPELfVf1HElxauNn3kIDiqVrh5EXhDSNcHZArT Svl/HPfEK2ZU9QmsAKlbLNsTwtAWjpaDzAoEbawEdPLnk3+hKd1fh7hTVLzvarnoAi3hiZb5e sx9n++vpwOl279nsFXxZW+hqar1uRtZ4w28l98X828f5d6//Pk3AeXAitxfatiONjJ30MMZkT ML7AOL0BwgHKU408euiobBhm7OiEsO0ZLoZLesqND+QrIp+lwdpIb6UfMfk6FvBTloSkJWPoA gRr75hbu354Mz0gkWIJxzm2W/rkry9tJHN/b/YrzqUvZEOP672DCMfba7iw1ynRWcrt64b2Gs dF9N6VUA4kq2wdUm9G9etMHYuRVmURwRI3nBusND9hNqDlGDPdpWA4zFSUJOEy5xJ+GJLOsxU yFDOYFH5sTTMUv0/ZOJwXDVe5S9Fa/7xpLWGPNg+g2JqjBcrJG7fUU57LFFk+Ez0QGgd/V05X jzXvyAJmuKgGJVqJEG/o8jXmigKLsPWgquqbVq60MIDqjWg9NuRZDz0Cw4nbDjNfezTZTnNoi DeMJQJXK8+xY5nwWZkIcOa2tjvYCqPXHT3pL5S7jumAjiKFxDtcjcmP7IOQUU2SNBEb8hxD3k wGJ2ZoxijKmDTTK4t9hglNLUE37dbDjJkXO1jugmAXIefp6vDbhc5hMdaNQ9nPI8+ZtkGz6zO q4uAxnsohaA0m3rteHEsvMsX89kpfr6tc4JfSGvJDgfuZX00QVRcEr2GGJlSPnE4L3NSODTPt FNSPM0kprzezl7yFgMxgXYgU0AhpEWm3541F85PUfjSkJPqzVVqosjFZubyAdtms44XgS+pcS W/3APC7hnSMF66+10yRanRBW3cg3TyEXy8IKndOmmF5FrTkdq7WVu7j6wnv2kYl8JNyt4ei7Q WpBPoqkhS6FYo2jojeUhobhHgZzefahXoxO6Os4jehx1g1IB5VsAUB4mId0Qm7QXuqTQsuqne OircGB7LLfRpiTxJMLa0I6ZrwF/sG5jxOzBKjmwrNGBGUoT0bdUuJsdjweMZTviiMG7l2gWtM ROAUWok1LMFzJMmsGtFFik/89XMgNJKFxLb7tcQs7EP36CKIMfN2vslHIwuL7lwAOJsoT/klQ XwZbT3LHXrssftprzJV2KPkfb5tGUSvXPQSmfyNcYzVoT1Gp0eEeBv5a1ODq15mxc1vtU= Subject: [Buildroot] [PATCH v1 1/2] package/pipewire: bump version to 0.3.27 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: James Hilliard , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" - remove 0001-meson-prefer-libintl-on-FreeBSD.patch (from upstream [1]) [1] https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/4d064a37183a0bf8198914dd68b063b2c9def17e Signed-off-by: Peter Seiderer --- ...0001-meson-prefer-libintl-on-FreeBSD.patch | 46 ------------------- package/pipewire/pipewire.hash | 2 +- package/pipewire/pipewire.mk | 2 +- 3 files changed, 2 insertions(+), 48 deletions(-) delete mode 100644 package/pipewire/0001-meson-prefer-libintl-on-FreeBSD.patch diff --git a/package/pipewire/0001-meson-prefer-libintl-on-FreeBSD.patch b/package/pipewire/0001-meson-prefer-libintl-on-FreeBSD.patch deleted file mode 100644 index b19715b2e8..0000000000 --- a/package/pipewire/0001-meson-prefer-libintl-on-FreeBSD.patch +++ /dev/null @@ -1,46 +0,0 @@ -From 4d064a37183a0bf8198914dd68b063b2c9def17e Mon Sep 17 00:00:00 2001 -From: Evgeniy Khramtsov -Date: Fri, 23 Apr 2021 22:57:51 +0300 -Subject: [PATCH] meson: prefer libintl on FreeBSD - -FreeBSD does not have gettext in libc. -It is implemented in the third-party library. - -[Retrieved from: -https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/4d064a37183a0bf8198914dd68b063b2c9def17e] -Signed-off-by: Fabrice Fontaine ---- - meson.build | 3 +++ - src/pipewire/meson.build | 2 +- - 2 files changed, 4 insertions(+), 1 deletion(-) - -diff --git a/meson.build b/meson.build -index 99a4b2d1c..0a9963fbb 100644 ---- a/meson.build -+++ b/meson.build -@@ -351,6 +351,9 @@ libinotify_dep = (build_machine.system() == 'freebsd' - ? dependency('libinotify', required: true) - : dependency('', required: false)) - -+# On FreeBSD, libintl library is required for gettext -+libintl_dep = cc.find_library('intl', required: false) -+ - alsa_dep = dependency('alsa', version : '>=1.1.7', required: get_option('pipewire-alsa')) - - installed_tests_metadir = pipewire_datadir / 'installed-tests' / pipewire_name -diff --git a/src/pipewire/meson.build b/src/pipewire/meson.build -index 7f2d42a7a..d4c271373 100644 ---- a/src/pipewire/meson.build -+++ b/src/pipewire/meson.build -@@ -101,7 +101,7 @@ libpipewire = shared_library(pipewire_name, pipewire_sources, - c_args : libpipewire_c_args, - include_directories : [pipewire_inc, configinc, spa_inc], - install : true, -- dependencies : [dl_lib, mathlib, pthread_lib, ], -+ dependencies : [dl_lib, mathlib, pthread_lib, libintl_dep, ], - ) - - pipewire_dep = declare_dependency(link_with : libpipewire, --- -GitLab - diff --git a/package/pipewire/pipewire.hash b/package/pipewire/pipewire.hash index 4d2548e3ab..7c26e2ab29 100644 --- a/package/pipewire/pipewire.hash +++ b/package/pipewire/pipewire.hash @@ -1,4 +1,4 @@ # Locally calculated -sha256 05cc9d25de45290c025da5da1b94fc705bddacd93cf3690d0b2988c1ac501ee1 pipewire-0.3.26.tar.gz +sha256 657db1b9a29ae17a9f1d9782a45bda2ba5a893fef55e1ca26453e8f7f2d4e64e pipewire-0.3.27.tar.gz sha256 8909c319a7e27dbb33a15b9035f89ab3b7b2f6a12f8bcddc755206a8db1ada44 COPYING sha256 7db6138b0385e260ae8f09f050ea66c4e4fe775a11060d7f6ca2beb47f192d6f LICENSE diff --git a/package/pipewire/pipewire.mk b/package/pipewire/pipewire.mk index e5185aeb8c..8abbfc35be 100644 --- a/package/pipewire/pipewire.mk +++ b/package/pipewire/pipewire.mk @@ -4,7 +4,7 @@ # ################################################################################ -PIPEWIRE_VERSION = 0.3.26 +PIPEWIRE_VERSION = 0.3.27 PIPEWIRE_SITE = $(call github,PipeWire,pipewire,$(PIPEWIRE_VERSION)) PIPEWIRE_LICENSE = MIT PIPEWIRE_LICENSE_FILES = COPYING LICENSE From patchwork Wed May 12 20:42:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 1477830 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=AF2+RuPC; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FgRZJ3cvtz9sVt for ; Thu, 13 May 2021 06:43:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 5376740675; Wed, 12 May 2021 20:43:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vj_c0R9C74St; Wed, 12 May 2021 20:42:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 960CF40694; Wed, 12 May 2021 20:42:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9123A1BF281 for ; Wed, 12 May 2021 20:42:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 8057D8319F for ; Wed, 12 May 2021 20:42:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7ZLE1pkDbUXK for ; Wed, 12 May 2021 20:42:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by smtp1.osuosl.org (Postfix) with ESMTPS id 2AC0583183 for ; Wed, 12 May 2021 20:42:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620852172; bh=rd0OB8IQZxwMJ0nfIr6mThOXj5u35yFsFW7mDZ1e1z0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=AF2+RuPC9AfjzaLLo1fFCpB/giv2XlP8ts5aZ06cddloixcgnlLR6RmxA/WntgAxL dvdfxw1/Aub3CzoLQaOp5a1CBo6XXCVNUYLSstxr7Zm/XfhRvznloeIqpy++zh1AzQ DSf6+zaGUTETMSo+gcb8hv2sSOjJamzUq7tU2REU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.fritz.box ([62.216.209.75]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N9dwj-1lT3Pt1Xd7-015WGv; Wed, 12 May 2021 22:42:52 +0200 From: Peter Seiderer To: buildroot@buildroot.org Date: Wed, 12 May 2021 22:42:51 +0200 Message-Id: <20210512204251.28928-2-ps.report@gmx.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512204251.28928-1-ps.report@gmx.net> References: <20210512204251.28928-1-ps.report@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:cUQWz0WrsR5QM21mnfne3tExnTvOiulona56daQOEpxqeMYvGRi kFjh2mPenXQLQfPTQ18WIR1e9Wve+Xh0bbNnZ1dWrUIDFtb3HtrGTwced6TthAcEk5/WL4u FI5Q/B/F5ViOqw6qtmrsQP2x9yVNGNBmtH5I60GJo2co9yVGip74aBEFL3e+39QeT4JI1+E 931vySBZJB0ltBSo5PUiw== X-UI-Out-Filterresults: notjunk:1;V03:K0:HeszwSe+Dsw=:Pa4kclhjXCOcaO+WfDquN+ k6Fw13cNrTCNbTNqYM2JfjZGsFnZCRFVNpkbAyKmVG6vc2UOFLCg3z5wg1lWI55BPQyp72A5J HLa4CsJVsOJFBxbWM9qc6Gsm6ewxde19ei7BF3REvLY512ePLmh/CSdo8AsGD9w0rz0bgIHwM L5df3Xi8Xfp8Dh/IOGCJ1gqUflQthNB1ZV1gwWH6dLFypxrR2a9q8YJycSmgdLXV26aCJtvk1 zueuUZMRCFcMOgXQtxZvWZMI1++6cddV3SgNsT/oOdbKWqpaupNco149+c5+HWuEePY0pS5uc F2JGFSrOqqpHHoxH6rb9F6z3QwTxSv93mCWPH289Ql2YSs8ZhyTW2DEiuhDfxs0v/WuI6tm0d kLkzh4znv8kX5WiWMr59eBo0IvBmXhHiXK32n5BjBdSNQOo+W0nogqruDoCJ3xcM86lyrqh6O qrtVY7HT0ZQFGGakMNfMzRHNN4Trgen/pvCWJT3i6XptV9PH1D1QQUHqqXLgttSW9EXaCdVQT HHSvCGdV+BbLYpw4iAEXIyw59zEvkTIw9tAh8GFo77MdVxf1K18cTPLiyYrUCb6r9GGLFuCP0 v/QoKsCdvLfNB/md67/CfmI8VCaAVOKkCp69a3jgdYjuPTLEjh0CGQMyVJtLPZYQbJ8XUku9H VTrG3kgZgxAomKi3TYejJxl1q8tnXnvMkjcEcz5yi9r/Q9qe8lWUX6ByRPjU5rp7kMRiyrdha 9eUJHbab4lc5PX8NM4Y/V2yhvqp/VY/wbpjvA6f0EDgpa/8nomlyEajrUylMovDtB0luYgfzE kDBJrOQRvZx/r6jOv5tzkxqh9NpsD5R0YFFyQB03C3RTpDL5kp5/jfKVQDJlBHCxBbKAEfp+e DeRzEr8yORdsrT9DAHBUXiFiAHvXzhx41nOkYjWR0nMxYNLmZtdIvGlqyuJO9K3KdyJAsIXnP Uu+vMOe6IiwS4qNHyCEhA+WcittEq6BCjq5xdgn6Y6dybck0/hpS8p0XKoW02997xB8dB8o5U gANA+R8D1F3IRgpDHI1WGqy60rNsGorHei2Ka7yEU6pH+5JYMv1G+BfSS546tpoFUydgU9NTa 0mgemOb8YllokyInQFwao6uCgw5/aIxON3f1wuu09jWxZStP80sAjdWYMLdjJyssjnkZKUku+ P/YJDkk0pM3bHBEVNpIdqWV68bNy5ULHhKSS7RbgSEUf6UEdBBmqMMi8ysXcgiMWu8BOk= Subject: [Buildroot] [PATCH v1 2/2] package/pipewire: fix uclibc compile (getrandom related) X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: James Hilliard , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The getrandom() detection from meson.build failes with the following error message: .../host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:27:35: error: unknown type name 'size_t' 27 | extern int getrandom(void *__buf, size_t count, unsigned int flags) | ^~~~~~ .../host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:8:1: note: 'size_t' is defined in header ''; did you forget to '#include '? Fix it by adding stddef.h include to the meson getrandom() detection. Fixes: - http://autobuild.buildroot.net/results/7e131bec458bf5c263ee1858d38ed5dc3cf704a6 ../src/pipewire/impl-core.c:54:9: error: conflicting types for ‘getrandom’ 54 | ssize_t getrandom(void *buf, size_t buflen, unsigned int flags) { | ^~~~~~~~~ In file included from ../src/pipewire/impl-core.c:34: .../host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:27:12: note: previous declaration of ‘getrandom’ was here 27 | extern int getrandom(void *__buf, size_t count, unsigned int flags) | ^~~~~~~~~ Signed-off-by: Peter Seiderer --- Notes: - maybe this failure is more a uclibc defect (missing include in sys/random.h) and should be fixed there? - fix for same/similare failure was suggested already here [1] (by adding -D_GNU_SOURCE), and suggestd patch is accepted/merged upstream and is already present in the 0.3.27 source code, but did not fix the failure... [1] https://patchwork.ozlabs.org/project/buildroot/patch/20210504211016.1216759-1-fontaine.fabrice@gmail.com/ --- ...n-fix-getrandom-detection-for-uclibc.patch | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 package/pipewire/0002-meson-fix-getrandom-detection-for-uclibc.patch diff --git a/package/pipewire/0002-meson-fix-getrandom-detection-for-uclibc.patch b/package/pipewire/0002-meson-fix-getrandom-detection-for-uclibc.patch new file mode 100644 index 0000000000..e902869ce9 --- /dev/null +++ b/package/pipewire/0002-meson-fix-getrandom-detection-for-uclibc.patch @@ -0,0 +1,49 @@ +From a36bc959768e100d2d72e027746e3a9d95cf29af Mon Sep 17 00:00:00 2001 +From: Peter Seiderer +Date: Wed, 12 May 2021 22:08:39 +0200 +Subject: [PATCH] meson: fix getrandom detection for uclibc +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The getrandom() detection from meson.build failes with the following error +message: + + .../host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:27:35: error: unknown type name 'size_t' + 27 | extern int getrandom(void *__buf, size_t count, unsigned int flags) + | ^~~~~~ + .../host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:8:1: note: 'size_t' is defined in header ''; did you forget to '#include '? + +Fix it by adding stddef.h include to the meson getrandom() detection. + +Fixes: + + ../src/pipewire/impl-core.c:54:9: error: conflicting types for ‘getrandom’ + 54 | ssize_t getrandom(void *buf, size_t buflen, unsigned int flags) { + | ^~~~~~~~~ + In file included from ../src/pipewire/impl-core.c:34: + .../host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:27:12: note: previous declaration of ‘getrandom’ was here + 27 | extern int getrandom(void *__buf, size_t count, unsigned int flags) + | ^~~~~~~~~ + +Signed-off-by: Peter Seiderer +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 03a9d174..01b4c7c8 100644 +--- a/meson.build ++++ b/meson.build +@@ -274,7 +274,7 @@ if cc.has_function('memfd_create', prefix : '#include ', args : [ '- + cdata.set('HAVE_MEMFD_CREATE', 1) + endif + +-if cc.has_function('getrandom', prefix : '#include ', args : [ '-D_GNU_SOURCE' ]) ++if cc.has_function('getrandom', prefix : '#include \n#include ', args : [ '-D_GNU_SOURCE' ]) + cdata.set('HAVE_GETRANDOM', 1) + endif + +-- +2.31.1 +