• Unexpected problem when making Emacs 29 backport to Debian 12

    From Reuben Thomas@21:1/5 to All on Sat Aug 19 00:10:01 2023
    I just tried to make a backport to Debian 12. Unsurprisingly, I had to
    change the build-deps on GCC 13 to GCC 12. Rather more surprisingly, I then
    got the following error during build: /home/rrt/.local/var/Downloads/emacs-29.1+1/debian/build-src/src/process.c:129:10:
    fatal error: glib.h: No such file or directory
    129 | #include <glib.h>
    | ^~~~~~~~
    compilation terminated.

    This turned out to be while building emacs-lucid.

    Since I didn't need the Lucid version, I hacked around the problem by not building the Lucid (or nox) packages.

    Obviously, this didn't happen when the packages were built for unstable!
    But I'm baffled, as I can't see any mention of glib in debian/rules, nor
    any fiddling with the glib settings in the section of configure.ac that
    deals with the --without-gsettings flag.

    --
    https://rrt.sc3d.org

    <div dir="ltr"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"></span>I just tried to make a backport to Debian 12. Unsurprisingly, I had to change the build-deps on GC<span class="gmail_default" style="font-
    family:arial,helvetica,sans-serif;font-size:small"></span>C 13 to GCC 12. Rather more surprisingly, I then got the following error during build:<div class="gmail_quote"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small"><
    div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default"></div></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">/home/rrt/.local/var/Downloads/emacs-29.1+1/debian/build-src/src/process.c:129:10:
    fatal error: glib.h: No such file or directory<br>  129 | #include &lt;g<span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"></span>lib.h&gt;<br>      |          ^~~~~~~~<br>compilation terminated.</div><div
    style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">This turned out to be while building emacs-lucid.</div><div style="font-family:arial,helvetica,sans-serif;font-
    size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">Since I didn&#39;t need the Lucid version, I hacked around the problem by <span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">
    not building the Lucid (or nox) packages.</span><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"></span><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-
    family:arial,helvetica,sans-serif;font-size:small">Obviously, <span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">this</span> didn&#39;t ha<span class="gmail_default" style="font-family:arial,helvetica,sans-serif;
    font-size:small">ppen when the packages were built for unstable</span>! But I&#39;m baffled, as I can&#39;t see any mention of glib in debian/rules, nor any fiddling with the glib settings in the section of <a href="http://configure.ac" target="_blank">
    configure.ac</a> that deals with the --without-gsettings flag.<br></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><a href="https://rrt.
    sc3d.org" target="_blank">https://rrt.sc3d.org</a></div></div></div></div></div></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)