• Bug#1067163: mapnik: Fails to build with Python 3.12

    From Benjamin Drung@21:1/5 to All on Tue Mar 19 17:00:01 2024
    This is a multi-part MIME message sent by reportbug.


    Source: mapnik
    Version: 3.1.0+ds-7
    Severity: normal
    Tags: patch
    X-Debbugs-Cc: bdrung@debian.org

    Dear Maintainer,

    mapnik fails to build on Ubuntu with Python 3.12 due to the Scons
    version in the package. I applied the attached patch to Ubuntu to use
    the scons Debian package.

    --
    Benjamin Drung
    Debian & Ubuntu Developer

    diff -Nru mapnik-3.1.0+ds/debian/changelog mapnik-3.1.0+ds/debian/changelog
    --- mapnik-3.1.0+ds/debian/changelog 2024-03-02 13:14:12.000000000 +0100
    +++ mapnik-3.1.0+ds/debian/changelog 2024-03-19 16:40:34.000000000 +0100
    @@ -1,3 +1,10 @@
    +mapnik (3.1.0+ds-7ubuntu1) noble; urgency=medium
    +
    + * Use scons from the Debian package (for Python 3.12 support)
    + * Cherry-pick SConstruct upstream changes for Scons >= 4.1.0
    +
    + -- Benjamin Drung <bdrung@ubuntu.com> Tue, 19 Mar 2024 16:40:34 +0100
    +
    mapnik (3.1.0+ds-7) unstable; urgency=medium

    * Add dpkg-dev (>= 1.22.5) to build dependencies for t64 changes.
    diff -Nru mapnik-3.1.0+ds/debian/control mapnik-3.1.0+ds/debian/control
    --- mapnik-3.1.0+ds/debian/control 2024-03-02 13:14:02.000000000 +0100
    +++ mapnik-3.1.0+ds/debian/control 2024-03-19 16:39:54.000000000 +0100
    @@ -31,6 +31,7 @@
    libxml2-dev,
    pkgconf,
    python3,
    + scons,
    zlib1g-dev
    Standards-Version: 4.6.2
    Vcs-Browser: https://salsa.debian.org/debian-gis-team/mapnik
    diff -Nru mapn