From: Maximilian Engelhardt Date: Thu, 9 Dec 2021 23:23:30 +0000 (+0100) Subject: xen/arch/x86: make objdump output user locale agnostic X-Git-Tag: archive/raspbian/4.16.1-1+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8702038b30db274972a8273446cbbfd867b8521f;p=xen.git xen/arch/x86: make objdump output user locale agnostic 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 --- diff --git a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile index 69b6cfaded..bd35423f7d 100644 --- a/xen/arch/x86/Makefile +++ b/xen/arch/x86/Makefile @@ -139,7 +139,7 @@ endif ifeq ($(XEN_BUILD_PE),y) # Check if the linker produces fixups in PE by default -nr-fixups := $(shell $(OBJDUMP) -p efi/check.efi | grep '^[[:blank:]]*reloc[[:blank:]]*[0-9][[:blank:]].*DIR64$$' | wc -l) +nr-fixups := $(shell LC_ALL=C $(OBJDUMP) -p efi/check.efi | grep '^[[:blank:]]*reloc[[:blank:]]*[0-9][[:blank:]].*DIR64$$' | wc -l) ifeq ($(nr-fixups),2) MKRELOC := : relocs-dummy :=