From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 8687E47DB7 for ; Wed, 27 Dec 2023 16:25:52 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8DB8768CA0D; Wed, 27 Dec 2023 18:25:40 +0200 (EET) Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [208.88.110.44]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 722C368C7B6 for ; Wed, 27 Dec 2023 18:25:32 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 0AF369C4180 for ; Wed, 27 Dec 2023 11:25:30 -0500 (EST) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10032) with ESMTP id ymxwdlNrpkrh; Wed, 27 Dec 2023 11:25:29 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id B6F7A9C40F9; Wed, 27 Dec 2023 11:25:29 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.savoirfairelinux.com B6F7A9C40F9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savoirfairelinux.com; s=DFC430D2-D198-11EC-948E-34200CB392D2; t=1703694329; bh=eMK354cbC/L8hN/IEudRmz/ZCTtZMsxxkxINbs3b27U=; h=From:To:Date:Message-Id:MIME-Version; b=dswJzgbo3XzX5K2Bdd2yyZu57mmLx7wyMG3Du0GP0cnOcGzuyqRAMuEU8Pi2GZryn wMYRoaQgfqpASkwjyWWQ22Qa68fn916+0ZZiH97pufOrY6Nq3QwfscGluA8iex8c2D G4iFlButf5miqwD/YitJFgYqPcdW+ygpe2VliuWCPAAqBpUnhC/1iwEtdzdwRGiC93 PrPnKlLVk67xo3iGgAjDPRBkuFUkcYY2fhynVCBqacVOza3ymh7JUmOM2EIpqG9OjX LPDqTrLXD49oTITcZkVvx6LZL28GLZwSUs3geu9pPmxVCrdtu0M9a+uiq2agdhmScg WW84YQgQugpNA== X-Virus-Scanned: amavis at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10026) with ESMTP id rfFWWlr12yFg; Wed, 27 Dec 2023 11:25:29 -0500 (EST) Received: from asuspc2.taile0726.ts.net (unknown [192.168.51.254]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 9EC999C29FB; Wed, 27 Dec 2023 11:25:29 -0500 (EST) From: Abhishek Ojha To: ffmpeg-devel@ffmpeg.org Date: Wed, 27 Dec 2023 11:25:03 -0500 Message-Id: <20231227162504.690730-2-abhishek.ojha@savoirfairelinux.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231227162504.690730-1-abhishek.ojha@savoirfairelinux.com> References: <20231227162504.690730-1-abhishek.ojha@savoirfairelinux.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] configure: disable locale use in spa plugin X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Abhishek Ojha Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: This commit requires to resolve the compilation error of pipewiregrab because Pipewire's spa plugin is requesting locale_t extension to compile. Which was added in POSIX 2008 but ffmpeg is using POSIX 2001 due to which spa plugin complains. __LOCALE_C_ONLY flag is set to disable the locale usage in spa plugin. Adding it in configure file fix both the library test and source compilation issue. Not sure if this is the right approach to fix the issue. Feedback/Suggestions will be highly appreciated. Signed-off-by: Abhishek Ojha --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 375327d5fa..442d004258 100755 --- a/configure +++ b/configure @@ -7106,6 +7106,8 @@ if enabled libxcb; then enabled libxcb_xfixes && check_pkg_config libxcb_xfixes xcb-xfixes xcb/xfixes.h xcb_xfixes_get_cursor_image fi +# _POSIX_C_SOURCE=200112 doesn't support locale +add_cppflags -D__LOCALE_C_ONLY enabled libpipewire && check_pkg_config libpipewire "libpipewire-0.3 >= 0.3.40" pipewire/pipewire.h pw_init if enabled libpipewire; then enabled libgio_unix && check_pkg_config libgio_unix gio-unix-2.0 gio/gio.h g_main_loop_new -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".