• Bug#1066531: policykit-1: FTBFS: ../subprojects/mocklibc-1.0/src/netgro

    From Mark Hindley@21:1/5 to All on Wed Mar 13 14:10:01 2024
    Control: tags -1 patch

    I also bumped into this whilst rebuilding src:policykit-1 yesterday.

    There is an upstream patch[1], but it doesn't fix the build for me; I think it is patching the wrong files.The problem appears to be multiple copies of mocklibc. AFAICS ./test/mocklibc is not used in favour of a meson subproject.

    The pkla-compat tarball also has mocklibc, but that is also patched already.

    Getting the multiple layers of quilt and meson patches to work was
    unpleasant. So the attached patch may save you some time.

    HTH

    Mark

    [1] https://github.com/polkit-org/polkit/commit/0d78d1e4bf5ab3ce11678005b220aac0cfc5bee5


    From f50131bcb98802a66dcc1ee4cc952ca1cc9f8ff4 Mon Sep 17 00:00:00 2001
    From: Mark Hindley <mark@hindley.org.uk>
    Date: Wed, 13 Mar 2024 09:13:27 +0000
    Subject: [PATCH] Import upstream patch to fix embedded mocklibc subproject
    FTBFS with gcc 14.

    ---
    ...e-print_indent-function-to-the-file-.patch | 91 +++++++++++++++++++
    debian/patches/series | 1 +
    2 files changed, 92 insertions(+)
    create mode 100644 debian/patches/06-embedded-mocklibc-move-the-print_indent-function-to-the-file-.patch

    diff --git a/debian/patches/06-embedded-mocklibc-move-the-print_indent-function-to-the-file-.patch b/debian/patches/06-embedded-mocklibc-move-the-print_indent-function-to-the-file-.patch
    new file mode 100644
    index 00000000..184161b7
    --- /dev/null
    +++ b/debian/patches/06-embedded-mocklibc-move-the-print_indent-function-to-the-file-.patch
    @@ -0,0 +1,91 @@
    +--- a/subprojects/mocklibc.wrap
    ++++ b/subprojects/mocklibc.wrap
    +@@ -8,3 +8,5 @@
    + patch_url = https://wrapdb.mesonbuild.com/v1/projects/mocklibc/1.0/2/get_zip + patch_filename = mocklibc-1.0-2-wrap.zip
    + patch_hash = 0280f96a2eeb3c023e5acf4e00cef03d362868218d4a85347ea45137c0ef6c56 ++diff_files = mocklibc-move-the-print_indent-function-to-the-file.patch
    ++
    +--- /dev/null