From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 25DCD45BB1; Mon, 28 Oct 2024 14:11:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CBC1D40E44; Mon, 28 Oct 2024 14:11:07 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id DBB53400D7 for ; Mon, 28 Oct 2024 14:11:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1730121066; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NnhKW4oD4l9F3jeqkB/+R5txyf25JT4e0vXTVmtcSJk=; b=hoI2arw+CsZmQowD3HvclnR3ZNQ8oaz/tJ0y2eP2UA+fXQPC6XWBYE6naQFimHV5LJelNy HOTqLcdmhbJ17vz/wVa76zd8R5khqhenmkS6Y+UBFKoDdd/Sa33ksbR+HohlysDh3juSKy UW56Kli8MalJa+fTgoeX5GALtBLGF9g= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-632-r6aBIeIzMkCjlsR0OAO0YA-1; Mon, 28 Oct 2024 09:11:03 -0400 X-MC-Unique: r6aBIeIzMkCjlsR0OAO0YA-1 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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 mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id AEDFA19560BC; Mon, 28 Oct 2024 13:11:01 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.224.57]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EC8C9300018D; Mon, 28 Oct 2024 13:10:58 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: Wathsala Vithanage , Bruce Richardson , Pavan Nikhilesh , Jerin Jacob , Chengwen Feng , Robin Jarry Subject: [PATCH] config/arm: fix warning for native build with meson >= 0.55 Date: Mon, 28 Oct 2024 14:10:47 +0100 Message-ID: <20241028131047.3036831-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Caught in UNH logs for native compilation on ARM: Program /...../dpdk/config/arm/armv8_machine.py found: YES (/...../dpdk/config/arm/armv8_machine.py) WARNING: Project targeting '>= 0.57' but tried to use feature deprecated since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead There is nothing to search, nor a reason to call the script with an absolute path. The script can be directly pointed at with files(). Fixes: 200b88cbe0e6 ("build: detect micro-arch on ARM") Fixes: 6f3dbd306de0 ("build: increase minimum meson version to 0.57") Signed-off-by: David Marchand --- config/arm/meson.build | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index 55be7c8711..95500c8ed3 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -784,9 +784,8 @@ else # native build # The script returns ['Implementer', 'Variant', 'Architecture', # 'Primary Part number', 'Revision'] - detect_vendor = find_program(join_paths(meson.current_source_dir(), - 'armv8_machine.py')) - cmd = run_command(detect_vendor.path(), check: false) + detect_vendor = py3 + files('armv8_machine.py') + cmd = run_command(detect_vendor, check: false) if cmd.returncode() == 0 cmd_output = cmd.stdout().to_lower().strip().split(' ') implementer_id = cmd_output[0] -- 2.46.2