From 7dc4a403031493a119e6ac63e1367c083d7837d0 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 12 Apr 2021 14:25:36 +0100 Subject: [PATCH] Backport a patch from master to drop the python3-pillow dep Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1935838 --- ...4af2029c2a8a3fb32ef27c39c214d9b5b13c.patch | 84 +++++++++++++++++++ fwupd.spec | 11 ++- 2 files changed, 93 insertions(+), 2 deletions(-) create mode 100644 13524af2029c2a8a3fb32ef27c39c214d9b5b13c.patch diff --git a/13524af2029c2a8a3fb32ef27c39c214d9b5b13c.patch b/13524af2029c2a8a3fb32ef27c39c214d9b5b13c.patch new file mode 100644 index 0000000..d98207f --- /dev/null +++ b/13524af2029c2a8a3fb32ef27c39c214d9b5b13c.patch @@ -0,0 +1,84 @@ +commit 4706031223f6809b40ef7d4c3f14103941621d57 +Author: Richard Hughes +Date: Fri Apr 9 15:20:13 2021 +0100 + + Write BMP data directly without using PIL + + This allows us to drop a build-time dep. + +diff --git a/po/make-images b/po/make-images +index b1097bc2..c3cad9e7 100755 +--- a/po/make-images ++++ b/po/make-images +@@ -18,7 +18,6 @@ import gi + gi.require_version('Pango', '1.0') + gi.require_version('PangoCairo', '1.0') + from gi.repository import Pango, PangoCairo +-from PIL import Image + + def usage(return_code): + """ print usage and exit with the supplied return code """ +@@ -29,6 +28,32 @@ def usage(return_code): + out.write("usage: make-images