From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 0F8AE3857C5E for ; Thu, 7 Mar 2024 14:26:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0F8AE3857C5E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0F8AE3857C5E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709821597; cv=none; b=ur2jCGAwm0BL+TyOJb5Zm9Rm27q20GCOJlzbB6mFpOK9aQIoJhj9hBXyN2zVMGzycCJEyRFb1VKphM14rY8tUBDqf4huwm0YX0oeyWY4ZSmOn2LFPoZsY1tukEgxcV0Ti8BmdovC3iN2nM9M9enx9VzmI54WGzbev1VrxL8l7Ts= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709821597; c=relaxed/simple; bh=CJp18qZ0xkrQzcqBj0lXPYr48w7M6Y2njvnVzWLSz2s=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=sGXcVeQa9ye3H9dZEN19FYg/BqnTUilgmPNbJ3wNydSdXSJeVVttKtM6hEC3cEOggzrtZJT2a6GLPt1Ja2eR/SoKFIXS3UyJD5s41fIXJSkJf6v790Gptd+n6+ekq4bRhgOU9LoHsJW7r74NSmMifOnhv/hPyvWIrEHEeKAgSSo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709821595; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=NuLRmGn4Rbrb6FvfMVGiZM5Dzv3hzhL2i1EkdKOAa90=; b=MeghOWT6DGQXN7muiytdWYAz8i50FU8BD7yN/Fnm+cacOtLIsP7XcG9+wXz3IfteFyfYmR fm2jY9ak3lFPSXz9HxheeI4ZubO4PovfmqYRRulTeURQ+tkjuI1jywwZhQqXcFLsXaz3Fh EJqt/LN6GL/+NW0NAVjT9p6Zehk1ySE= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-611-hXVYKIlWPaG6PIR8az1GMw-1; Thu, 07 Mar 2024 09:26:30 -0500 X-MC-Unique: hXVYKIlWPaG6PIR8az1GMw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0463E29AC01E; Thu, 7 Mar 2024 14:26:30 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.45.226.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BCCB5C37A85; Thu, 7 Mar 2024 14:26:29 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 427EQNA52820599 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 7 Mar 2024 15:26:28 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 427EQNm42820598; Thu, 7 Mar 2024 15:26:23 +0100 Date: Thu, 7 Mar 2024 15:26:22 +0100 From: Jakub Jelinek To: Sam James Cc: gcc-patches@gcc.gnu.org, law@gcc.gnu.org, rguenth@gcc.gnu.org Subject: Re: [PATCH] contrib: Improve dg-extract-results.sh's Python detection Message-ID: Reply-To: Jakub Jelinek References: <20240307141638.153366-1-sam@gentoo.org> <875xxyjf0a.fsf@gentoo.org> MIME-Version: 1.0 In-Reply-To: <875xxyjf0a.fsf@gentoo.org> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, Mar 07, 2024 at 02:25:09PM +0000, Sam James wrote: > Jakub Jelinek writes: > > > On Thu, Mar 07, 2024 at 02:16:37PM +0000, Sam James wrote: > >> 'python' on some systems (e.g. SLES 15) might be Python 2. Prefer ${EPYTHON} > >> if defined (used by Gentoo's python-exec wrapping), then python3, then python. > > > > I'd say EPYTHON is too distro specific, just use for python in python3 python ? > > Other scripts just have > > #!/usr/bin/env python3 > > as the first line and go with that. > > Sure. Should I add python2 too as well (last), given the script nominally tries to > work with it still? Yes. Jakub