Package: pymupdf Followup-For: Bug #1064772 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu noble ubuntu-patch X-Debbugs-Cc: michael.hud...@ubuntu.com Control: tags -1 patch
Dear Maintainer, In Ubuntu, the attached patch was applied to achieve the following: * Remove prototype that now clashes with version in mupdf's headers. Thanks for considering the patch. -- System Information: Debian Release: trixie/sid APT prefers mantic-updates APT policy: (500, 'mantic-updates'), (500, 'mantic-security'), (500, 'mantic'), (100, 'mantic-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.5.0-25-generic (SMP w/16 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ.UTF-8:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
diff -Nru pymupdf-1.23.7+ds1/debian/patches/fz_pixmap_size pymupdf-1.23.7+ds1/debian/patches/fz_pixmap_size --- pymupdf-1.23.7+ds1/debian/patches/fz_pixmap_size 1970-01-01 12:00:00.000000000 +1200 +++ pymupdf-1.23.7+ds1/debian/patches/fz_pixmap_size 2024-03-20 14:23:27.000000000 +1300 @@ -0,0 +1,17 @@ +Description: Remove incorrect prototype for function now declared in mupdf's headers. +Author: Michael Hudson-Doyle <michael.hud...@ubuntu.com> +Origin: vendor +Forwarded: no +Last-Update: 2024-03-20 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/fitz/fitz.i ++++ b/fitz/fitz.i +@@ -155,7 +155,6 @@ + // additional headers ---------------------------------------------- + pdf_obj *pdf_lookup_page_loc(fz_context *ctx, pdf_document *doc, int needle, pdf_obj **parentp, int *indexp); + fz_pixmap *fz_scale_pixmap(fz_context *ctx, fz_pixmap *src, float x, float y, float w, float h, const fz_irect *clip); +-int fz_pixmap_size(fz_context *ctx, fz_pixmap *src); + void fz_subsample_pixmap(fz_context *ctx, fz_pixmap *tile, int factor); + void fz_copy_pixmap_rect(fz_context *ctx, fz_pixmap *dest, fz_pixmap *src, fz_irect b, const fz_default_colorspaces *default_cs); + static const float JM_font_ascender(fz_context *ctx, fz_font *font); diff -Nru pymupdf-1.23.7+ds1/debian/patches/series pymupdf-1.23.7+ds1/debian/patches/series --- pymupdf-1.23.7+ds1/debian/patches/series 2023-12-17 03:32:08.000000000 +1300 +++ pymupdf-1.23.7+ds1/debian/patches/series 2024-03-20 14:22:54.000000000 +1300 @@ -1,2 +1,3 @@ docs fiximport +fz_pixmap_size