From nobody Mon Nov 3 06:46:31 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=daemonizer.de ARC-Seal: i=1; a=rsa-sha256; t=1735592493; cv=none; d=zohomail.com; s=zohoarc; b=VVk7l6LpDRfU6bK4wiMIcoaxvexiqMm0Ne2c7Lke0kTA8CbSYnA2PBYfql/zE7kiSnbjwn/NT1Djy0DrrUsQOES/6B2s6zd44BaN4vtSaML2ZVxKVkl+cyG02hXmpJRy3woWVY4vy8RI5fAxIEBAO3Ll1pjEsCckenMEQCyg8Tc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1735592493; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=vNoycYF/AunNCbr33bPlfVZJJaaGcAgrVSlzFQ4oMMU=; b=CU6hfWrwRXZBHqGVxmpvd4UTWLC/xGQ0ije3M6OzGtBTXPBJmn7phDmSx5dWUVg/rptDOWO6K0JNs18jVJ6ezjghITNwQvndcaerzbJtowj5X2/LBbbpjQ+WFqdgyPqGZVZ7ZmEZg1Hk1o43lJhFwcJ8zdszIrzoAZIa1TGM3Ks= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1735592493664108.79519023253863; Mon, 30 Dec 2024 13:01:33 -0800 (PST) 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 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-Outflank-Mailman: Message body and most headers restored to incoming version 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=20Pau=20Monn=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 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @daemonizer.de) X-ZM-MESSAGEID: 1735592494811019100 Content-Type: text/plain; charset="utf-8" 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) =20 # Check if the linker produces fixups in PE by default -efi-nr-fixups :=3D $(shell $(OBJDUMP) -p $(efi-check).efi | grep '^[[:blan= k:]]*reloc[[:blank:]]*[0-9][[:blank:]].*DIR64$$' | wc -l) +efi-nr-fixups :=3D $(shell LC_ALL=3DC $(OBJDUMP) -p $(efi-check).efi | gre= p '^[[:blank:]]*reloc[[:blank:]]*[0-9][[:blank:]].*DIR64$$' | wc -l) =20 ifeq ($(efi-nr-fixups),2) MKRELOC :=3D : --=20 2.39.5