From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 0E879400EF for ; Thu, 19 Jun 2025 20:21:15 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 1CADD68D011; Thu, 19 Jun 2025 23:21:11 +0300 (EEST) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 02D5B68CB2A for ; Thu, 19 Jun 2025 23:21:04 +0300 (EEST) Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-32b7113ed6bso11554371fa.1 for ; Thu, 19 Jun 2025 13:21:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20230601.gappssmtp.com; s=20230601; t=1750364463; x=1750969263; darn=ffmpeg.org; h=mime-version:references:message-id:in-reply-to:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=VZCh6eIru6CrqvFRlyLy3BTn9E7TzpNbK3Q68TuYFoI=; b=yTTdh4tMuu3tvANywCP5NmxRxvvaHtXvON6GCAXANdd+u4U+g+iODsMRsZbQgFSV+6 qC6k5RxGwDAjYJj+erqR5KaVv141Q/WQAsSiubt0Seza08jkKvnixblqI3FRsHEs6ndC n/hPFm55oPfdhbywFFLjNW896LjDrtJ+mtYyOO3S8Q0mw+X1wJwkUvYZjABUfcFZUax4 bJxFVzRsAv55dDBuUIJtIIY4Y2Uc3XV4AI5lVBXkrZ2cioFn20CWOld0jOm1CatCrygt LzExIpxa1XzVnEXFiQAAtwvxneaV4M5Qo7acKbMnyJpwaucxiI3tkS+3TL+xggqe7xPz HLSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750364463; x=1750969263; h=mime-version:references:message-id:in-reply-to:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VZCh6eIru6CrqvFRlyLy3BTn9E7TzpNbK3Q68TuYFoI=; b=dHEwax4yD/3rtIgTzZEUvmzIm9Ih9zBg7JdnKHw5YXjwf9dlyd1Vp7UL6Zon/UAyT+ 3yrrsShk5qA3W4UN+DVmkIZrZFOBAp/1YQnAxSmxeHO80dgBVQsUyuxKQr5shUa3WQe7 uTmmNi7FLtuiEzILNrKHKwgK0sPWirub/Fx21BgLJSZYSZcX7u0VwPH5wiaJjewNt9a1 0jeyamEy3KdYv6nswNEtbkdzD/jioZzD1nRtxbCQVvIsm0lohnFrxcP8THxplqityqfs LjsHOf8RnRA5PHmUaomMHdDsHIgD0b5tfF5tppbBCrwT4oDGoySMM9uJSy1T0gB7ztVg ewwA== X-Gm-Message-State: AOJu0YwKShT4G3DDoLFkLPAWygWV1BnZ8ZgKnanwXHKVbRNKimOVQ1mN YvDXbiL8SyB+6yofn/uLdzioOgmxDw1RTDKt2EY82WAyVKXl8w+F76xVsFHWpHgfbcq6OlcSJWU yMrKS6g== X-Gm-Gg: ASbGnctVcy7eNnSn5pqus/3H0a1qeAh/hEgKDsB7lf0oAlFxJCLlBFsVC8tedw9OhEz QxogMc0Exr4QOzJ0Rqqc4yWNDch3iF+GNUdBf5P64tVfj9dH/0VQeuQGR04CCa7p96jg20JhBjX Ekg4hx9GZ8cZ5gEXiIAZ76+o03i37RZU+x0Zh9uWm3sWNS7hqmITvEqPrqimKygTsY26I4i1phY 8YNTmN0Pi8ZNGepTITgbB13ezAVyz4UJK1bYqYkT5M6QdoQ/P8RiagYc6HGE/hxahoun75+nygS 2tJ66Upn3FemtDXPh02BTEPOSZ3T3rVZHyjKsr2L7oK6ItLqMpbf6zrlIR8MMb+7m/0UFaNTvXo UjbBQiKO9F4GYQ4cxQ8PbVTeYbm2N+wLD0/fSF2tN62URCvYQOfZL/BLDLQ== X-Google-Smtp-Source: AGHT+IF1N/9MxDiqoAx3gxSCVn8H52qYY+UGfT/NIWmjtTmVInj0hcndnQewKOuE0IvMXQ4556+LSg== X-Received: by 2002:ac2:51d0:0:b0:553:297b:3d45 with SMTP id 2adb3069b0e04-553e3c04e65mr159246e87.43.1750364462195; Thu, 19 Jun 2025 13:21:02 -0700 (PDT) Received: from tunnel335574-pt.tunnel.tserv24.sto1.ipv6.he.net (tunnel335574-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:11::2]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-553e41c3cd5sm28577e87.177.2025.06.19.13.21.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jun 2025 13:21:01 -0700 (PDT) Date: Thu, 19 Jun 2025 23:21:01 +0300 (EEST) From: =?ISO-8859-15?Q?Martin_Storsj=F6?= To: ffmpeg-devel@ffmpeg.org In-Reply-To: <20250613140555.121374-1-martin@martin.st> Message-ID: References: <20250613140555.121374-1-martin@martin.st> MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [FFmpeg-devel] [PATCH] configure: Make MSVC version grabbing more robust 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-15"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Fri, 13 Jun 2025, Martin Storsj=F6 wrote: > When running plain "cl", to get the MSVC version, it prints the > version header on stderr, while the usage instructions are printed > on stdout. Usually, the version on stderr gets flushed first, > so "head -n1" gets the line it expects, but some times (in particular > when running MSVC wrapped in wine), it can get the usage line > first. > > Redirect stdout to /dev/null, so we only grab the version among > the lines printed to stderr. This should make the version number > grabbing more robust. > > At least all relevant versions of MSVC seem to print this specifically > to stderr, not stdout (so we don't risk to miss it); checked down > to MSVC 2010. > --- > This should avoid the occasionally misdetected version number lines > as seen at https://fate.ffmpeg.org/history.cgi?slot=3Dx86_64-msvc2022-win= e. > --- > configure | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) Will push. // Martin _______________________________________________ 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".