• Bug#1064772: pymupdf: FTBFS: fitz.i.c:3343:5: error: conflicting types

    From Michael Hudson-Doyle@21:1/5 to All on Wed Mar 20 02:40:01 2024
    This is a multi-part MIME message sent by reportbug.


    Package: pymupdf
    Followup-For: Bug #1064772
    User: ubuntu-devel@lists.ubuntu.com
    Usertags: origin-ubuntu noble ubuntu-patch
    X-Debbugs-Cc: michael.hudson@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.hudson@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