diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 5 | ||||
-rw-r--r-- | output-jpeg.patch | 37 |
3 files changed, 44 insertions, 2 deletions
@@ -1,6 +1,6 @@ pkgbase = mupdf-git pkgdesc = Lightweight PDF, XPS, and E-book viewer - pkgver = 20221123.ba307a866 + pkgver = 20230207.1ca88ef11 pkgrel = 1 url = https://mupdf.com/ arch = x86_64 @@ -27,11 +27,13 @@ pkgbase = mupdf-git source = git://git.ghostscript.com/thirdparty-extract.git source = git://git.ghostscript.com/thirdparty-freeglut.git source = git://git.ghostscript.com/thirdparty-lcms2.git#branch=lcms2mt + source = output-jpeg.patch source = desktop sha256sums = SKIP sha256sums = SKIP sha256sums = SKIP sha256sums = SKIP + sha256sums = bf9b2349d4adda7118bc32005ade1d52c545dba980765443f2aeba198c2f85df sha256sums = 3240d4ebda002cb2c4f42cd42793c6160f1701d349d0acb797819dfd10d4fedd pkgname = mupdf-git @@ -4,7 +4,7 @@ pkgname=mupdf-git _pkgname=mupdf -pkgver=20221123.ba307a866 +pkgver=20230207.1ca88ef11 pkgrel=1 pkgdesc='Lightweight PDF, XPS, and E-book viewer' arch=('x86_64' 'armv7h' 'aarch64') @@ -16,11 +16,13 @@ source=('git://git.ghostscript.com/mupdf.git' 'git://git.ghostscript.com/thirdparty-extract.git' 'git://git.ghostscript.com/thirdparty-freeglut.git' 'git://git.ghostscript.com/thirdparty-lcms2.git#branch=lcms2mt' + 'output-jpeg.patch' 'desktop') sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' + 'bf9b2349d4adda7118bc32005ade1d52c545dba980765443f2aeba198c2f85df' '3240d4ebda002cb2c4f42cd42793c6160f1701d349d0acb797819dfd10d4fedd') conflicts=("${_pkgname}"{,-gl,-tools}) @@ -33,6 +35,7 @@ pkgver() { prepare() { cd "${srcdir}/${_pkgname}" + patch -p1 -i ../output-jpeg.patch source/fitz/output-jpeg.c for lib in extract freeglut lcms2; do rm -fr thirdparty/$lib cp -a ../thirdparty-$lib thirdparty/$lib diff --git a/output-jpeg.patch b/output-jpeg.patch new file mode 100644 index 000000000000..03006b2a7da7 --- /dev/null +++ b/output-jpeg.patch @@ -0,0 +1,37 @@ +--- output-jpeg.c 2023-02-07 12:48:20.328740181 -1000 ++++ output-jpeg.c.new 2023-02-07 12:50:24.268536252 -1000 +@@ -28,10 +28,16 @@ + + #define JZ_CTX_FROM_CINFO(c) (fz_context *)((c)->client_data) + ++static void fz_jpg_mem_init(j_common_ptr cinfo, fz_context *ctx) ++{ ++ cinfo->client_data = ctx; ++} ++ ++#define fz_jpg_mem_term(cinfo) ++ + #else /* SHARE_JPEG */ + + typedef void * backing_store_ptr; +- + #include "jmemcust.h" + + #define JZ_CTX_FROM_CINFO(c) (fz_context *)(GET_CUST_MEM_DATA(c)->priv) +@@ -76,7 +82,7 @@ + } + } + +-#endif ++#endif /* SHARE_JPEG */ + + #define OUTPUT_BUF_SIZE (16<<10) + +@@ -92,6 +98,7 @@ + { + char msg[JMSG_LENGTH_MAX]; + fz_context *ctx = JZ_CTX_FROM_CINFO(cinfo); ++ + cinfo->err->format_message(cinfo, msg); + fz_throw(ctx, FZ_ERROR_GENERIC, "jpeg error: %s", msg); + } |