From b44b1f08f6945ea8370746cfdadb44c7dea9ea3e Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 7 Nov 2018 23:13:02 +0200 Subject: gnu: hplip: Remove bundled non-free blobs. This fixes . * gnu/packages/cups.scm (hplip)[source]: Add patch. Update snippet to remove non-free code and binary blobs. * gnu/packages/patches/hplip-remove-imageprocessor.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. --- gnu/packages/cups.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gnu/packages/cups.scm') diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm index 4259648c69..04a533de02 100644 --- a/gnu/packages/cups.scm +++ b/gnu/packages/cups.scm @@ -405,9 +405,13 @@ device-specific programs to convert and print many types of files.") (base32 "0g3q5mm2crjyc1z4z6gv4lam6sc5d3diz704djrnpqadk4q3h290")) (modules '((guix build utils))) + (patches (search-patches "hplip-remove-imageprocessor.patch")) (snippet - ;; Fix type mismatch. '(begin + ;; Delete non-free blobs + (for-each delete-file (find-files "." "\\.so$")) + (delete-file "prnt/hpcups/ImageProcessor.h") + ;; Fix type mismatch. (substitute* "prnt/hpcups/genPCLm.cpp" (("boolean") "bool")) #t)))) -- cgit v1.2.3