summaryrefslogtreecommitdiff
path: root/app-text/mupdf/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-30 02:16:21 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-30 02:16:21 +0000
commitb7cf34e541f10778605d8740e2690d8459908ac5 (patch)
tree98d91f7ea7de88f6f7d667af0deb3ffaff5b4d5e /app-text/mupdf/files
parent8467a7e8af97ab17f54668fd7d348e68754dd0cc (diff)
gentoo auto-resync : 30:12:2022 - 02:16:21
Diffstat (limited to 'app-text/mupdf/files')
-rw-r--r--app-text/mupdf/files/mupdf-1.21.1-no-drm.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/app-text/mupdf/files/mupdf-1.21.1-no-drm.patch b/app-text/mupdf/files/mupdf-1.21.1-no-drm.patch
new file mode 100644
index 000000000000..9f2b9d692f4e
--- /dev/null
+++ b/app-text/mupdf/files/mupdf-1.21.1-no-drm.patch
@@ -0,0 +1,18 @@
+diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c
+index f764242..83888dc 100644
+--- a/source/html/epub-doc.c
++++ b/source/html/epub-doc.c
+@@ -692,10 +692,12 @@ epub_parse_header(fz_context *ctx, epub_document *doc)
+ epub_chapter **tailp;
+ int i;
+
++ #ifdef GENTOO_MUPDF_DRM
+ if (fz_has_archive_entry(ctx, zip, "META-INF/rights.xml"))
+ fz_throw(ctx, FZ_ERROR_GENERIC, "EPUB is locked by DRM");
+ if (fz_has_archive_entry(ctx, zip, "META-INF/encryption.xml"))
+ fz_throw(ctx, FZ_ERROR_GENERIC, "EPUB is locked by DRM");
++ #endif
+
+ fz_var(buf);
+ fz_var(container_xml);
+