Diffutils 3.11 fail exactly as 3.12 do.

Diffutils 3.10 did not compile here since May 2023, see for example: 
https://trac.macports.org/ticket/67488, https://trac.macports.org/ticket/67248, 
https://trac.macports.org/ticket/68964.
They were never installed here (from time to time I am recording what is 
installed). This little patch, as taken from the resolutions of tickets 
mentioned above, makes diffutils 3.10 compile:

        --- lib/stdio.in.h~ 2023-05-14 08:33:35.000000000 +0200
        +++ lib/stdio.in.h 2025-06-17 11:20:27.000000000 +0200
        @@ -37,7 +37,7 @@
         #ifndef _@GUARD_PREFIX@_STDIO_H
           /* Suppress macOS deprecation warnings for sprintf and vsprintf.  */
        -#if (defined __APPLE__ && defined __MACH__) && !defined _POSIX_C_SOURCE
        +#if (defined __APPLE__ && defined __MACH__) && !defined 
_POSIX_C_SOURCE && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050)
         # define _POSIX_C_SOURCE 200809L
         # define _GL_DEFINED__POSIX_C_SOURCE
         #endif

Well, what can I write, or cite:

        tiger pete 234 /\  
/opt/local/var/macports/build/_Users_btest_ports_sysutils_diffutils/diffutils/work/diffutils-3.10/src/diff
 -u Portfile-graphite2-312 Portfile-graphite2
        --- Portfile-graphite2-312 2025-06-17 08:43:05.000000000 +0200
        +++ Portfile-graphite2 2025-06-17 08:42:18.000000000 +0200
        @@ -31,7 +31,7 @@
         compiler.cxx_standard \
                             2011
          -set py_ver          3.12
        +set py_ver          3.13
         set py_ver_nodot    [string map {. {}} ${py_ver}]
           test.run            yes
        Exit 1

(Even the line numbers are the same as on my High Sierra Mac.) I tried also a 
few more pairs to diff from some regular routine, and all was successful. So 
the bug was introduced quite recently between versions 3.10 and 3.11.


If bisecting with git does not bring a result, I'd try a parallel GDB session 
in two Emacsen with both. (A Mac allows to use an X client, the NeXTStep 
successor, and the "Carbon" unofficial variant.) This might show differences in 
behaviour.

--

Greetings

  Pete

We need a president who's fluent in at least one language.
                                – Buck Henry

  Pete

Radio heißt: Erst denken, dann reden.
TV heißt: Erst schminken, dann reden.




Reply via email to