From 7dc7394fd48344b2e90fb90b31ea719740f70557 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 5 Mar 2020 19:17:42 +0200 Subject: [PATCH] grub: Bye bye python --- core/grub/build | 10 ++++++++++ core/grub/depends | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/core/grub/build b/core/grub/build index 1167cac8..c937d263 100755 --- a/core/grub/build +++ b/core/grub/build @@ -1,5 +1,15 @@ #!/bin/sh -e +# Grub expects Python but it isn't actually needed. Give +# it something fake so that configure passes. +export PYTHON=/bin/true + +# Disable the post-python mv calls as a means of disabling +# the Python tooling. The /bin/true above will create a +# blank file, this prevents the blank file from overwriting +# the existing one. +sed -i 's/mv $@.new $@/:/g' grub/Makefile.in + # Strip '-march' from 'CFLAGS' as per advice from upstream. # Fixes build fails on specific hardware. CFLAGS=$(printf %s "$CFLAGS" | sed 's/-march=[^ ]*//g') diff --git a/core/grub/depends b/core/grub/depends index 58223007..b37ce94a 100644 --- a/core/grub/depends +++ b/core/grub/depends @@ -2,5 +2,4 @@ binutils make bison make flex make linux-headers make -python make xz