From patchwork Mon Dec 30 21:00:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maximilian Engelhardt X-Patchwork-Id: 13923458 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DDDDFE7718F for ; Mon, 30 Dec 2024 21:01:25 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.863551.1274943 (Exim 4.92) (envelope-from ) id 1tSMt2-0007Ly-L4; Mon, 30 Dec 2024 21:01:16 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 863551.1274943; Mon, 30 Dec 2024 21:01:16 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tSMt2-0007L1-DO; Mon, 30 Dec 2024 21:01:16 +0000 Received: by outflank-mailman (input) for mailman id 863551; Mon, 30 Dec 2024 21:01:15 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tSMt1-00073D-57 for xen-devel@lists.xenproject.org; Mon, 30 Dec 2024 21:01:15 +0000 Received: from mx1.somlen.de (typhoon.somlen.de [89.238.64.140]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 343edaa2-c6f1-11ef-a0db-8be0dac302b0; Mon, 30 Dec 2024 22:01:13 +0100 (CET) Received: by mx1.somlen.de with ESMTPSA id 6841F506D31; Mon, 30 Dec 2024 22:01:13 +0100 (CET) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 343edaa2-c6f1-11ef-a0db-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daemonizer.de; s=202303; t=1735592473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vNoycYF/AunNCbr33bPlfVZJJaaGcAgrVSlzFQ4oMMU=; b=Jd/ryk/mRGv4VnXHj3pLw18iO39jMHpJOXtH+LSHqrLZSQy1Kp6PNpTLMyv/UCxUqC0oM+ Wc0AVSF/DR1vXdcfjAF7iXWLChWteN1+Hewq/vNohDVERwOX4SLUe49E3VmhF9PkpARXmP bIt5guaI5iSxwBg4xL16NO/gvhOyxFX9AnrfOrbi+rT1e2pgs+X5usSZ9I2m8h1Sc/m50U W39PRRlh3Wxyxt9gJlfPKvz8NZJOGRBShrXs42TEu+fzMcuvAFkYUw+1NN/romZ/Iy1U4L HTLUKXwjwMHcbwO9LSHnes6YmElHgwT+d0NuwhiwQbtqRsx0dYEvKiSelry0YA== From: Maximilian Engelhardt To: xen-devel@lists.xenproject.org Cc: Maximilian Engelhardt , Jan Beulich , Andrew Cooper , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Subject: [XEN PATCH 3/5] xen/arch/x86: make objdump output user locale agnostic Date: Mon, 30 Dec 2024 22:00:31 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 The objdump output is fed to grep, so make sure it doesn't change with different user locales and break the grep parsing. This problem was identified while updating xen in Debian and the fix is needed for generating reproducible builds in varying environments. Signed-off-by: Maximilian Engelhardt --- xen/arch/x86/arch.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/arch.mk b/xen/arch/x86/arch.mk index 9dde8a5756..cb47d72991 100644 --- a/xen/arch/x86/arch.mk +++ b/xen/arch/x86/arch.mk @@ -109,7 +109,7 @@ endif ifeq ($(XEN_BUILD_PE),y) # Check if the linker produces fixups in PE by default -efi-nr-fixups := $(shell $(OBJDUMP) -p $(efi-check).efi | grep '^[[:blank:]]*reloc[[:blank:]]*[0-9][[:blank:]].*DIR64$$' | wc -l) +efi-nr-fixups := $(shell LC_ALL=C $(OBJDUMP) -p $(efi-check).efi | grep '^[[:blank:]]*reloc[[:blank:]]*[0-9][[:blank:]].*DIR64$$' | wc -l) ifeq ($(efi-nr-fixups),2) MKRELOC := :