From patchwork Mon Apr 8 13:15:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J. Dekker" X-Patchwork-Id: 47930 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:24a8:b0:1a3:b6bb:3029 with SMTP id m40csp2466901pzd; Mon, 8 Apr 2024 06:16:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUiE/uGqSQakUwV6SpapiVtvApdCs/2lyCwpOygAeI/Wo5luvJbVlILkVPMk2eowLeh8Vsm2k1QPZyvS/FCcJ+/4VA161IS0Tto/A== X-Google-Smtp-Source: AGHT+IGKZ8P7E3jQKqkQdSaS93mKbbfBlZEK2Dejw71aytg3V6p6XYK1Ji5CBW5j3qKEUd6O9vn5 X-Received: by 2002:a05:6512:3e17:b0:513:c4d9:a0d9 with SMTP id i23-20020a0565123e1700b00513c4d9a0d9mr8638957lfv.22.1712582175090; Mon, 08 Apr 2024 06:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712582175; cv=none; d=google.com; s=arc-20160816; b=sqDtu4POoDOYepI2hQOFvSXVZUPMIyH4HVnPFNn5Fv03O6Tko+BNZ8CVEoX0tf8KUi GEufj4ZF8vlnL515i2GTCv6kJFotet0whpkjZq6eszJqDrEF6lsIBzWPqt8z4hl2mTIa vgX9IDh+FYB4Z/9uS3P9zSdSiBWtjmXTqW+Pa0XKHi7DjTm8F7W+88EHTSQoXPl/kTGa ZNmaTpkPh5x6AKJpgsWwMTTygTiNInBH+YbHcbtm6cufknxOs+YJ3TVAIla523aQ6GgO 3dFsL0tAzsfJW0Mg6y9hPYWAyAiIGasLPoeamsWjdoHHYjOeGsD2BoN/SOAm2VIZEGPv LNww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from:feedback-id :dkim-signature:dkim-signature:delivered-to; bh=2QEyjAvPhG3ZS5NPBNPn0ow2hCzRMbw05OHZiOW3MAc=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=WRDDoSOI8to70ygX6RQDnG4YeAd4eFVlD2H9ZMX0IKM0qw+m3DcTi7MJOp8WH9AEFU NfyFdCg8XWL/EjIzKbbv0MbolbcbQHubRL8wl+lgEphh0+LAGpTQKYnVajXiBs7M4nNn lRWOL64e3SzCGFNAdS7XjCQt47x+q+rCNN1xybq5j5gwhi8HR0V9IBOeXW76B/gqDuTe +T1m2+sUa/KLCt+XaPI/xHGXNPiRgBY5HSVQOrqxC2qlITdYF+z1dc/L2uI1jOw6GtmF m4nVzPlKvnrwFu8uRE7uoHdDwUwyZ3vt6S9Hcp2RYRoZfk/zdQytqVL+FRi7+HZn97p/ Sf1w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@itanimul.li header.s=fm3 header.b=qwBuYarM; dkim=neutral (body hash did not verify) header.i=@messagingengine.com header.s=fm2 header.b=u2PNLDTy; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id hr35-20020a1709073fa300b00a51d46bd00asi1079945ejc.504.2024.04.08.06.16.14; Mon, 08 Apr 2024 06:16:15 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@itanimul.li header.s=fm3 header.b=qwBuYarM; dkim=neutral (body hash did not verify) header.i=@messagingengine.com header.s=fm2 header.b=u2PNLDTy; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3C70868D2C1; Mon, 8 Apr 2024 16:16:11 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from wfout3-smtp.messagingengine.com (wfout3-smtp.messagingengine.com [64.147.123.146]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3CF9068B931 for ; Mon, 8 Apr 2024 16:16:05 +0300 (EEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.west.internal (Postfix) with ESMTP id 2D0D31C000FB for ; Mon, 8 Apr 2024 09:16:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 08 Apr 2024 09:16:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itanimul.li; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to; s=fm3; t=1712582162; x=1712668562; bh=9resihoJJguiYM7+uJjLo rXwErAyXF1peA5VlCrupwQ=; b=qwBuYarMbURauPqJZHmpAgwh4/l3rDMQ5PDZD WQotYn00oeX1d6/xFGBRHhFsI61hFKyKayjzEbicDDtps6QzM18tijesbnwvvWyP jG3GQy2Q4jUeSa7SMOYKEL/LxErvfgkD6JEwU/ejT+1agRgvgcT8ZSwpzwKrqMEa bppO0z6MQIZIMaGnzCRYk6sk3gT5S0+kxu+Yj4U1VuhEuc5uTg2hMFaKbn1nXr7a 5B3PsRydZIkU1Ne7j9t/pyaiKlwUAL9IsKWbKI/E1dDIAKeIUuhsuvBkoLHEY1Oa rLh9uTjMf+ZuwviVUos+wlpGxvTREctUnwc8Fa8OIqTLge2QQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1712582162; x=1712668562; bh=9resihoJJguiYM7+uJjLorXwErAy XF1peA5VlCrupwQ=; b=u2PNLDTyJgMika5EPjzBPhBQzsGtKaGHiflXkPBnZU/Y xbO0gV2whQCLFe25WHisK8x6SYtAb2pZfSgnApTbllfGRmCuvhEfR11knkyfrGCZ GhjWC7K1BdAaz4PDimLXNy1PoUufgiYT50PTuLsekf+9Xb+P333UWsLKU/zbBZJK Wt0Sb21wEf2S/60oEBzQIhmuzEQ/u1MrWTuriB12+TDL7HvnEWeYHmvxxsSghSp1 x8E+UlY+/rjK+tiKWnPwqxmQFOOhdcEtkgIXyFIZ4ZFvYXSEX0gTuzeSyP2ZJs9I TiD1HkIfdFNrUUQWqIN83+IJ5xPLRsHfKrfH18GtKg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudegiedgieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepfdflrdcuffgvkhhkvghrfdcuoehjuggvkhesihhtrghnihhmuhhl rdhliheqnecuggftrfgrthhtvghrnhepueetgfdtuedvjeejjedvteelffeuhedtfeetud fglefhjeeukeetvddvtdevieeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepjhguvghksehithgrnhhimhhulhdrlhhi X-ME-Proxy: Feedback-ID: i84994747:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 8 Apr 2024 09:16:01 -0400 (EDT) From: "J. Dekker" To: ffmpeg-devel@ffmpeg.org Date: Mon, 8 Apr 2024 15:15:59 +0200 Message-ID: <20240408131600.81682-1-jdek@itanimul.li> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 1/2] configure,etc: unify shebang usage 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: Vc9PEU4/CpUa In some cases, these scripts can be called directly by packagers, and some systems require the interpreter to be explicit. Signed-off-by: J. Dekker --- configure | 3 ++- doc/texidep.pl | 2 +- ffbuild/libversion.sh | 1 + tests/fate-run.sh | 2 +- tests/fate.sh | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/configure b/configure index f511fbae49..7b6f48e631 100755 --- a/configure +++ b/configure @@ -4737,7 +4737,7 @@ chmod +x $TMPE # make sure we can execute files in $TMPDIR cat > $TMPSH 2>> $logfile <> $logfile 2>&1 if ! $TMPSH >> $logfile 2>&1; then @@ -8283,6 +8283,7 @@ print_enabled_components libavformat/protocol_list.c URLProtocol url_protocols $ # Settings for pkg-config files cat > $TMPH < diff --git a/ffbuild/libversion.sh b/ffbuild/libversion.sh index a94ab58057..ecaa90cde6 100755 --- a/ffbuild/libversion.sh +++ b/ffbuild/libversion.sh @@ -1,3 +1,4 @@ +#!/bin/sh toupper(){ echo "$@" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ } diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 9863e4f2d9..6ae0320c60 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -1,4 +1,4 @@ -#! /bin/sh +#!/bin/sh export LC_ALL=C diff --git a/tests/fate.sh b/tests/fate.sh index 07908be3a5..c5ee18de80 100755 --- a/tests/fate.sh +++ b/tests/fate.sh @@ -1,4 +1,4 @@ -#! /bin/sh +#!/bin/sh config=$1 From patchwork Mon Apr 8 13:16:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J. Dekker" X-Patchwork-Id: 47931 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:24a8:b0:1a3:b6bb:3029 with SMTP id m40csp2467032pzd; Mon, 8 Apr 2024 06:16:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWZyCAQleJXB92qAqxpfXerRQxqUHh1X5uuGnUUKitbXOiIrvmW43X6AjayW+eSXDE8AQFPBYSg4b3019esW97XitqRu5LZeJLs9w== X-Google-Smtp-Source: AGHT+IE27e1wp2NeNi38YYckBqjIWDblLf/F/7CdFWkTxdMP3Te1XJOsYqdfs0l34c9QfNO04cqQ X-Received: by 2002:a17:906:f107:b0:a4e:3fad:b973 with SMTP id gv7-20020a170906f10700b00a4e3fadb973mr5023556ejb.65.1712582185195; Mon, 08 Apr 2024 06:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712582185; cv=none; d=google.com; s=arc-20160816; b=0WJkDtnoGmSP1STW5v3spTRVF/B9bx+aTueUNqcFWEvY1S/X4foOsxAotbG7RVZw1o 2LgJJZV3QAWJW7s9toZc3rkB+cULAYcJfbXx0uTWI30e1bKwjDpv/3E050TNJsOoN8VL yoSHlEULon1ZvbKXZn6bSDwcZ69xGBBEyDUHWOiDuUZzA+oPS6SLnITQAGYwqKGxxomz mK6tAWa+5ZfeUt6bj0CjI1mnp0zK/W0ReOjW6noBFdef1P6/N7sOLs56IxkPxTjhGpSl HTrFeUWQonmpLucHjXLhkIlEyPQkSvxQ6bh6qf7U5g6u0tcNGBGNbnrApR4cabdBCZEm ZpMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:feedback-id:dkim-signature:dkim-signature:delivered-to; bh=3zhGs+qiTzu+h1va/rnyd/Z2DCV/PTt2DnhNAPoIwAs=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=xz928+LkTVyq4oUqRv7GhE6O85v4juglh/LlFYdrUdusU6XLQ1JmKEFVARUSiYJNeT dhqXu5V8tjx00hiYjjG4rck+pDqGjQ1HdCZ5HvmWwpQU8G8BOtnYMmZ2bR6jGCuAjUnR CGpUCLOSInFw9yGir9m0TuKZ5JSwHf+BwfwDR09AWvPiCtf/UnG2BtEXtDVKoGv6p2Yy C6uMusnrKF8dxmIbp05f5aUsD27bh39+a1UeThFQWUxQvpri3d6+pZls7NMDfy2aQ6Rg MwhDX5hB5vLFkwIvyMqoYZnLL1kRGkHJSXmZMSvp3zldZXiJeuAMWO/uz/jO1G/0XOJf 5Edg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@itanimul.li header.s=fm3 header.b=AdwmAdWU; dkim=neutral (body hash did not verify) header.i=@messagingengine.com header.s=fm2 header.b=KdoYBpSJ; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id qb22-20020a1709077e9600b00a517d370610si3911752ejc.553.2024.04.08.06.16.23; Mon, 08 Apr 2024 06:16:25 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@itanimul.li header.s=fm3 header.b=AdwmAdWU; dkim=neutral (body hash did not verify) header.i=@messagingengine.com header.s=fm2 header.b=KdoYBpSJ; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4B94D68D2E4; Mon, 8 Apr 2024 16:16:14 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from wfhigh4-smtp.messagingengine.com (wfhigh4-smtp.messagingengine.com [64.147.123.155]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AE26B68B931 for ; Mon, 8 Apr 2024 16:16:07 +0300 (EEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.west.internal (Postfix) with ESMTP id C633C1800123 for ; Mon, 8 Apr 2024 09:16:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 08 Apr 2024 09:16:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itanimul.li; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1712582165; x= 1712668565; bh=oi8PiQqK9HVLIjkwEkp6dksistEcQFf7mkHek9GcvpY=; b=A dwmAdWUSMY/aKedIQxoptFc3RCkfL9qC0Z59sduFgZEft/bkgD1WrO/5xhMF1zz/ BfjCorTLHHIuOeMobEgeniiqa/mc1TH6dEjrr2pc4utqahR9jPBgskiaNqMiG/pz 5DD6EeqZfsv0yXDkDxVhfnA8hm+hTR8nes85IQZtMuDSQUZCwb88knfbEo3/BD6S bH0pE1Ux+aYrsb/xb2W6Qk79yJ2OkdBVI0uxILGlkVGFBBDP9cT1TOqnM+gVmb/r /HLiKb8VmUwBs9zn0oTFKBhM5z6y/ttectRHcDDdvzI124xtcgGisSeAqbEKygWk 3RXXOAxzhrEF0BZKOFYzw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1712582165; x=1712668565; bh=oi8PiQqK9HVLI jkwEkp6dksistEcQFf7mkHek9GcvpY=; b=KdoYBpSJVqM/oeOLwhmknibuVtZjN Xr/4kqDCbbSKqdzkVSfGiaQvRIJrugu6QntvgUx2KsNml+AulhKCyP7tOkV54Sxu yp6V1JEjPtdRaoJL3WkgDroHMmhEyPGVYtyiwN+/ejWDX4z87h8QpcL0sWaErR/G IWyzjAFWQHORwl5HvJaWNv3eJm11i7/zvlbhV4G+hHqyD4M/Ki+mnC62/Yh0IqnM MwW+cDU7mltIVNnlG0Wu/kScmwm9AyEYRuMtiT2gSpJ43hhfmI31tydTCith/wDK 63k2THXw+4VinnOyRvh2eHcV8mvZXUEGiB3dP7XAhtR44jEVPGbZhMaPw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudegiedgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepfdflrdcuffgvkhhkvghrfdcuoehjuggvkhesihhtrghnihhm uhhlrdhliheqnecuggftrfgrthhtvghrnhepgedvhfffuddugeehveeikeeifeefgfevff ektdehkeeifefhveeuteeufefhteetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepjhguvghksehithgrnhhimhhulhdrlhhi X-ME-Proxy: Feedback-ID: i84994747:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 8 Apr 2024 09:16:04 -0400 (EDT) From: "J. Dekker" To: ffmpeg-devel@ffmpeg.org Date: Mon, 8 Apr 2024 15:16:00 +0200 Message-ID: <20240408131600.81682-2-jdek@itanimul.li> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240408131600.81682-1-jdek@itanimul.li> References: <20240408131600.81682-1-jdek@itanimul.li> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 2/2] configure: simplify bigendian check 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: dhjDXojjD5+Z The preferred way to use LTO is --enable-lto but often times packagers still end up with -flto in cflags for various reasons. Using grep on binary object files is brittle and relies on specific object representation, which in the case of LLVM bitcode, debug-info or other intermediary formats can fail silently. This patch changes the check to a more commonly used define for big-endian systems. More checks may need to be added in the future to cover legacy machines. Signed-off-by: J. Dekker --- configure | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/configure b/configure index 7b6f48e631..e787f13e0b 100755 --- a/configure +++ b/configure @@ -6120,11 +6120,7 @@ extern_prefix=${sym%%ff_extern*} check_cc pragma_deprecated "" '_Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")' -# The global variable ensures the bits appear unchanged in the object file. -test_cc <