forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-text/mupdf-1.21.1: allow disabling DRM checking
MuPDF by default blocks DRM content, see: ArtifexSoftware/mupdf@2b3bd1b Add patch and local use flag `drm` for allowing/disallowing DRM content in PDF files. Suggested-by: William Rabbermann <[email protected]> Signed-off-by: Philipp Rösner <[email protected]> Closes: gentoo#28772 Signed-off-by: Florian Schmaus <[email protected]>
- Loading branch information
1 parent
9e5a5e7
commit 9581bec
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 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); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,7 @@ | |
<email>[email protected]</email> | ||
<name>Proxy Maintainers</name> | ||
</maintainer> | ||
<use> | ||
<flag name="drm">Enable support for Digital rights management (DRM)</flag> | ||
</use> | ||
</pkgmetadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters