• SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/S

    From Kenneth Wolcott@21:1/5 to All on Wed Jun 28 11:38:58 2023
    Hi;

    Trying to build SDL Ada on a Mac Mini with M1 chip, running Ventura 13.4.1...

    sudo make DESTDIR=/opt/ext_ada_lib/sdlada SDL_PLATFORM=macosx SDL_MODE=release mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macosx \
    -Psdlada.gpr
    Compile
    [C] version_ttf.c [redacted]/Ada/from_GitHub/sdlada-master/src/ttf/version_ttf.c:27:18: fatal error: SDL2_ttf/SDL_ttf.h: No such file or directory
    27 | #include <SDL2_ttf/SDL_ttf.h>
    | ^~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    gprbuild: *** compilation phase failed
    make: *** [lib/libadasdl.a] Error 4

    Thanks,
    Ken Wolcott

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Kenneth Wolcott on Wed Jun 28 22:13:57 2023
    On 28/06/2023 19:38, Kenneth Wolcott wrote:
    Hi;

    Trying to build SDL Ada on a Mac Mini with M1 chip, running Ventura 13.4.1...

    sudo make DESTDIR=/opt/ext_ada_lib/sdlada SDL_PLATFORM=macosx SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macosx \
    -Psdlada.gpr
    Compile
    [C] version_ttf.c [redacted]/Ada/from_GitHub/sdlada-master/src/ttf/version_ttf.c:27:18: fatal error: SDL2_ttf/SDL_ttf.h: No such file or directory
    27 | #include <SDL2_ttf/SDL_ttf.h>
    | ^~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    gprbuild: *** compilation phase failed
    make: *** [lib/libadasdl.a] Error 4

    Have you installed sdl ttf with brew? I cannot confirm this all works
    without brew.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Luke A. Guest on Wed Jun 28 14:18:34 2023
    On Wednesday, June 28, 2023 at 2:14:00 PM UTC-7, Luke A. Guest wrote:
    On 28/06/2023 19:38, Kenneth Wolcott wrote:
    Hi;

    Trying to build SDL Ada on a Mac Mini with M1 chip, running Ventura 13.4.1...

    sudo make DESTDIR=/opt/ext_ada_lib/sdlada SDL_PLATFORM=macosx SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macosx \ -Psdlada.gpr
    Compile
    [C] version_ttf.c [redacted]/Ada/from_GitHub/sdlada-master/src/ttf/version_ttf.c:27:18: fatal error: SDL2_ttf/SDL_ttf.h: No such file or directory
    27 | #include <SDL2_ttf/SDL_ttf.h>
    | ^~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    gprbuild: *** compilation phase failed
    make: *** [lib/libadasdl.a] Error 4
    Have you installed sdl ttf with brew? I cannot confirm this all works without brew.

    Hi Luke;

    I heavily use MacPorts. I keep hearing that it is a very bad idea to have MacPorts and HomeBrew concurrently installed on the same machine. Is it at all possible to do this without HomeBrew? Apparently I did not read your documentation carefully enough.
    ..I thought that having SDL installed via HomeBrew was optional, not required.

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Kenneth Wolcott on Wed Jun 28 14:53:10 2023
    On Wednesday, June 28, 2023 at 2:18:36 PM UTC-7, Kenneth Wolcott wrote:
    On Wednesday, June 28, 2023 at 2:14:00 PM UTC-7, Luke A. Guest wrote:
    On 28/06/2023 19:38, Kenneth Wolcott wrote:
    Hi;

    Trying to build SDL Ada on a Mac Mini with M1 chip, running Ventura 13.4.1...

    sudo make DESTDIR=/opt/ext_ada_lib/sdlada SDL_PLATFORM=macosx SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macosx \ -Psdlada.gpr
    Compile
    [C] version_ttf.c [redacted]/Ada/from_GitHub/sdlada-master/src/ttf/version_ttf.c:27:18: fatal error: SDL2_ttf/SDL_ttf.h: No such file or directory
    27 | #include <SDL2_ttf/SDL_ttf.h>
    | ^~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    gprbuild: *** compilation phase failed
    make: *** [lib/libadasdl.a] Error 4
    Have you installed sdl ttf with brew? I cannot confirm this all works without brew.
    Hi Luke;

    I heavily use MacPorts. I keep hearing that it is a very bad idea to have MacPorts and HomeBrew concurrently installed on the same machine. Is it at all possible to do this without HomeBrew? Apparently I did not read your documentation carefully enough.
    ..I thought that having SDL installed via HomeBrew was optional, not required.

    Thanks,
    Ken

    Since I'm not using ALIRE (ALR), but using gnatmake (I'm on a Mac mini with an M1 chip, ALR refuses to get most packages because I don't have a native Ada compiler), I thought that the HomeBrew mention was in regards to using the SDLAda package via ALIRE.

    So that's a different problem requiring a different post :-)

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Kenneth Wolcott on Wed Jun 28 23:45:38 2023
    On 28/06/2023 22:53, Kenneth Wolcott wrote:

    I heavily use MacPorts. I keep hearing that it is a very bad idea to have MacPorts and HomeBrew concurrently installed on the same machine. Is it at all possible to do this without HomeBrew? Apparently I did not read your documentation carefully
    enough...I thought that having SDL installed via HomeBrew was optional, not required.

    I didn't get it working on Mac myself, I originally started to get it
    going using the downloadable binaries you can just drag n drop.

    Others got it working with brew, afaik.


    Since I'm not using ALIRE (ALR), but using gnatmake (I'm on a Mac mini with an M1 chip, ALR refuses to get most packages because I don't have a native Ada compiler), I thought that the HomeBrew mention was in regards to using the SDLAda package via
    ALIRE.

    So that's a different problem requiring a different post :-)

    You're probably better off using git to grab it, then modify the
    makefile and gpr's for a specific macos macports port, add a new
    Platform_Type, macosx_macports and add what you need inside the sdlada.gpr.

    Then you can call make SDL_PLATFORM=macosx_macports SDL_MODE=release to
    build it.

    Check whatever sdl2-config --cflags produces on that port.

    If the headers are in different directories, you'll need to modify the version*.c files with extra #ifdef's for macports.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Luke A. Guest on Wed Jun 28 17:17:41 2023
    On Wednesday, June 28, 2023 at 3:45:41 PM UTC-7, Luke A. Guest wrote:
    On 28/06/2023 22:53, Kenneth Wolcott wrote:

    I heavily use MacPorts. I keep hearing that it is a very bad idea to have MacPorts and HomeBrew concurrently installed on the same machine. Is it at all possible to do this without HomeBrew? Apparently I did not read your documentation carefully
    enough...I thought that having SDL installed via HomeBrew was optional, not required.
    I didn't get it working on Mac myself, I originally started to get it
    going using the downloadable binaries you can just drag n drop.

    Others got it working with brew, afaik.
    Since I'm not using ALIRE (ALR), but using gnatmake (I'm on a Mac mini with an M1 chip, ALR refuses to get most packages because I don't have a native Ada compiler), I thought that the HomeBrew mention was in regards to using the SDLAda package via
    ALIRE.

    So that's a different problem requiring a different post :-)
    You're probably better off using git to grab it, then modify the
    makefile and gpr's for a specific macos macports port, add a new Platform_Type, macosx_macports and add what you need inside the sdlada.gpr.

    Then you can call make SDL_PLATFORM=macosx_macports SDL_MODE=release to build it.

    Check whatever sdl2-config --cflags produces on that port.

    If the headers are in different directories, you'll need to modify the version*.c files with extra #ifdef's for macports.

    Hi Luke;

    Thank you for more information.

    This looks a little bit deeper than I feel comfortable :-(

    I'll think about this a bit more and experiment further, but this is definitely in uncharted territory for me.

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Kenneth Wolcott on Thu Jun 29 10:50:15 2023
    On 29/06/2023 01:17, Kenneth Wolcott wrote:
    Hi Luke;

    Thank you for more information.

    This looks a little bit deeper than I feel comfortable :-(

    I'll think about this a bit more and experiment further, but this is definitely in uncharted territory for me.


    It';s really not, you need to run sdl2-config --cflags and --libs to get
    the set of flags, do that and report back here with the results.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon Wright@21:1/5 to Kenneth Wolcott on Thu Jun 29 12:33:44 2023
    Kenneth Wolcott <kennethwolcott@gmail.com> writes:

    I heavily use MacPorts. I keep hearing that it is a very bad idea to
    have MacPorts and HomeBrew concurrently installed on the same machine.
    Is it at all possible to do this without HomeBrew? Apparently I did
    not read your documentation carefully enough...I thought that having
    SDL installed via HomeBrew was optional, not required.

    It's quite tricky to get the C includes and library directories working;
    using Homebrew doesn't make it any easier, and the fact that the Mac
    compilers (both the ones I've provided and the ones you get via Alire)
    don't look in /usr/local by default doesn't help.

    Having the external SDL2/SDL2_images/SDL22_ttf installed via Homebrew
    isn't mandatory, but they do have to be installed! I expect that
    MacPorts can do this.

    With HomeBrew, installed packages are(almost always) under
    $HOMEBREW_PREFIX, and I've defined these environment variables globally:

    export C_INCLUDE_PATH=$HOMEBREW_PREFIX/include
    export LIBRARY_PATH=$HOMEBREW_PREFIX/lib

    I'd be surprised if MacPorts doesn't do similar
    (e.g. MACPORTS_PREFIX=/opt/local ??).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon Wright@21:1/5 to Kenneth Wolcott on Thu Jun 29 14:12:49 2023
    Kenneth Wolcott <kennethwolcott@gmail.com> writes:

    Since I'm [...] using gnatmake

    I don't understand why you'd want to use gnatmake? Most people who
    provide packaged libraries (e.g. sdlada) include a GPR file which saves
    you a raft of pain if you use it. OK, you have to learn something about gprbuild, but then you have to learn how to drive gnatmake (e.g. the
    previous discussion about -I). Also, sdlada includes 3 C source files,
    and so far as I know gnatmake doesn't know how to build C files, whereas gprbuild does and build/gnat/sdlada.gpr drives the needed compilations.

    I'm on a Mac mini
    with an M1 chip, ALR refuses to get most packages because I don't have
    a native Ada compiler

    Can you give us an example of a package that alr refuses to get?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Simon Wright on Thu Jun 29 14:39:37 2023
    On 29/06/2023 14:12, Simon Wright wrote:
    Kenneth Wolcott <kennethwolcott@gmail.com> writes:

    Since I'm [...] using gnatmake

    I don't understand why you'd want to use gnatmake? Most people who
    provide packaged libraries (e.g. sdlada) include a GPR file which saves
    you a raft of pain if you use it. OK, you have to learn something about gprbuild, but then you have to learn how to drive gnatmake (e.g. the
    previous discussion about -I). Also, sdlada includes 3 C source files,
    and so far as I know gnatmake doesn't know how to build C files, whereas gprbuild does and build/gnat/sdlada.gpr drives the needed compilations.

    Yeah, unfortunately I cannot remove the C files as they turn C macros
    into variables and are useful at runtime, see the sdlada repo for
    someone who wants to get rid of them.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon Wright@21:1/5 to Luke A. Guest on Thu Jun 29 17:06:51 2023
    "Luke A. Guest" <laguest@archeia.com> writes:

    Yeah, unfortunately I cannot remove the C files as they turn C macros
    into variables and are useful at runtime, see the sdlada repo for
    someone who wants to get rid of them.

    I had exactly this in tcladashell; even better, a Tcl script to generate
    a C source, compiled against the Tcl/Tk libraries and run to generate
    Ada source specifying record sizes/alignments.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Simon Wright on Thu Jun 29 10:34:03 2023
    On Thursday, June 29, 2023 at 9:06:56 AM UTC-7, Simon Wright wrote:
    "Luke A. Guest" writes:

    Yeah, unfortunately I cannot remove the C files as they turn C macros
    into variables and are useful at runtime, see the sdlada repo for
    someone who wants to get rid of them.
    I had exactly this in tcladashell; even better, a Tcl script to generate
    a C source, compiled against the Tcl/Tk libraries and run to generate
    Ada source specifying record sizes/alignments.

    Hi Luke & Simon;

    Let's see if I can properly address all of the wonderful responses in a summarized fashion.

    1. I'm using gnatmake versus gprbuild because I just haven't gotten used to it yet, not avoiding it specifically. Of course it looks like it makes things easier...

    2. I stopped using Alire because I wanted a native gnat compiler and Alire didn't provide one and now that I installed and am using Simon's (again, thank you) build, Alire refuses to "get" some interesting packages. I'll respond later with some
    specific examples. Perhaps I have Alire improperly installed or configured...

    3. I have installed libsdl2 via MacPorts:
    port list | grep sdl2
    libsdl2_mixer @2.6.3 audio/libsdl2_mixer
    libsdl2 @2.28.0 devel/libsdl2 libsdl2-snowleopard @2.0.22 devel/libsdl2-snowleopard libsdl2_gfx @1.0.4 devel/libsdl2_gfx
    libsdl2_image @2.6.3 devel/libsdl2_image
    libsdl2_net @2.2.0 devel/libsdl2_net
    libsdl2_ttf @2.20.2 devel/libsdl2_ttf

    4. Examples of Alire's "get" failure:
    alr --no-color search --crates sdl
    labs_solar_system A set of SDL-based exercises to learn Ada
    libsdl2 Simple DirectMedia Layer development files
    libsdl2_image Simple DirectMedia Layer development files - Image libsdl2_ttf Simple DirectMedia Layer development files - TTF pygamer_simulator SDL simulator of the AdaFruit PyGamer console
    sdlada Ada 2012 SDL 2.x bindings.

    alr --no-color get sdlada
    Warning:
    Warning: New solution is incomplete.
    Warning: +~ libsdl2 ^2.0.0 (new,external)
    Warning: +~ libsdl2_image ^2.0.0 (new,external)
    Warning: +~ libsdl2_ttf ^2.0.0 (new,external)
    Warning: + make 3.81.0 (new)
    Warning:
    Warning: Could not find a complete solution for sdlada=2.5.5
    Build will fail unless externals are made available, do you want to continue? [Y] Yes [N] No (default is No) n
    ERROR: Crate retrieval abandoned.

    alr --no-color get libsdl2_ttf
    ERROR: No source release indexed for the requested crate, and cannot use system packages in unknown distribution

    alr --no-color get libsdl2
    ERROR: No source release indexed for the requested crate, and cannot use system packages in unknown distribution

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Simon Wright on Thu Jun 29 20:29:07 2023
    On 29/06/2023 17:06, Simon Wright wrote:
    "Luke A. Guest" <laguest@archeia.com> writes:

    Yeah, unfortunately I cannot remove the C files as they turn C macros
    into variables and are useful at runtime, see the sdlada repo for
    someone who wants to get rid of them.

    I had exactly this in tcladashell; even better, a Tcl script to generate
    a C source, compiled against the Tcl/Tk libraries and run to generate
    Ada source specifying record sizes/alignments.

    I bet you never had someone try to remove the C file though.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Kenneth Wolcott on Thu Jun 29 20:35:04 2023
    On 29/06/2023 18:34, Kenneth Wolcott wrote:

    1. I'm using gnatmake versus gprbuild because I just haven't gotten used to it yet, not avoiding it specifically. Of course it looks like it makes things easier...

    gnatmake cannot handle project files anymore, it is for building single applications, e.g. gnatmake my_app.adb, nothing more. You need to use
    gprbuild with sdlada.

    3. I have installed libsdl2 via MacPorts:
    port list | grep sdl2
    libsdl2_mixer @2.6.3 audio/libsdl2_mixer
    libsdl2 @2.28.0 devel/libsdl2 libsdl2-snowleopard @2.0.22 devel/libsdl2-snowleopard libsdl2_gfx @1.0.4 devel/libsdl2_gfx libsdl2_image @2.6.3 devel/libsdl2_image libsdl2_net @2.2.0 devel/libsdl2_net
    libsdl2_ttf @2.20.2 devel/libsdl2_ttf

    Right, so the other SDL libs usually install to the same place SDL is,
    so what are the locations? Run these commands and tell me the results:

    $ sdl2-config --cflags
    $ sdl2-config --libs


    4. Examples of Alire's "get" failure:

    Forget about alire for now, I can update the main repo and you can grab
    the source from there and use GPR_PROJECT_PATH=<path to sdlada>/build/gnat:$GPR_PROJECT_PATH to build.

    alr --no-color get libsdl2_ttf
    ERROR: No source release indexed for the requested crate, and cannot use system packages in unknown distribution

    alr --no-color get libsdl2
    ERROR: No source release indexed for the requested crate, and cannot use system packages in unknown distribution

    They're probably missing from the mac m1 specific index.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon Wright@21:1/5 to Kenneth Wolcott on Thu Jun 29 22:22:25 2023
    Kenneth Wolcott <kennethwolcott@gmail.com> writes:

    2. I stopped using Alire because I wanted a native gnat compiler and
    Alire didn't provide one and now that I installed and am using Simon's (again, thank you) build, Alire refuses to "get" some interesting
    packages. I'll respond later with some specific examples. Perhaps I
    have Alire improperly installed or configured...

    I wrote up something about this[1].

    Alire will download and install external packages (e.g. SDL2) if it
    knows how to use the host system's package manager. The "nightly"
    builds[2] for macOS know how to install via Homebrew, provided that the external manifest has been updated[3].

    If someone wants to upgrade Alire to use MacPorts, I'm sure that would
    be welcomed.

    Adding aarch64 compilers to the mix makes things somewhat more
    complicated.

    Does MacPorts provide aarch64 (aka arm64) binary libraries? the object
    code and libraries that are linked to produce an executable must be
    consistent, all x86_64 or all aarch64.

    [1]
    https://forward-in-code.blogspot.com/2023/06/alire-on-macos-revisited.html
    [2] https://github.com/alire-project/alire/releases
    [3] https://github.com/alire-project/alire-index/pull/832

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Luke A. Guest on Thu Jun 29 15:04:18 2023
    On Thursday, June 29, 2023 at 12:35:08 PM UTC-7, Luke A. Guest wrote:
    On 29/06/2023 18:34, Kenneth Wolcott wrote:

    1. I'm using gnatmake versus gprbuild because I just haven't gotten used to it yet, not avoiding it specifically. Of course it looks like it makes things easier...
    gnatmake cannot handle project files anymore, it is for building single applications, e.g. gnatmake my_app.adb, nothing more. You need to use gprbuild with sdlada.
    3. I have installed libsdl2 via MacPorts:
    port list | grep sdl2
    libsdl2_mixer @2.6.3 audio/libsdl2_mixer
    libsdl2 @2.28.0 devel/libsdl2
    libsdl2-snowleopard @2.0.22 devel/libsdl2-snowleopard
    libsdl2_gfx @1.0.4 devel/libsdl2_gfx
    libsdl2_image @2.6.3 devel/libsdl2_image
    libsdl2_net @2.2.0 devel/libsdl2_net
    libsdl2_ttf @2.20.2 devel/libsdl2_ttf
    Right, so the other SDL libs usually install to the same place SDL is,
    so what are the locations? Run these commands and tell me the results:

    Actually, me the dummy, provided for you all what MacPorts has, not what I have :-)

    This is what I have installed via MacPorts:
    port installed | grep sdl
    libsdl2 @2.24.2_0
    libsdl2 @2.26.1_0
    libsdl2 @2.26.2_0
    libsdl2 @2.26.3_0
    libsdl2 @2.26.4_0
    libsdl2 @2.26.5_0
    libsdl2 @2.28.0_0 (active)

    $ sdl2-config --cflags
    $ sdl2-config --libs

    sdl2-config --cflags
    -I/opt/local/include/SDL2 -D_THREAD_SAFE

    sdl2-config --libs
    -L/opt/local/lib -lSDL2

    4. Examples of Alire's "get" failure:
    Forget about alire for now, I can update the main repo and you can grab
    the source from there and use GPR_PROJECT_PATH=<path to sdlada>/build/gnat:$GPR_PROJECT_PATH to build.

    Ok, cool.

    alr --no-color get libsdl2_ttf
    ERROR: No source release indexed for the requested crate, and cannot use system packages in unknown distribution

    alr --no-color get libsdl2
    ERROR: No source release indexed for the requested crate, and cannot use system packages in unknown distribution
    They're probably missing from the mac m1 specific index.

    Well, that would probably explain the problem :-)

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Simon Wright on Thu Jun 29 15:12:57 2023
    On Thursday, June 29, 2023 at 2:22:30 PM UTC-7, Simon Wright wrote:
    Kenneth Wolcott writes:

    2. I stopped using Alire because I wanted a native gnat compiler and
    Alire didn't provide one and now that I installed and am using Simon's (again, thank you) build, Alire refuses to "get" some interesting packages. I'll respond later with some specific examples. Perhaps I
    have Alire improperly installed or configured...
    I wrote up something about this[1].

    Alire will download and install external packages (e.g. SDL2) if it
    knows how to use the host system's package manager. The "nightly"
    builds[2] for macOS know how to install via Homebrew, provided that the external manifest has been updated[3].

    If someone wants to upgrade Alire to use MacPorts, I'm sure that would
    be welcomed.

    Adding aarch64 compilers to the mix makes things somewhat more
    complicated.

    Does MacPorts provide aarch64 (aka arm64) binary libraries? the object
    code and libraries that are linked to produce an executable must be consistent, all x86_64 or all aarch64.

    I have no configured MacPorts to not accept any binaries that aren't aarch64
    and I do almost all of my upgrade+updates using the source flag so that I build from source. There's only one issue that I've experienced after making that change:

    port outdated
    sbcl-bootstrap 2.1.2_0 < 2.2.9_0

    The following are two lines from the failed upgrade to MacPorts, but they don't really adversely affect me because I have a prior version (I don't recall what I have that requires this package :-) )

    Error: Cannot install qt4-mac for the arch 'x86_64' because
    Error: its dependency dbus does not build for the required arch by default

    port installed | grep sbcl-bootstrap
    sbcl-bootstrap @2.1.2_0 (active)

    [1] https://forward-in-code.blogspot.com/2023/06/alire-on-macos-revisited.html [2] https://github.com/alire-project/alire/releases
    [3] https://github.com/alire-project/alire-index/pull/832

    I'll take a look at those references...

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Kenneth Wolcott on Fri Jun 30 09:04:30 2023
    On 29/06/2023 23:04, Kenneth Wolcott wrote:

    $ sdl2-config --cflags
    $ sdl2-config --libs

    sdl2-config --cflags
    -I/opt/local/include/SDL2 -D_THREAD_SAFE

    That's odd. Can you show me the output of this?

    $ ls /opt/local/include/SDL2


    sdl2-config --libs
    -L/opt/local/lib -lSDL2

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to All on Fri Jun 30 12:30:48 2023
    This is a multi-part message in MIME format.
    The /build/gnat gpr's have got a bit confused by the looks of things.

    Can you try this patch, it's made from a stash from a diff branch, if it
    works I'll apply it and push it.

    Luke.

    ZGlmZiAtLWdpdCBhL2J1aWxkL2duYXQvbWFrZWZpbGUgYi9idWlsZC9nbmF0L21ha2VmaWxl CmluZGV4IGIxMzkzMGYuLjAwNDY0OTAgMTAwNjQ0Ci0tLSBhL2J1aWxkL2duYXQvbWFrZWZp bGUKKysrIGIvYnVpbGQvZ25hdC9tYWtlZmlsZQpAQCAtOTAsNyArOTAsNyBAQCB0ZXN0czog JChMSUJfTkFNRSkgdGVzdHMuZ3ByICQoVEVTVFNfU1JDUykKIAogdGVzdHMuZ3ByOiAkKFRF U1RTX1NSQ1MpIGdlbi8kKFNETF9NT0RFKS90ZXN0L2xpYnRlc3RtYXRocy5zbwogCSQoR1BS TUFLRSkgLXAgLWduYXQyMDEyIC1YU0RMX01PREU9JChTRExfTU9ERSkgLVhTRExfUExBVEZP Uk09JChTRExfUExBVEZPUk0pIFwKLQkJLVB0ZXN0cy5ncHIgJHtTREwyX0NPTkZJR30KKwkJ LVB0ZXN0cy5ncHIgIyAke1NETDJfQ09ORklHfQogCiAjIE1hdGhzIGxpYnJhcnkKIApAQCAt MTExLDcgKzExMSw3IEBAIHVuaXRfdGVzdHM6ICQoTElCX05BTUUpIGJ1aWxkX3VuaXRfdGVz dHMvdW5pdF90ZXN0cwogCiBidWlsZF91bml0X3Rlc3RzL3VuaXRfdGVzdHM6CiAJJChHUFJN QUtFKSAtcCAtZ25hdDIwMTIgLVhTRExfTU9ERT0kKFNETF9NT0RFKSAtWFNETF9QTEFURk9S TT0kKFNETF9QTEFURk9STSkgXAotCQktUHVuaXRfdGVzdHMuZ3ByICR7U0RMMl9DT05GSUd9 CisJCS1QdW5pdF90ZXN0cy5ncHIgIyAke1NETDJfQ09ORklHfQogCiAuUEhPTlk6IGNsZWFu LXVuaXRfdGVzdHMKIApkaWZmIC0tZ2l0IGEvYnVpbGQvZ25hdC9zZGxhZGEuZ3ByIGIvYnVp bGQvZ25hdC9zZGxhZGEuZ3ByCmluZGV4IGFkYzc3ZjUuLjEzZWY4ZWUgMTAwNjQ0Ci0tLSBh L2J1aWxkL2duYXQvc2RsYWRhLmdwcgorKysgYi9idWlsZC9nbmF0L3NkbGFkYS5ncHIKQEAg LTEsMTAgKzEsMjEgQEAKIGxpYnJhcnkgcHJvamVjdCBTRExBZGEgaXMKLSAgIHR5cGUgUGxh dGZvcm1fVHlwZSBpcyAoImxpbnV4IiwgImJzZCIsICJ3aW5kb3dzIiwgIm1hY29zeCIsICJt YWNvc19ob21lYnJldyIsICJpb3MiLCAiYW5kcm9pZCIpOworICAgdHlwZSBQbGF0Zm9ybV9U eXBlIGlzICgibGludXgiLAorICAgICAgICAgICAgICAgICAgICAgICAgICAiYnNkIiwKKyAg ICAgICAgICAgICAgICAgICAgICAgICAgIndpbmRvd3MiLAorICAgICAgICAgICAgICAgICAg ICAgICAgICAibWFjb3N4IiwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgIm1hY29zX2hv bWVicmV3IiwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgIm1hY29zX3BvcnRzIiwKKyAg ICAgICAgICAgICAgICAgICAgICAgICAgImlvcyIsCisgICAgICAgICAgICAgICAgICAgICAg ICAgICJhbmRyb2lkIik7CiAgICB0eXBlIE1vZGVfVHlwZSBpcyAoImRlYnVnIiwgInJlbGVh c2UiKTsKIAogICAgUGxhdGZvcm0gOiBQbGF0Zm9ybV9UeXBlIDo9IGV4dGVybmFsICgiU0RM X1BMQVRGT1JNIiwgImxpbnV4Iik7CiAgICBNb2RlICAgICA6IE1vZGVfVHlwZSAgICAgOj0g ZXh0ZXJuYWwgKCJTRExfTU9ERSIsICJkZWJ1ZyIpOwogCisgICBwYWNrYWdlIEJ1aWxkZXIg aXMKKyAgICAgIGZvciBEZWZhdWx0X1N3aXRjaGVzICgiQWRhIikgdXNlICgiLWduYXQyMDEy IiwgIi1nbmF0YSIpOworICAgZW5kIEJ1aWxkZXI7CisKICAgIFNvdXJjZV9QbGF0Zm9ybSA6 PSAiIjsKIAogICAgY2FzZSBQbGF0Zm9ybSBpcwpAQCAtNTIsNiArNjMsMTEgQEAgbGlicmFy eSBwcm9qZWN0IFNETEFkYSBpcwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIi1JL3Vzci9sb2NhbC9pbmNsdWRlIiwKICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICItRF9SRUVOVFJBTlQiKTsKIAorICAgICAgICAgd2hl biAibWFjb3NfcG9ydHMiID0+CisgICAgICAgICAgICBDX1N3aXRjaGVzICAgOj0gQ19Td2l0 Y2hlcyAmICgiLURTRExfTUFDUE9SVFMiLAorICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIi1JL29wdC9sb2NhbC9pbmNsdWRlIiwKKyAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICItRF9USFJFQURfU0FGRSIpOworCiAgICAg ICAgICB3aGVuIG90aGVycyA9PgogICAgICAgICAgICAgbnVsbDsKICAgICAgIGVuZCBjYXNl OwpAQCAtNTksNCArNzUsMzMgQEAgbGlicmFyeSBwcm9qZWN0IFNETEFkYSBpcwogICAgICAg Zm9yIERlZmF1bHRfU3dpdGNoZXMgKCJDIikgdXNlIENvbW1vbl9Td2l0Y2hlcyAmIENfU3dp dGNoZXM7CiAgICAgICBmb3IgRGVmYXVsdF9Td2l0Y2hlcyAoIkFkYSIpIHVzZSBDb21tb25f U3dpdGNoZXMgJiBBZGFfU3dpdGNoZXM7CiAgICBlbmQgQ29tcGlsZXI7CisKKyAgIHBhY2th Z2UgTGlua2VyIGlzCisgICAgICBMaW5rZXJfU3dpdGNoZXMgOj0gKCk7CisKKyAgICAgIGNh c2UgUGxhdGZvcm0gaXMKKyAgICAgICAgIHdoZW4gImxpbnV4IiB8ICJic2QiIHwgImFuZHJv aWQiIHwgIndpbmRvd3MiID0+CisgICAgICAgICAgICBMaW5rZXJfU3dpdGNoZXMgOj0gTGlu a2VyX1N3aXRjaGVzICYgKCItbFNETDIiLAorICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAiLWxTREwyX3R0ZiIsCisgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICItbFNETDJfaW1hZ2UiLAorICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiLUwvdXNy L2xpYjY0Iik7CisKKyAgICAgICAgIHdoZW4gIm1hY29zX2hvbWVicmV3IiA9PgorICAgICAg ICAgICAgTGlua2VyX1N3aXRjaGVzIDo9IExpbmtlcl9Td2l0Y2hlcyAmICgiLWxTREwyIiwK KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIi1s U0RMMl90dGYiLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAiLWxTREwyX2ltYWdlIiwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIi1ML3Vzci9sb2NhbC9saWIiKTsKKworICAgICAgICAg d2hlbiAibWFjb3NfcG9ydHMiID0+CisgICAgICAgICAgICBMaW5rZXJfU3dpdGNoZXMgOj0g TGlua2VyX1N3aXRjaGVzICYgKCItbFNETDIiLAorICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAiLWxTREwyX3R0ZiIsCisgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICItbFNETDJfaW1hZ2UiLAor ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiLUwv b3B0L2xvY2FsL2xpYiIpOworCisgICAgICAgICB3aGVuIG90aGVycyA9PgorICAgICAgICAg ICAgbnVsbDsKKyAgICAgIGVuZCBjYXNlOworCisgICAgICBmb3IgU3dpdGNoZXMgKCJBZGEi KSB1c2UgTGlua2VyX1N3aXRjaGVzOworICAgZW5kIExpbmtlcjsKIGVuZCBTRExBZGE7CmRp ZmYgLS1naXQgYS9idWlsZC9nbmF0L3NkbGFkYV9pbWFnZS5ncHIgYi9idWlsZC9nbmF0L3Nk bGFkYV9pbWFnZS5ncHIKaW5kZXggMTA5ODA5NS4uNWE5NzY0ZiAxMDA2NDQKLS0tIGEvYnVp bGQvZ25hdC9zZGxhZGFfaW1hZ2UuZ3ByCisrKyBiL2J1aWxkL2duYXQvc2RsYWRhX2ltYWdl LmdwcgpAQCAtMTEsNCArMTEsNSBAQCBsaWJyYXJ5IHByb2plY3QgU0RMQWRhX0ltYWdlIGlz CiAgICBmb3IgTGlicmFyeV9WZXJzaW9uIHVzZSAibGlic2RsYWRhX2ltYWdlLnNvLiIgJiBW ZXJzaW9uOwogCiAgICBwYWNrYWdlIENvbXBpbGVyIHJlbmFtZXMgU0RMQWRhLkNvbXBpbGVy OworICAgcGFja2FnZSBMaW5rZXIgcmVuYW1lcyBTRExBZGEuTGlua2VyOwogZW5kIFNETEFk YV9JbWFnZTsKZGlmZiAtLWdpdCBhL2J1aWxkL2duYXQvdGVzdHMuZ3ByIGIvYnVpbGQvZ25h dC90ZXN0cy5ncHIKaW5kZXggNzBkY2VmZi4uNTFlZTIwMSAxMDA2NDQKLS0tIGEvYnVpbGQv Z25hdC90ZXN0cy5ncHIKKysrIGIvYnVpbGQvZ25hdC90ZXN0cy5ncHIKQEAgLTE1LDI0ICsx NSw1IEBAIHByb2plY3QgVGVzdHMgaXMKICAgICAgICAgICAgICAgICAgICAgICAgICJ0dGYu YWRiIik7CiAKICAgIHBhY2thZ2UgQ29tcGlsZXIgcmVuYW1lcyBTRExBZGEuQ29tcGlsZXI7 Ci0KLSAgIHBhY2thZ2UgTGlua2VyIGlzCi0KLSAgICAgIExpbmtlcl9Td2l0Y2hlcyA6PSAo KTsKLQotICAgICAgY2FzZSBTZGxhZGEuUGxhdGZvcm0gaXMKLSAgICAgICAgIHdoZW4gIm1h Y29zX2hvbWVicmV3IiA9PgotICAgICAgICAgICAgTGlua2VyX1N3aXRjaGVzIDo9IExpbmtl cl9Td2l0Y2hlcyAmICgiLWxTREwyIiwKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIi1sU0RMMl90dGYiLAotICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiLWxTREwyX2ltYWdlIiwKLSAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIi1ML3Vzci9s b2NhbC9saWIiKTsKLQotICAgICAgICAgd2hlbiBvdGhlcnMgPT4KLSAgICAgICAgICAgIG51 bGw7Ci0gICAgICBlbmQgY2FzZTsKLQotICAgICAgZm9yIFN3aXRjaGVzICgiQWRhIikgdXNl IExpbmtlcl9Td2l0Y2hlczsKLQotICAgZW5kIExpbmtlcjsKLQorICAgcGFja2FnZSBMaW5r ZXIgcmVuYW1lcyBTRExBZGEuTGlua2VyOwogZW5kIFRlc3RzOwpkaWZmIC0tZ2l0IGEvYnVp bGQvZ25hdC90ZXN0c19pbWFnZS5ncHIgYi9idWlsZC9nbmF0L3Rlc3RzX2ltYWdlLmdwcgpp bmRleCBmMjNiZTNjLi5mZDY4MzA5IDEwMDY0NAotLS0gYS9idWlsZC9nbmF0L3Rlc3RzX2lt YWdlLmdwcgorKysgYi9idWlsZC9nbmF0L3Rlc3RzX2ltYWdlLmdwcgpAQCAtOCw2ICs4LDcg QEAgcHJvamVjdCBUZXN0c19JbWFnZSBpcwogICAgZm9yIE1haW4gICAgICAgIHVzZSAoImxv YWRfc3VyZmFjZS5hZGIiKTsKIAogICAgcGFja2FnZSBDb21waWxlciByZW5hbWVzIFNETEFk YS5Db21waWxlcjsKKyAgIHBhY2thZ2UgTGlua2VyIHJlbmFtZXMgU0RMQWRhLkxpbmtlcjsK IAogICAgLS0gICAgIHBhY2thZ2UgQnVpbGRlciBpcwogICAgLS0gICAgICAgIGZvciBEZWZh dWx0X1N3aXRjaGVzICgiQWRhIikgdXNlICgiLWduYXQyMDEyIiwgIi1nbmF0YSIpOyAtLSwg Ii1nbmF0RyIpOwpkaWZmIC0tZ2l0IGEvYnVpbGQvZ25hdC91bml0X3Rlc3RzLmdwciBiL2J1 aWxkL2duYXQvdW5pdF90ZXN0cy5ncHIKaW5kZXggYzQ2OWEzNC4uMjdkZDM4ZiAxMDA2NDQK LS0tIGEvYnVpbGQvZ25hdC91bml0X3Rlc3RzLmdwcgorKysgYi9idWlsZC9nbmF0L3VuaXRf dGVzdHMuZ3ByCkBAIC0xNyw0ICsxNyw1IEBAIHByb2plY3QgVW5pdF9UZXN0cyBpcwogICAg LS0gZW5kIElkZTsKIAogICAgcGFja2FnZSBDb21waWxlciByZW5hbWVzIFNETEFkYS5Db21w aWxlcjsKKyAgIHBhY2thZ2UgTGlua2VyIHJlbmFtZXMgU0RMQWRhLkxpbmtlcjsKIGVuZCBV bml0X1Rlc3RzOwo=

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Luke A. Guest on Fri Jun 30 14:26:16 2023
    This is a multi-part message in MIME format.
    On 30/06/2023 12:30, Luke A. Guest wrote:
    The /build/gnat gpr's have got a bit confused by the looks of things.

    Can you try this patch, it's made from a stash from a diff branch, if it works I'll apply it and push it.

    Ignore that, I forgot something, try this one instead.


    ZGlmZiAtLWdpdCBhL2J1aWxkL2duYXQvbWFrZWZpbGUgYi9idWlsZC9nbmF0L21ha2VmaWxl CmluZGV4IGIxMzkzMGYuLjAwNDY0OTAgMTAwNjQ0Ci0tLSBhL2J1aWxkL2duYXQvbWFrZWZp bGUKKysrIGIvYnVpbGQvZ25hdC9tYWtlZmlsZQpAQCAtOTAsNyArOTAsNyBAQCB0ZXN0czog JChMSUJfTkFNRSkgdGVzdHMuZ3ByICQoVEVTVFNfU1JDUykKIAogdGVzdHMuZ3ByOiAkKFRF U1RTX1NSQ1MpIGdlbi8kKFNETF9NT0RFKS90ZXN0L2xpYnRlc3RtYXRocy5zbwogCSQoR1BS TUFLRSkgLXAgLWduYXQyMDEyIC1YU0RMX01PREU9JChTRExfTU9ERSkgLVhTRExfUExBVEZP Uk09JChTRExfUExBVEZPUk0pIFwKLQkJLVB0ZXN0cy5ncHIgJHtTREwyX0NPTkZJR30KKwkJ LVB0ZXN0cy5ncHIgIyAke1NETDJfQ09ORklHfQogCiAjIE1hdGhzIGxpYnJhcnkKIApAQCAt MTExLDcgKzExMSw3IEBAIHVuaXRfdGVzdHM6ICQoTElCX05BTUUpIGJ1aWxkX3VuaXRfdGVz dHMvdW5pdF90ZXN0cwogCiBidWlsZF91bml0X3Rlc3RzL3VuaXRfdGVzdHM6CiAJJChHUFJN QUtFKSAtcCAtZ25hdDIwMTIgLVhTRExfTU9ERT0kKFNETF9NT0RFKSAtWFNETF9QTEFURk9S TT0kKFNETF9QTEFURk9STSkgXAotCQktUHVuaXRfdGVzdHMuZ3ByICR7U0RMMl9DT05GSUd9 CisJCS1QdW5pdF90ZXN0cy5ncHIgIyAke1NETDJfQ09ORklHfQogCiAuUEhPTlk6IGNsZWFu LXVuaXRfdGVzdHMKIApkaWZmIC0tZ2l0IGEvYnVpbGQvZ25hdC9zZGxhZGEuZ3ByIGIvYnVp bGQvZ25hdC9zZGxhZGEuZ3ByCmluZGV4IGFkYzc3ZjUuLjEzZWY4ZWUgMTAwNjQ0Ci0tLSBh L2J1aWxkL2duYXQvc2RsYWRhLmdwcgorKysgYi9idWlsZC9nbmF0L3NkbGFkYS5ncHIKQEAg LTEsMTAgKzEsMjEgQEAKIGxpYnJhcnkgcHJvamVjdCBTRExBZGEgaXMKLSAgIHR5cGUgUGxh dGZvcm1fVHlwZSBpcyAoImxpbnV4IiwgImJzZCIsICJ3aW5kb3dzIiwgIm1hY29zeCIsICJt YWNvc19ob21lYnJldyIsICJpb3MiLCAiYW5kcm9pZCIpOworICAgdHlwZSBQbGF0Zm9ybV9U eXBlIGlzICgibGludXgiLAorICAgICAgICAgICAgICAgICAgICAgICAgICAiYnNkIiwKKyAg ICAgICAgICAgICAgICAgICAgICAgICAgIndpbmRvd3MiLAorICAgICAgICAgICAgICAgICAg ICAgICAgICAibWFjb3N4IiwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgIm1hY29zX2hv bWVicmV3IiwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgIm1hY29zX3BvcnRzIiwKKyAg ICAgICAgICAgICAgICAgICAgICAgICAgImlvcyIsCisgICAgICAgICAgICAgICAgICAgICAg ICAgICJhbmRyb2lkIik7CiAgICB0eXBlIE1vZGVfVHlwZSBpcyAoImRlYnVnIiwgInJlbGVh c2UiKTsKIAogICAgUGxhdGZvcm0gOiBQbGF0Zm9ybV9UeXBlIDo9IGV4dGVybmFsICgiU0RM X1BMQVRGT1JNIiwgImxpbnV4Iik7CiAgICBNb2RlICAgICA6IE1vZGVfVHlwZSAgICAgOj0g ZXh0ZXJuYWwgKCJTRExfTU9ERSIsICJkZWJ1ZyIpOwogCisgICBwYWNrYWdlIEJ1aWxkZXIg aXMKKyAgICAgIGZvciBEZWZhdWx0X1N3aXRjaGVzICgiQWRhIikgdXNlICgiLWduYXQyMDEy IiwgIi1nbmF0YSIpOworICAgZW5kIEJ1aWxkZXI7CisKICAgIFNvdXJjZV9QbGF0Zm9ybSA6 PSAiIjsKIAogICAgY2FzZSBQbGF0Zm9ybSBpcwpAQCAtNTIsNiArNjMsMTEgQEAgbGlicmFy eSBwcm9qZWN0IFNETEFkYSBpcwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIi1JL3Vzci9sb2NhbC9pbmNsdWRlIiwKICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICItRF9SRUVOVFJBTlQiKTsKIAorICAgICAgICAgd2hl biAibWFjb3NfcG9ydHMiID0+CisgICAgICAgICAgICBDX1N3aXRjaGVzICAgOj0gQ19Td2l0 Y2hlcyAmICgiLURTRExfTUFDUE9SVFMiLAorICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIi1JL29wdC9sb2NhbC9pbmNsdWRlIiwKKyAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICItRF9USFJFQURfU0FGRSIpOworCiAgICAg ICAgICB3aGVuIG90aGVycyA9PgogICAgICAgICAgICAgbnVsbDsKICAgICAgIGVuZCBjYXNl OwpAQCAtNTksNCArNzUsMzMgQEAgbGlicmFyeSBwcm9qZWN0IFNETEFkYSBpcwogICAgICAg Zm9yIERlZmF1bHRfU3dpdGNoZXMgKCJDIikgdXNlIENvbW1vbl9Td2l0Y2hlcyAmIENfU3dp dGNoZXM7CiAgICAgICBmb3IgRGVmYXVsdF9Td2l0Y2hlcyAoIkFkYSIpIHVzZSBDb21tb25f U3dpdGNoZXMgJiBBZGFfU3dpdGNoZXM7CiAgICBlbmQgQ29tcGlsZXI7CisKKyAgIHBhY2th Z2UgTGlua2VyIGlzCisgICAgICBMaW5rZXJfU3dpdGNoZXMgOj0gKCk7CisKKyAgICAgIGNh c2UgUGxhdGZvcm0gaXMKKyAgICAgICAgIHdoZW4gImxpbnV4IiB8ICJic2QiIHwgImFuZHJv aWQiIHwgIndpbmRvd3MiID0+CisgICAgICAgICAgICBMaW5rZXJfU3dpdGNoZXMgOj0gTGlu a2VyX1N3aXRjaGVzICYgKCItbFNETDIiLAorICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAiLWxTREwyX3R0ZiIsCisgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICItbFNETDJfaW1hZ2UiLAorICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiLUwvdXNy L2xpYjY0Iik7CisKKyAgICAgICAgIHdoZW4gIm1hY29zX2hvbWVicmV3IiA9PgorICAgICAg ICAgICAgTGlua2VyX1N3aXRjaGVzIDo9IExpbmtlcl9Td2l0Y2hlcyAmICgiLWxTREwyIiwK KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIi1s U0RMMl90dGYiLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAiLWxTREwyX2ltYWdlIiwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIi1ML3Vzci9sb2NhbC9saWIiKTsKKworICAgICAgICAg d2hlbiAibWFjb3NfcG9ydHMiID0+CisgICAgICAgICAgICBMaW5rZXJfU3dpdGNoZXMgOj0g TGlua2VyX1N3aXRjaGVzICYgKCItbFNETDIiLAorICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAiLWxTREwyX3R0ZiIsCisgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICItbFNETDJfaW1hZ2UiLAor ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiLUwv b3B0L2xvY2FsL2xpYiIpOworCisgICAgICAgICB3aGVuIG90aGVycyA9PgorICAgICAgICAg ICAgbnVsbDsKKyAgICAgIGVuZCBjYXNlOworCisgICAgICBmb3IgU3dpdGNoZXMgKCJBZGEi KSB1c2UgTGlua2VyX1N3aXRjaGVzOworICAgZW5kIExpbmtlcjsKIGVuZCBTRExBZGE7CmRp ZmYgLS1naXQgYS9idWlsZC9nbmF0L3NkbGFkYV9pbWFnZS5ncHIgYi9idWlsZC9nbmF0L3Nk bGFkYV9pbWFnZS5ncHIKaW5kZXggMTA5ODA5NS4uNWE5NzY0ZiAxMDA2NDQKLS0tIGEvYnVp bGQvZ25hdC9zZGxhZGFfaW1hZ2UuZ3ByCisrKyBiL2J1aWxkL2duYXQvc2RsYWRhX2ltYWdl LmdwcgpAQCAtMTEsNCArMTEsNSBAQCBsaWJyYXJ5IHByb2plY3QgU0RMQWRhX0ltYWdlIGlz CiAgICBmb3IgTGlicmFyeV9WZXJzaW9uIHVzZSAibGlic2RsYWRhX2ltYWdlLnNvLiIgJiBW ZXJzaW9uOwogCiAgICBwYWNrYWdlIENvbXBpbGVyIHJlbmFtZXMgU0RMQWRhLkNvbXBpbGVy OworICAgcGFja2FnZSBMaW5rZXIgcmVuYW1lcyBTRExBZGEuTGlua2VyOwogZW5kIFNETEFk YV9JbWFnZTsKZGlmZiAtLWdpdCBhL2J1aWxkL2duYXQvdGVzdHMuZ3ByIGIvYnVpbGQvZ25h dC90ZXN0cy5ncHIKaW5kZXggNzBkY2VmZi4uNTFlZTIwMSAxMDA2NDQKLS0tIGEvYnVpbGQv Z25hdC90ZXN0cy5ncHIKKysrIGIvYnVpbGQvZ25hdC90ZXN0cy5ncHIKQEAgLTE1LDI0ICsx NSw1IEBAIHByb2plY3QgVGVzdHMgaXMKICAgICAgICAgICAgICAgICAgICAgICAgICJ0dGYu YWRiIik7CiAKICAgIHBhY2thZ2UgQ29tcGlsZXIgcmVuYW1lcyBTRExBZGEuQ29tcGlsZXI7 Ci0KLSAgIHBhY2thZ2UgTGlua2VyIGlzCi0KLSAgICAgIExpbmtlcl9Td2l0Y2hlcyA6PSAo KTsKLQotICAgICAgY2FzZSBTZGxhZGEuUGxhdGZvcm0gaXMKLSAgICAgICAgIHdoZW4gIm1h Y29zX2hvbWVicmV3IiA9PgotICAgICAgICAgICAgTGlua2VyX1N3aXRjaGVzIDo9IExpbmtl cl9Td2l0Y2hlcyAmICgiLWxTREwyIiwKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIi1sU0RMMl90dGYiLAotICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiLWxTREwyX2ltYWdlIiwKLSAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIi1ML3Vzci9s b2NhbC9saWIiKTsKLQotICAgICAgICAgd2hlbiBvdGhlcnMgPT4KLSAgICAgICAgICAgIG51 bGw7Ci0gICAgICBlbmQgY2FzZTsKLQotICAgICAgZm9yIFN3aXRjaGVzICgiQWRhIikgdXNl IExpbmtlcl9Td2l0Y2hlczsKLQotICAgZW5kIExpbmtlcjsKLQorICAgcGFja2FnZSBMaW5r ZXIgcmVuYW1lcyBTRExBZGEuTGlua2VyOwogZW5kIFRlc3RzOwpkaWZmIC0tZ2l0IGEvYnVp bGQvZ25hdC90ZXN0c19pbWFnZS5ncHIgYi9idWlsZC9nbmF0L3Rlc3RzX2ltYWdlLmdwcgpp bmRleCBmMjNiZTNjLi5mZDY4MzA5IDEwMDY0NAotLS0gYS9idWlsZC9nbmF0L3Rlc3RzX2lt YWdlLmdwcgorKysgYi9idWlsZC9nbmF0L3Rlc3RzX2ltYWdlLmdwcgpAQCAtOCw2ICs4LDcg QEAgcHJvamVjdCBUZXN0c19JbWFnZSBpcwogICAgZm9yIE1haW4gICAgICAgIHVzZSAoImxv YWRfc3VyZmFjZS5hZGIiKTsKIAogICAgcGFja2FnZSBDb21waWxlciByZW5hbWVzIFNETEFk YS5Db21waWxlcjsKKyAgIHBhY2thZ2UgTGlua2VyIHJlbmFtZXMgU0RMQWRhLkxpbmtlcjsK IAogICAgLS0gICAgIHBhY2thZ2UgQnVpbGRlciBpcwogICAgLS0gICAgICAgIGZvciBEZWZh dWx0X1N3aXRjaGVzICgiQWRhIikgdXNlICgiLWduYXQyMDEyIiwgIi1nbmF0YSIpOyAtLSwg Ii1nbmF0RyIpOwpkaWZmIC0tZ2l0IGEvYnVpbGQvZ25hdC91bml0X3Rlc3RzLmdwciBiL2J1 aWxkL2duYXQvdW5pdF90ZXN0cy5ncHIKaW5kZXggYzQ2OWEzNC4uMjdkZDM4ZiAxMDA2NDQK LS0tIGEvYnVpbGQvZ25hdC91bml0X3Rlc3RzLmdwcgorKysgYi9idWlsZC9nbmF0L3VuaXRf dGVzdHMuZ3ByCkBAIC0xNyw0ICsxNyw1IEBAIHByb2plY3QgVW5pdF9UZXN0cyBpcwogICAg LS0gZW5kIElkZTsKIAogICAgcGFja2FnZSBDb21waWxlciByZW5hbWVzIFNETEFkYS5Db21w aWxlcjsKKyAgIHBhY2thZ2UgTGlua2VyIHJlbmFtZXMgU0RMQWRhLkxpbmtlcjsKIGVuZCBV bml0X1Rlc3RzOwpkaWZmIC0tZ2l0IGEvc3JjL2ltYWdlL3ZlcnNpb25faW1hZ2VzLmMgYi9z cmMvaW1hZ2UvdmVyc2lvbl9pbWFnZXMuYwppbmRleCBiYTViZTY4Li40NzgxM2ExIDEwMDY0 NAotLS0gYS9zcmMvaW1hZ2UvdmVyc2lvbl9pbWFnZXMuYworKysgYi9zcmMvaW1hZ2UvdmVy c2lvbl9pbWFnZXMuYwpAQCAtMjEsNyArMjEsNyBAQAogICogICAgZGlzdHJpYnV0aW9uLgog ICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKiovCiAjaWZkZWYgX19BUFBMRV9fCi0gICAgI2lmZGVmIFNETF9IT01FQlJF VworICAgICNpZiBkZWZpbmVkIChTRExfSE9NRUJSRVcpIHx8IGRlZmluZWQgKFNETF9NQUNQ T1JUUykKICAgICAgICAgI2luY2x1ZGUgPFNETDIvU0RMX2ltYWdlLmg+CiAgICAgI2Vsc2UK ICAgICAgICAgI2luY2x1ZGUgPFNETDJfaW1hZ2UvU0RMX2ltYWdlLmg+CmRpZmYgLS1naXQg YS9zcmMvdHRmL3ZlcnNpb25fdHRmLmMgYi9zcmMvdHRmL3ZlcnNpb25fdHRmLmMKaW5kZXgg Y2VkZmViYy4uMDgxOTEwMyAxMDA2NDQKLS0tIGEvc3JjL3R0Zi92ZXJzaW9uX3R0Zi5jCisr KyBiL3NyYy90dGYvdmVyc2lvbl90dGYuYwpAQCAtMjEsNyArMjEsNyBAQAogICogICAgZGlz dHJpYnV0aW9uLgogICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKiovCiAjaWZkZWYgX19BUFBMRV9fCi0gICAgI2lmZGVm IFNETF9IT01FQlJFVworICAgICNpZiBkZWZpbmVkIChTRExfSE9NRUJSRVcpIHx8IGRlZmlu ZWQgKFNETF9NQUNQT1JUUykKICAgICAgICAgI2luY2x1ZGUgPFNETDIvU0RMX3R0Zi5oPgog ICAgICNlbHNlCiAgICAgICAgICNpbmNsdWRlIDxTREwyX3R0Zi9TRExfdHRmLmg+Cg==

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Kenneth Wolcott on Fri Jun 30 16:43:13 2023
    On 30/06/2023 16:41, Kenneth Wolcott wrote:
    On Friday, June 30, 2023 at 1:04:34 AM UTC-7, Luke A. Guest wrote:
    On 29/06/2023 23:04, Kenneth Wolcott wrote:

    $ sdl2-config --cflags
    $ sdl2-config --libs

    sdl2-config --cflags
    -I/opt/local/include/SDL2 -D_THREAD_SAFE
    That's odd. Can you show me the output of this?

    $ ls /opt/local/include/SDL2

    ls /opt/local/include/SDL2

    SDL.h SDL_joystick.h SDL_opengles2_khrplatform.h SDL_test_crc32.h
    ...


    As I thought, means, these things can be normalised a bit in my source.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Luke A. Guest on Fri Jun 30 08:41:00 2023
    On Friday, June 30, 2023 at 1:04:34 AM UTC-7, Luke A. Guest wrote:
    On 29/06/2023 23:04, Kenneth Wolcott wrote:

    $ sdl2-config --cflags
    $ sdl2-config --libs

    sdl2-config --cflags
    -I/opt/local/include/SDL2 -D_THREAD_SAFE
    That's odd. Can you show me the output of this?

    $ ls /opt/local/include/SDL2

    ls /opt/local/include/SDL2

    SDL.h SDL_joystick.h SDL_opengles2_khrplatform.h SDL_test_crc32.h
    SDL_assert.h SDL_keyboard.h SDL_pixels.h SDL_test_font.h
    SDL_atomic.h SDL_keycode.h SDL_platform.h SDL_test_fuzzer.h
    SDL_audio.h SDL_loadso.h SDL_power.h SDL_test_harness.h
    SDL_bits.h SDL_locale.h SDL_quit.h SDL_test_images.h
    SDL_blendmode.h SDL_log.h SDL_rect.h SDL_test_log.h
    SDL_clipboard.h SDL_main.h SDL_render.h SDL_test_md5.h
    SDL_config.h SDL_messagebox.h SDL_revision.h SDL_test_memory.h
    SDL_cpuinfo.h SDL_metal.h SDL_rwops.h SDL_test_random.h
    SDL_egl.h SDL_misc.h SDL_scancode.h SDL_thread.h
    SDL_endian.h SDL_mouse.h SDL_sensor.h SDL_timer.h
    SDL_error.h SDL_mutex.h SDL_shape.h SDL_touch.h
    SDL_events.h SDL_name.h SDL_stdinc.h SDL_types.h
    SDL_filesystem.h SDL_opengl.h SDL_surface.h SDL_version.h
    SDL_gamecontroller.h SDL_opengl_glext.h SDL_system.h SDL_video.h
    SDL_gesture.h SDL_opengles.h SDL_syswm.h SDL_vulkan.h
    SDL_guid.h SDL_opengles2.h SDL_test.h begin_code.h
    SDL_haptic.h SDL_opengles2_gl2.h SDL_test_assert.h close_code.h
    SDL_hidapi.h SDL_opengles2_gl2ext.h SDL_test_common.h
    SDL_hints.h SDL_opengles2_gl2platform.h SDL_test_compare.h

    sdl2-config --libs
    -L/opt/local/lib -lSDL2

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Luke A. Guest on Sun Jul 2 08:01:40 2023
    On 30/06/2023 14:26, Luke A. Guest wrote:
    On 30/06/2023 12:30, Luke A. Guest wrote:
    The /build/gnat gpr's have got a bit confused by the looks of things.

    Can you try this patch, it's made from a stash from a diff branch, if
    it works I'll apply it and push it.

    Ignore that, I forgot something, try this one instead.


    Hello? Did this work for you?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Luke A. Guest on Sun Jul 2 10:05:52 2023
    On Sunday, July 2, 2023 at 12:01:44 AM UTC-7, Luke A. Guest wrote:
    On 30/06/2023 14:26, Luke A. Guest wrote:
    On 30/06/2023 12:30, Luke A. Guest wrote:
    The /build/gnat gpr's have got a bit confused by the looks of things.

    Can you try this patch, it's made from a stash from a diff branch, if
    it works I'll apply it and push it.

    Ignore that, I forgot something, try this one instead.


    Hello? Did this work for you?

    Hi Luke;

    I'm not sure what you want me to try.

    I don't see an attachment. I don't see a URL. I don't see a specific mention of a "patch"? on GitHub. Obviously I'm missing something. Sorry I appear quite daft :-(

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon Wright@21:1/5 to Kenneth Wolcott on Sun Jul 2 20:23:09 2023
    Kenneth Wolcott <kennethwolcott@gmail.com> writes:

    On Sunday, July 2, 2023 at 12:01:44 AM UTC-7, Luke A. Guest wrote:
    On 30/06/2023 14:26, Luke A. Guest wrote:
    On 30/06/2023 12:30, Luke A. Guest wrote:
    The /build/gnat gpr's have got a bit confused by the looks of things.

    Can you try this patch, it's made from a stash from a diff branch, if
    it works I'll apply it and push it.

    Ignore that, I forgot something, try this one instead.


    Hello? Did this work for you?

    Hi Luke;

    I'm not sure what you want me to try.

    I don't see an attachment. I don't see a URL. I don't see a
    specific mention of a "patch"? on GitHub. Obviously I'm missing
    something. Sorry I appear quite daft :-(

    Thanks,
    Ken

    Google Groups has suppressed Luke's two posts with attached patches.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Simon Wright on Sun Jul 2 12:26:14 2023
    On Sunday, July 2, 2023 at 12:23:12 PM UTC-7, Simon Wright wrote:
    Kenneth Wolcott writes:

    On Sunday, July 2, 2023 at 12:01:44 AM UTC-7, Luke A. Guest wrote:
    On 30/06/2023 14:26, Luke A. Guest wrote:
    On 30/06/2023 12:30, Luke A. Guest wrote:
    The /build/gnat gpr's have got a bit confused by the looks of things. >> >>
    Can you try this patch, it's made from a stash from a diff branch, if >> >> it works I'll apply it and push it.

    Ignore that, I forgot something, try this one instead.


    Hello? Did this work for you?

    Hi Luke;

    I'm not sure what you want me to try.

    I don't see an attachment. I don't see a URL. I don't see a
    specific mention of a "patch"? on GitHub. Obviously I'm missing
    something. Sorry I appear quite daft :-(

    Thanks,
    Ken
    Google Groups has suppressed Luke's two posts with attached patches.

    Well, that's a very logical explanation for me not seeing anything to respond to :-)

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Kenneth Wolcott on Sun Jul 2 20:52:51 2023
    On 02/07/2023 20:26, Kenneth Wolcott wrote:

    Google Groups has suppressed Luke's two posts with attached patches.

    Well, that's a very logical explanation for me not seeing anything to respond to :-)

    Friggin' goggle. It's this (within the source dir - patch --dry-run -p1
    < test.patch):

    diff --git a/build/gnat/makefile b/build/gnat/makefile
    index b13930f..0046490 100644
    --- a/build/gnat/makefile
    +++ b/build/gnat/makefile
    @@ -90,7 +90,7 @@ tests: $(LIB_NAME) tests.gpr $(TESTS_SRCS)

    tests.gpr: $(TESTS_SRCS) gen/$(SDL_MODE)/test/libtestmaths.so
    $(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE) -XSDL_PLATFORM=$(SDL_PLATFORM) \
    - -Ptests.gpr ${SDL2_CONFIG}
    + -Ptests.gpr # ${SDL2_CONFIG}

    # Maths library

    @@ -111,7 +111,7 @@ unit_tests: $(LIB_NAME) build_unit_tests/unit_tests

    build_unit_tests/unit_tests:
    $(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE) -XSDL_PLATFORM=$(SDL_PLATFORM) \
    - -Punit_tests.gpr ${SDL2_CONFIG}
    + -Punit_tests.gpr # ${SDL2_CONFIG}

    .PHONY: clean-unit_tests

    diff --git a/build/gnat/sdlada.gpr b/build/gnat/sdlada.gpr
    index adc77f5..13ef8ee 100644
    --- a/build/gnat/sdlada.gpr
    +++ b/build/gnat/sdlada.gpr
    @@ -1,10 +1,21 @@
    library project SDLAda is
    - type Platform_Type is ("linux", "bsd", "windows", "macosx", "macos_homebrew", "ios", "android");
    + type Platform_Type is ("linux",
    + "bsd",
  • From Kenneth Wolcott@21:1/5 to Luke A. Guest on Sun Jul 2 13:20:22 2023
    On Sunday, July 2, 2023 at 12:52:55 PM UTC-7, Luke A. Guest wrote:
    On 02/07/2023 20:26, Kenneth Wolcott wrote:

    Google Groups has suppressed Luke's two posts with attached patches.

    Well, that's a very logical explanation for me not seeing anything to respond to :-)
    Friggin' goggle. It's this (within the source dir - patch --dry-run -p1
    < test.patch):

    diff --git a/build/gnat/makefile b/build/gnat/makefile
    index b13930f..0046490 100644
    --- a/build/gnat/makefile
    +++ b/build/gnat/makefile
    @@ -90,7 +90,7 @@ tests: $(LIB_NAME) tests.gpr $(TESTS_SRCS)

    tests.gpr: $(TESTS_SRCS) gen/$(SDL_MODE)/test/libtestmaths.so
    $(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE) -XSDL_PLATFORM=$(SDL_PLATFORM) \
    - -Ptests.gpr ${SDL2_CONFIG}
    + -Ptests.gpr # ${SDL2_CONFIG}

    # Maths library

    @@ -111,7 +111,7 @@ unit_tests: $(LIB_NAME) build_unit_tests/unit_tests

    build_unit_tests/unit_tests:
    $(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE) -XSDL_PLATFORM=$(SDL_PLATFORM) \
    - -Punit_tests.gpr ${SDL2_CONFIG}
    + -Punit_tests.gpr # ${SDL2_CONFIG}

    .PHONY: clean-unit_tests

    diff --git a/build/gnat/sdlada.gpr b/build/gnat/sdlada.gpr
    index adc77f5..13ef8ee 100644
    --- a/build/gnat/sdlada.gpr
    +++ b/build/gnat/sdlada.gpr
    @@ -1,10 +1,21 @@
    library project SDLAda is
    - type Platform_Type is ("linux", "bsd", "windows", "macosx", "macos_homebrew", "ios", "android");
    + type Platform_Type is ("linux",
    + "bsd",
    + "windows",
    + "macosx",
    + "macos_homebrew",
    + "macos_ports",
    + "ios",
    + "android");
    type Mode_Type is ("debug", "release");

    Platform : Platform_Type := external ("SDL_PLATFORM", "linux");
    Mode : Mode_Type := external ("SDL_MODE", "debug");

    + package Builder is
    + for Default_Switches ("Ada") use ("-gnat2012", "-gnata");
    + end Builder;
    +
    Source_Platform := "";

    case Platform is
    @@ -52,6 +63,11 @@ library project SDLAda is
    "-I/usr/local/include",
    "-D_REENTRANT");

    + when "macos_ports" =>
    + C_Switches := C_Switches & ("-DSDL_MACPORTS",
    + "-I/opt/local/include",
    + "-D_THREAD_SAFE");
    +
    when others =>
    null;
    end case;
    @@ -59,4 +75,33 @@ library project SDLAda is
    for Default_Switches ("C") use Common_Switches & C_Switches;
    for Default_Switches ("Ada") use Common_Switches & Ada_Switches;
    end Compiler;
    +
    + package Linker is
    + Linker_Switches := ();
    +
    + case Platform is
    + when "linux" | "bsd" | "android" | "windows" =>
    + Linker_Switches := Linker_Switches & ("-lSDL2",
    + "-lSDL2_ttf",
    + "-lSDL2_image",
    + "-L/usr/lib64");
    +
    + when "macos_homebrew" =>
    + Linker_Switches := Linker_Switches & ("-lSDL2",
    + "-lSDL2_ttf",
    + "-lSDL2_image",
    + "-L/usr/local/lib");
    +
    + when "macos_ports" =>
    + Linker_Switches := Linker_Switches & ("-lSDL2",
    + "-lSDL2_ttf",
    + "-lSDL2_image",
    + "-L/opt/local/lib");
    +
    + when others =>
    + null;
    + end case;
    +
    + for Switches ("Ada") use Linker_Switches;
    + end Linker;
    end SDLAda;
    diff --git a/build/gnat/sdlada_image.gpr b/build/gnat/sdlada_image.gpr
    index 1098095..5a9764f 100644
    --- a/build/gnat/sdlada_image.gpr
    +++ b/build/gnat/sdlada_image.gpr
    @@ -11,4 +11,5 @@ library project SDLAda_Image is
    for Library_Version use "libsdlada_image.so." & Version;

    package Compiler renames SDLAda.Compiler;
    + package Linker renames SDLAda.Linker;
    end SDLAda_Image;
    diff --git a/build/gnat/tests.gpr b/build/gnat/tests.gpr
    index 70dceff..51ee201 100644
    --- a/build/gnat/tests.gpr
    +++ b/build/gnat/tests.gpr
    @@ -15,24 +15,5 @@ project Tests is
    "ttf.adb");

    package Compiler renames SDLAda.Compiler;
    -
    - package Linker is
    -
    - Linker_Switches := ();
    -
    - case Sdlada.Platform is
    - when "macos_homebrew" =>
    - Linker_Switches := Linker_Switches & ("-lSDL2",
    - "-lSDL2_ttf",
    - "-lSDL2_image",
    - "-L/usr/local/lib");
    -
    - when others =>
    - null;
    - end case;
    -
    - for Switches ("Ada") use Linker_Switches;
    -
    - end Linker;
    -
    + package Linker renames SDLAda.Linker;
    end Tests;
    diff --git a/build/gnat/tests_image.gpr b/build/gnat/tests_image.gpr
    index f23be3c..fd68309 100644
    --- a/build/gnat/tests_image.gpr
    +++ b/build/gnat/tests_image.gpr
    @@ -8,6 +8,7 @@ project Tests_Image is
    for Main use ("load_surface.adb");

    package Compiler renames SDLAda.Compiler;
    + package Linker renames SDLAda.Linker;

    -- package Builder is
    -- for Default_Switches ("Ada") use ("-gnat2012", "-gnata");
    --, "-gnatG");
    diff --git a/build/gnat/unit_tests.gpr b/build/gnat/unit_tests.gpr
    index c469a34..27dd38f 100644
    --- a/build/gnat/unit_tests.gpr
    +++ b/build/gnat/unit_tests.gpr
    @@ -17,4 +17,5 @@ project Unit_Tests is
    -- end Ide;

    package Compiler renames SDLAda.Compiler;
    + package Linker renames SDLAda.Linker;
    end Unit_Tests;
    diff --git a/src/image/version_images.c b/src/image/version_images.c
    index ba5be68..47813a1 100644
    --- a/src/image/version_images.c
    +++ b/src/image/version_images.c
    @@ -21,7 +21,7 @@
    * distribution.

    **********************************************************************************************************************/
    #ifdef __APPLE__
    - #ifdef SDL_HOMEBREW
    + #if defined (SDL_HOMEBREW) || defined (SDL_MACPORTS)
    #include <SDL2/SDL_image.h>
    #else
    #include <SDL2_image/SDL_image.h>
    diff --git a/src/ttf/version_ttf.c b/src/ttf/version_ttf.c
    index cedfebc..0819103 100644
    --- a/src/ttf/version_ttf.c
    +++ b/src/ttf/version_ttf.c
    @@ -21,7 +21,7 @@
    * distribution.

    **********************************************************************************************************************/
    #ifdef __APPLE__
    - #ifdef SDL_HOMEBREW
    + #if defined (SDL_HOMEBREW) || defined (SDL_MACPORTS)
    #include <SDL2/SDL_ttf.h>
    #else
    #include <SDL2_ttf/SDL_ttf.h>

    So, I haven't applied a patch in reverse before :-)

    You posted the output of running patch -p1 --dry-run < patch while inside the build/gnat directory.

    For the simple diffs, I can apply manually, but for the more intensive diffs, I'll probably run into trouble.

    So, I need the patch file (?)

    I save the output you posted, I manually try to implement the changes and generate a diff and see if my diff matches your diff?

    I guess my brain is too old here :-(

    Please spoon-feed me here (*SIGH*)

    I really appreciate the work you've put in to try to make this SDLAda package work under MacPorts...

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Kenneth Wolcott on Sun Jul 2 22:40:12 2023
    On 02/07/2023 21:20, Kenneth Wolcott wrote:

    You posted the output of running patch -p1 --dry-run < patch while inside the build/gnat directory.

    No, that';s the command to test the patch on the source. To apply it you
    remove the dry run option.

    Just save the email, cut out the crap that's not the patch and then save
    it as test.patch as the above command should say (after the "<"), dunno
    what happened there.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Luke A. Guest on Sun Jul 2 14:59:46 2023
    On Sunday, July 2, 2023 at 2:40:15 PM UTC-7, Luke A. Guest wrote:
    On 02/07/2023 21:20, Kenneth Wolcott wrote:

    You posted the output of running patch -p1 --dry-run < patch while inside the build/gnat directory.

    No, that';s the command to test the patch on the source. To apply it you remove the dry run option.

    Just save the email, cut out the crap that's not the patch and then save
    it as test.patch as the above command should say (after the "<"), dunno
    what happened there.

    Thank you.

    I think saved the contents of the posting where the first diff starts as test.patch.

    I downloaded a fresh sdlada package from GitHub, calling it sdlada2.

    I then placed the test.patch file there.

    Results:

    patch -p1 --dry-run < test.patch
    patching file 'build/gnat/makefile'
    patch: **** malformed patch at line 7: tests.gpr: $(TESTS_SRCS) gen/$(SDL_MODE)/test/libtestmaths.so

    Did I do something wrong?

    wc -l test.patch
    189 test.patch

    head -1 test.patch
    diff --git a/build/gnat/makefile b/build/gnat/makefile

    tail -1 test.patch
    #include <SDL2_ttf/SDL_ttf.h>

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Kenneth Wolcott on Sun Jul 2 14:34:56 2023
    On Sunday, July 2, 2023 at 1:20:25 PM UTC-7, Kenneth Wolcott wrote:
    On Sunday, July 2, 2023 at 12:52:55 PM UTC-7, Luke A. Guest wrote:
    On 02/07/2023 20:26, Kenneth Wolcott wrote:

    Google Groups has suppressed Luke's two posts with attached patches.

    Well, that's a very logical explanation for me not seeing anything to respond to :-)
    Friggin' goggle. It's this (within the source dir - patch --dry-run -p1
    < test.patch):

    diff --git a/build/gnat/makefile b/build/gnat/makefile
    index b13930f..0046490 100644
    --- a/build/gnat/makefile
    +++ b/build/gnat/makefile
    @@ -90,7 +90,7 @@ tests: $(LIB_NAME) tests.gpr $(TESTS_SRCS)

    tests.gpr: $(TESTS_SRCS) gen/$(SDL_MODE)/test/libtestmaths.so
    $(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE) -XSDL_PLATFORM=$(SDL_PLATFORM) \
    - -Ptests.gpr ${SDL2_CONFIG}
    + -Ptests.gpr # ${SDL2_CONFIG}

    # Maths library

    @@ -111,7 +111,7 @@ unit_tests: $(LIB_NAME) build_unit_tests/unit_tests

    build_unit_tests/unit_tests:
    $(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE) -XSDL_PLATFORM=$(SDL_PLATFORM) \
    - -Punit_tests.gpr ${SDL2_CONFIG}
    + -Punit_tests.gpr # ${SDL2_CONFIG}

    .PHONY: clean-unit_tests

    diff --git a/build/gnat/sdlada.gpr b/build/gnat/sdlada.gpr
    index adc77f5..13ef8ee 100644
    --- a/build/gnat/sdlada.gpr
    +++ b/build/gnat/sdlada.gpr
    @@ -1,10 +1,21 @@
    library project SDLAda is
    - type Platform_Type is ("linux", "bsd", "windows", "macosx", "macos_homebrew", "ios", "android");
    + type Platform_Type is ("linux",
    + "bsd",
    + "windows",
    + "macosx",
    + "macos_homebrew",
    + "macos_ports",
    + "ios",
    + "android");
    type Mode_Type is ("debug", "release");

    Platform : Platform_Type := external ("SDL_PLATFORM", "linux");
    Mode : Mode_Type := external ("SDL_MODE", "debug");

    + package Builder is
    + for Default_Switches ("Ada") use ("-gnat2012", "-gnata");
    + end Builder;
    +
    Source_Platform := "";

    case Platform is
    @@ -52,6 +63,11 @@ library project SDLAda is
    "-I/usr/local/include",
    "-D_REENTRANT");

    + when "macos_ports" =>
    + C_Switches := C_Switches & ("-DSDL_MACPORTS",
    + "-I/opt/local/include",
    + "-D_THREAD_SAFE");
    +
    when others =>
    null;
    end case;
    @@ -59,4 +75,33 @@ library project SDLAda is
    for Default_Switches ("C") use Common_Switches & C_Switches;
    for Default_Switches ("Ada") use Common_Switches & Ada_Switches;
    end Compiler;
    +
    + package Linker is
    + Linker_Switches := ();
    +
    + case Platform is
    + when "linux" | "bsd" | "android" | "windows" =>
    + Linker_Switches := Linker_Switches & ("-lSDL2",
    + "-lSDL2_ttf",
    + "-lSDL2_image",
    + "-L/usr/lib64");
    +
    + when "macos_homebrew" =>
    + Linker_Switches := Linker_Switches & ("-lSDL2",
    + "-lSDL2_ttf",
    + "-lSDL2_image",
    + "-L/usr/local/lib");
    +
    + when "macos_ports" =>
    + Linker_Switches := Linker_Switches & ("-lSDL2",
    + "-lSDL2_ttf",
    + "-lSDL2_image",
    + "-L/opt/local/lib");
    +
    + when others =>
    + null;
    + end case;
    +
    + for Switches ("Ada") use Linker_Switches;
    + end Linker;
    end SDLAda;
    diff --git a/build/gnat/sdlada_image.gpr b/build/gnat/sdlada_image.gpr index 1098095..5a9764f 100644
    --- a/build/gnat/sdlada_image.gpr
    +++ b/build/gnat/sdlada_image.gpr
    @@ -11,4 +11,5 @@ library project SDLAda_Image is
    for Library_Version use "libsdlada_image.so." & Version;

    package Compiler renames SDLAda.Compiler;
    + package Linker renames SDLAda.Linker;
    end SDLAda_Image;
    diff --git a/build/gnat/tests.gpr b/build/gnat/tests.gpr
    index 70dceff..51ee201 100644
    --- a/build/gnat/tests.gpr
    +++ b/build/gnat/tests.gpr
    @@ -15,24 +15,5 @@ project Tests is
    "ttf.adb");

    package Compiler renames SDLAda.Compiler;
    -
    - package Linker is
    -
    - Linker_Switches := ();
    -
    - case Sdlada.Platform is
    - when "macos_homebrew" =>
    - Linker_Switches := Linker_Switches & ("-lSDL2",
    - "-lSDL2_ttf",
    - "-lSDL2_image",
    - "-L/usr/local/lib");
    -
    - when others =>
    - null;
    - end case;
    -
    - for Switches ("Ada") use Linker_Switches;
    -
    - end Linker;
    -
    + package Linker renames SDLAda.Linker;
    end Tests;
    diff --git a/build/gnat/tests_image.gpr b/build/gnat/tests_image.gpr
    index f23be3c..fd68309 100644
    --- a/build/gnat/tests_image.gpr
    +++ b/build/gnat/tests_image.gpr
    @@ -8,6 +8,7 @@ project Tests_Image is
    for Main use ("load_surface.adb");

    package Compiler renames SDLAda.Compiler;
    + package Linker renames SDLAda.Linker;

    -- package Builder is
    -- for Default_Switches ("Ada") use ("-gnat2012", "-gnata");
    --, "-gnatG");
    diff --git a/build/gnat/unit_tests.gpr b/build/gnat/unit_tests.gpr
    index c469a34..27dd38f 100644
    --- a/build/gnat/unit_tests.gpr
    +++ b/build/gnat/unit_tests.gpr
    @@ -17,4 +17,5 @@ project Unit_Tests is
    -- end Ide;

    package Compiler renames SDLAda.Compiler;
    + package Linker renames SDLAda.Linker;
    end Unit_Tests;
    diff --git a/src/image/version_images.c b/src/image/version_images.c
    index ba5be68..47813a1 100644
    --- a/src/image/version_images.c
    +++ b/src/image/version_images.c
    @@ -21,7 +21,7 @@
    * distribution.

    **********************************************************************************************************************/
    #ifdef __APPLE__
    - #ifdef SDL_HOMEBREW
    + #if defined (SDL_HOMEBREW) || defined (SDL_MACPORTS)
    #include <SDL2/SDL_image.h>
    #else
    #include <SDL2_image/SDL_image.h>
    diff --git a/src/ttf/version_ttf.c b/src/ttf/version_ttf.c
    index cedfebc..0819103 100644
    --- a/src/ttf/version_ttf.c
    +++ b/src/ttf/version_ttf.c
    @@ -21,7 +21,7 @@
    * distribution.

    **********************************************************************************************************************/
    #ifdef __APPLE__
    - #ifdef SDL_HOMEBREW
    + #if defined (SDL_HOMEBREW) || defined (SDL_MACPORTS)
    #include <SDL2/SDL_ttf.h>
    #else
    #include <SDL2_ttf/SDL_ttf.h>
    So, I haven't applied a patch in reverse before :-)

    You posted the output of running patch -p1 --dry-run < patch while inside the build/gnat directory.

    For the simple diffs, I can apply manually, but for the more intensive diffs, I'll probably run into trouble.

    So, I need the patch file (?)

    I save the output you posted, I manually try to implement the changes and generate a diff and see if my diff matches your diff?

    I guess my brain is too old here :-(

    Please spoon-feed me here (*SIGH*)

    I really appreciate the work you've put in to try to make this SDLAda package work under MacPorts...

    Thanks,
    Ken

    Hi Luke;

    I'm in the midst of applying the diffs manually.

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Kenneth Wolcott on Mon Jul 3 13:23:11 2023
    On 02/07/2023 22:59, Kenneth Wolcott wrote:
    On Sunday, July 2, 2023 at 2:40:15 PM UTC-7, Luke A. Guest wrote:
    On 02/07/2023 21:20, Kenneth Wolcott wrote:

    You posted the output of running patch -p1 --dry-run < patch while inside the build/gnat directory.

    No, that';s the command to test the patch on the source. To apply it you
    remove the dry run option.

    Just save the email, cut out the crap that's not the patch and then save
    it as test.patch as the above command should say (after the "<"), dunno
    what happened there.

    Thank you.

    I think saved the contents of the posting where the first diff starts as test.patch.

    I downloaded a fresh sdlada package from GitHub, calling it sdlada2.

    I then placed the test.patch file there.

    Results:

    patch -p1 --dry-run < test.patch
    patching file 'build/gnat/makefile'
    patch: **** malformed patch at line 7: tests.gpr: $(TESTS_SRCS) gen/$(SDL_MODE)/test/libtestmaths.so

    Did I do something wrong?

    No idea. This is what I did it with:

    $ git clone git@github.com:Lucretia/sdlada.git
    Cloning into 'sdlada'...
    remote: Enumerating objects: 3100, done.
    remote: Counting objects: 100% (257/257), done.
    remote: Compressing objects: 100% (104/104), done.
    remote: Total 3100 (delta 156), reused 227 (delta 144), pack-reused 2843 Receiving objects: 100% (3100/3100), 727.62 KiB | 303.00 KiB/s, done.
    Resolving deltas: 100% (2269/2269), done.
    $ cd sdlada/
    $ patch -p1 --dry-run < ~/src/mine-new/game-dev/sdl/sdlada/test.patch
    checking file build/gnat/makefile
    checking file build/gnat/sdlada.gpr
    checking file build/gnat/sdlada_image.gpr
    checking file build/gnat/tests.gpr
    checking file build/gnat/tests_image.gpr
    checking file build/gnat/unit_tests.gpr
    checking file src/image/version_images.c
    checking file src/ttf/version_ttf.c

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Kenneth Wolcott on Mon Jul 3 21:11:26 2023
    On 03/07/2023 20:58, Kenneth Wolcott wrote:

    I don't think that downloading the zip file from GitHub would be any different than doing the git clone, but
    Just clone it.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Luke A. Guest on Mon Jul 3 12:58:03 2023
    On Monday, July 3, 2023 at 5:23:16 AM UTC-7, Luke A. Guest wrote:
    On 02/07/2023 22:59, Kenneth Wolcott wrote:
    On Sunday, July 2, 2023 at 2:40:15 PM UTC-7, Luke A. Guest wrote:
    On 02/07/2023 21:20, Kenneth Wolcott wrote:

    You posted the output of running patch -p1 --dry-run < patch while inside the build/gnat directory.

    No, that';s the command to test the patch on the source. To apply it you >> remove the dry run option.

    Just save the email, cut out the crap that's not the patch and then save >> it as test.patch as the above command should say (after the "<"), dunno >> what happened there.

    Thank you.

    I think saved the contents of the posting where the first diff starts as test.patch.

    I downloaded a fresh sdlada package from GitHub, calling it sdlada2.

    I then placed the test.patch file there.

    Results:

    patch -p1 --dry-run < test.patch
    patching file 'build/gnat/makefile'
    patch: **** malformed patch at line 7: tests.gpr: $(TESTS_SRCS) gen/$(SDL_MODE)/test/libtestmaths.so

    Did I do something wrong?
    No idea. This is what I did it with:

    $ git clone g...@github.com:Lucretia/sdlada.git
    Cloning into 'sdlada'...
    remote: Enumerating objects: 3100, done.
    remote: Counting objects: 100% (257/257), done.
    remote: Compressing objects: 100% (104/104), done.
    remote: Total 3100 (delta 156), reused 227 (delta 144), pack-reused 2843 Receiving objects: 100% (3100/3100), 727.62 KiB | 303.00 KiB/s, done. Resolving deltas: 100% (2269/2269), done.
    $ cd sdlada/
    $ patch -p1 --dry-run < ~/src/mine-new/game-dev/sdl/sdlada/test.patch checking file build/gnat/makefile
    checking file build/gnat/sdlada.gpr
    checking file build/gnat/sdlada_image.gpr
    checking file build/gnat/tests.gpr
    checking file build/gnat/tests_image.gpr
    checking file build/gnat/unit_tests.gpr
    checking file src/image/version_images.c
    checking file src/ttf/version_ttf.c

    Hi Luke;

    I wonder if there was an error introduced by the copy&paste with the mouse and/or with the formatting of the posting/email...I'll try to examine that specific area to see if anything shows up under a closer inspection.

    I don't think that downloading the zip file from GitHub would be any different than doing the git clone, but there's another difference that might be a cause, ever so remote.

    I'll try to get back to you with results shortly.

    Again, thanks for your efforts with regards to porting SDLADA towards MacPorts...

    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Kenneth Wolcott on Mon Jul 3 21:10:48 2023
    On 03/07/2023 20:58, Kenneth Wolcott wrote:
    Hi Luke;

    I wonder if there was an error introduced by the copy&paste with the mouse and/or with the formatting of the posting/email...I'll try to examine that specific area to see if anything shows up under a closer inspection.

    I don't think that downloading the zip file from GitHub would be any different than doing the git clone, but there's another difference that might be a cause, ever so remote.

    I'll try to get back to you with results shortly.

    Again, thanks for your efforts with regards to porting SDLADA towards MacPorts...

    Ken

    I used xclip -i ~/src/mine-new/game-dev/sdl/sdlada/test.patch and paste
    with middle mouse button, just like below, the first line should "diff...":

    diff --git a/build/gnat/makefile b/build/gnat/makefile
    index b13930f..0046490 100644
    --- a/build/gnat/makefile
    +++ b/build/gnat/makefile
    @@ -90,7 +90,7 @@ tests: $(LIB_NAME) tests.gpr $(TESTS_SRCS)

    tests.gpr: $(TESTS_SRCS) gen/$(SDL_MODE)/test/libtestmaths.so
    $(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE) -XSDL_PLATFORM=$(SDL_PLATFORM) \
    - -Ptests.gpr ${SDL2_CONFIG}
    + -Ptests.gpr # ${SDL2_CONFIG}

    # Maths library

    @@ -111,7 +111,7 @@ unit_tests: $(LIB_NAME) build_unit_tests/unit_tests

    build_unit_tests/unit_tests:
    $(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE) -XSDL_PLATFORM=$(SDL_PLATFORM) \
    - -Punit_tests.gpr ${SDL2_CONFIG}
    + -Punit_tests.gpr # ${SDL2_CONFIG}

    .PHONY: clean-unit_tests

    diff --git a/build/gnat/sdlada.gpr b/build/gnat/sdlada.gpr
    index adc77f5..13ef8ee 100644
    --- a/build/gnat/sdlada.gpr
    +++ b/build/gnat/sdlada.gpr
    @@ -1,10 +1,21 @@
    library project SDLAda is
    - type Platform_Type is ("linux", "bsd", "windows", "macosx", "macos_homebrew", "ios", "android");
    + type Platform_Type is ("linux",
    + "bsd",
  • From Kenneth Wolcott@21:1/5 to Kenneth Wolcott on Mon Jul 3 16:01:41 2023
    On Monday, July 3, 2023 at 3:56:27 PM UTC-7, Kenneth Wolcott wrote:
    On Monday, July 3, 2023 at 1:11:29 PM UTC-7, Luke A. Guest wrote:
    On 03/07/2023 20:58, Kenneth Wolcott wrote:
    I don't think that downloading the zip file from GitHub would be any different than doing the git clone, but
    Just clone it.
    Hi Luke;

    I've cloned the package.

    I've manually applied the patch to the cloned package.

    I'm about to build it now (fingers crossed).

    Thanks,
    Ken

    Well, I must have made one or more mistakes in the manual patching of the files (*SIGH*)

    make SDL_PLATFORM=macos_ports SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
    -Ptools.gpr
    Setup
    [mkdir] object directory for project Tools
    Compile
    [Ada] gen_keyboard.adb
    [Ada] scancodes.ads
    [Ada] utils.adb
    Bind
    [gprbind] gen_keyboard.bexch
    [Ada] gen_keyboard.ali
    Link
    [link] gen_keyboard.adb
    ./gen/release/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
    -Psdlada.gpr
    sdlada.gpr:16:07: undefined attribute "default_swiches"
    sdlada.gpr:17:03: ";" after declarative items expected
    sdlada.gpr:26:09: a variable cannot be declared for the first time here sdlada.gpr:26:23: unknown variable "C_Switches"
    sdlada.gpr:34:08: undefined attribute "languages"
    sdlada.gpr:35:08: undefined attribute "source_dirs"
    sdlada.gpr:42:08: undefined attribute "library_name"
    sdlada.gpr:43:08: undefined attribute "object_dir"
    sdlada.gpr:44:08: undefined attribute "library_dir"
    sdlada.gpr:45:08: undefined attribute "library_kind"
    sdlada.gpr:47:04: a package cannot be declared here
    sdlada.gpr:79:04: a package cannot be declared here
    sdlada.gpr:108:05: expected "builder"
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Luke A. Guest on Mon Jul 3 15:56:25 2023
    On Monday, July 3, 2023 at 1:11:29 PM UTC-7, Luke A. Guest wrote:
    On 03/07/2023 20:58, Kenneth Wolcott wrote:
    I don't think that downloading the zip file from GitHub would be any different than doing the git clone, but
    Just clone it.

    Hi Luke;

    I've cloned the package.

    I've manually applied the patch to the cloned package.

    I'm about to build it now (fingers crossed).

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Kenneth Wolcott on Mon Jul 3 16:10:05 2023
    On Monday, July 3, 2023 at 4:01:44 PM UTC-7, Kenneth Wolcott wrote:
    On Monday, July 3, 2023 at 3:56:27 PM UTC-7, Kenneth Wolcott wrote:
    On Monday, July 3, 2023 at 1:11:29 PM UTC-7, Luke A. Guest wrote:
    On 03/07/2023 20:58, Kenneth Wolcott wrote:
    I don't think that downloading the zip file from GitHub would be any different than doing the git clone, but
    Just clone it.
    Hi Luke;

    I've cloned the package.

    I've manually applied the patch to the cloned package.

    I'm about to build it now (fingers crossed).

    Thanks,
    Ken
    Well, I must have made one or more mistakes in the manual patching of the files (*SIGH*)

    make SDL_PLATFORM=macos_ports SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ -Ptools.gpr
    Setup
    [mkdir] object directory for project Tools
    Compile
    [Ada] gen_keyboard.adb
    [Ada] scancodes.ads
    [Ada] utils.adb
    Bind
    [gprbind] gen_keyboard.bexch
    [Ada] gen_keyboard.ali
    Link
    [link] gen_keyboard.adb
    ./gen/release/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ -Psdlada.gpr
    sdlada.gpr:16:07: undefined attribute "default_swiches"
    sdlada.gpr:17:03: ";" after declarative items expected
    sdlada.gpr:26:09: a variable cannot be declared for the first time here sdlada.gpr:26:23: unknown variable "C_Switches"
    sdlada.gpr:34:08: undefined attribute "languages"
    sdlada.gpr:35:08: undefined attribute "source_dirs"
    sdlada.gpr:42:08: undefined attribute "library_name"
    sdlada.gpr:43:08: undefined attribute "object_dir"
    sdlada.gpr:44:08: undefined attribute "library_dir"
    sdlada.gpr:45:08: undefined attribute "library_kind"
    sdlada.gpr:47:04: a package cannot be declared here
    sdlada.gpr:79:04: a package cannot be declared here
    sdlada.gpr:108:05: expected "builder"
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    Ken

    After adding a semi-colon at the following line in sdlada.gpr

    for Default_Swiches ("Ada") use ("-gnat202", "-gnata");

    We have the following when trying to make again:

    make SDL_PLATFORM=macos_ports SDL_MODE=debug
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
    -Ptools.gpr
    Setup
    [mkdir] object directory for project Tools
    Compile
    [Ada] gen_keyboard.adb
    [Ada] scancodes.ads
    [Ada] utils.adb
    Bind
    [gprbind] gen_keyboard.bexch
    [Ada] gen_keyboard.ali
    Link
    [link] gen_keyboard.adb
    ./gen/debug/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads
    gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
    -Psdlada.gpr
    sdlada.gpr:16:07: undefined attribute "default_swiches"
    sdlada.gpr:26:09: a variable cannot be declared for the first time here sdlada.gpr:26:23: unknown variable "C_Switches"
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    I hope that this shows that I made mistake(s) that can be shown to me that I can fix or that this is clear regarding what still needs to be done for the SDLAda port to MacPorts...

    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Keith Thompson on Mon Jul 3 16:58:29 2023
    On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
    Kenneth Wolcott writes:
    [...]
    After adding a semi-colon at the following line in sdlada.gpr

    for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
    [...]

    Unless "-gnat202" requests the version of Ada that was current during
    the reign of Septimius Severus, you probably want to use "-gnat2022". (Options can be abbreviated, but "-gnat202" may become ambiguous if
    there's a new Ada standard before 2030.)

    Also "Default_Swiches" is mispelled.

    If the typos are the result of re-typing that line, I strongly suggest copy-and-pasting any code you post.

    --
    Keith Thompson

    Thank you, Keith :-)

    Fixed those two typos.

    Here's the current output from trying to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=debug
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
    -Psdlada.gpr
    sdlada.gpr:26:09: a variable cannot be declared for the first time here sdlada.gpr:26:23: unknown variable "C_Switches"
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Keith Thompson@21:1/5 to Kenneth Wolcott on Mon Jul 3 16:24:33 2023
    Kenneth Wolcott <kennethwolcott@gmail.com> writes:
    [...]
    After adding a semi-colon at the following line in sdlada.gpr

    for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
    [...]

    Unless "-gnat202" requests the version of Ada that was current during
    the reign of Septimius Severus, you probably want to use "-gnat2022".
    (Options can be abbreviated, but "-gnat202" may become ambiguous if
    there's a new Ada standard before 2030.)

    Also "Default_Swiches" is mispelled.

    If the typos are the result of re-typing that line, I strongly suggest copy-and-pasting any code you post.

    --
    Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
    Will write code for food.
    void Void(void) { Void(); } /* The recursive call of the void */

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Kenneth Wolcott on Tue Jul 4 09:57:42 2023
    On 04/07/2023 00:01, Kenneth Wolcott wrote:
    ./gen/release/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
    -Psdlada.gpr
    sdlada.gpr:16:07: undefined attribute "default_swiches"
    sdlada.gpr:17:03: ";" after declarative items expected
    sdlada.gpr:26:09: a variable cannot be declared for the first time here sdlada.gpr:26:23: unknown variable "C_Switches"
    sdlada.gpr:34:08: undefined attribute "languages"
    sdlada.gpr:35:08: undefined attribute "source_dirs"
    sdlada.gpr:42:08: undefined attribute "library_name"
    sdlada.gpr:43:08: undefined attribute "object_dir"
    sdlada.gpr:44:08: undefined attribute "library_dir"
    sdlada.gpr:45:08: undefined attribute "library_kind"
    sdlada.gpr:47:04: a package cannot be declared here
    sdlada.gpr:79:04: a package cannot be declared here
    sdlada.gpr:108:05: expected "builder"
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    Ken

    I don't know what's going on about, here's the gpr I have:

    library project SDLAda is
    type Platform_Type is ("linux",
    "bsd",
    "windows",
    "macosx",
    "macos_homebrew",
    "macos_ports",
    "ios",
    "android");
    type Mode_Type is ("debug", "release");

    Platform : Platform_Type := external ("SDL_PLATFORM", "linux");
    Mode : Mode_Type := external ("SDL_MODE", "debug");

    package Builder is
    for Default_Switches ("Ada") use ("-gnat2012", "-gnata");
    end Builder;

    Source_Platform := "";

    case Platform is
    when "macos_homebrew" =>
    Source_Platform := "../../src/macosx";

    when others =>
    Source_Platform := "../../src/" & Platform;
    end case;

    for Languages use ("Ada", "C");
    for Source_Dirs use ("../../src", Source_Platform, "gen/src/",

    -- For SDL.Image.
    "../../src/image",

    -- For SDL.TTF.
    "../../src/ttf");
    for Library_Name use "sdlada";
    for Object_Dir use "gen/" & Mode & "/lib/.obj";
    for Library_Dir use "gen/" & Mode & "/lib";
    for Library_Kind use "static";

    package Compiler is
    Common_Switches := ("-ffunction-sections", "-fdata-sections");
    C_Switches := ();
    Ada_Switches := ("-gnat2012", "-gnata", "-gnato", "-gnatE", "-gnatwa",
    "-gnaty", "-gnaty-s", "-gnatyO",
    "-gnatyM120", "-gnatyx");

    case Mode is
    when "debug" =>
    Common_Switches := Common_Switches & ("-O0", "-g", "-ggdb");

    when "release" =>
    Common_Switches := Common_Switches & ("-O2");
    end case;

    -- These flags require checking on all platforms as they're
    taken directly from sdl2-config.
    case Platform is
    when "linux" | "bsd" | "android" | "windows" =>
    C_Switches := C_Switches & ("-I/usr/include/SDL2", "-D_REENTRANT");

    when "macos_homebrew" =>
    C_Switches := C_Switches & ("-DSDL_HOMEBREW",
    "-I/usr/local/include",
    "-D_REENTRANT");

    when "macos_ports" =>
    C_Switches := C_Switches & ("-DSDL_MACPORTS",
    "-I/opt/local/include",
    "-D_THREAD_SAFE");

    when others =>
    null;
    end case;

    for Default_Switches ("C") use Common_Switches & C_Switches;
    for Default_Switches ("Ada") use Common_Switches & Ada_Switches;
    end Compiler;

    package Linker is
    Linker_Switches := ();

    case Platform is
    when "linux" | "bsd" | "android" | "windows" =>
    Linker_Switches := Linker_Switches & ("-lSDL2",
    "-lSDL2_ttf",
    "-lSDL2_image",
    "-L/usr/lib64");

    when "macos_homebrew" =>
    Linker_Switches := Linker_Switches & ("-lSDL2",
    "-lSDL2_ttf",
    "-lSDL2_image",
    "-L/usr/local/lib");

    when "macos_ports" =>
    Linker_Switches := Linker_Switches & ("-lSDL2",
    "-lSDL2_ttf",
    "-lSDL2_image",
    "-L/opt/local/lib");

    when others =>
    null;
    end case;

    for Switches ("Ada") use Linker_Switches;
    end Linker;
    end SDLAda;

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Keith Thompson on Tue Jul 4 09:59:12 2023
    On 04/07/2023 00:24, Keith Thompson wrote:
    Kenneth Wolcott <kennethwolcott@gmail.com> writes:
    [...]
    After adding a semi-colon at the following line in sdlada.gpr

    for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
    [...]

    Unless "-gnat202" requests the version of Ada that was current during
    the reign of Septimius Severus, you probably want to use "-gnat2022". (Options can be abbreviated, but "-gnat202" may become ambiguous if
    there's a new Ada standard before 2030.)

    Also "Default_Swiches" is mispelled.

    If the typos are the result of re-typing that line, I strongly suggest copy-and-pasting any code you post.


    I don't have that, I have "-gnat2012" see my previous post.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Kenneth Wolcott on Tue Jul 4 10:00:08 2023
    On 04/07/2023 00:58, Kenneth Wolcott wrote:
    On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
    Kenneth Wolcott writes:
    [...]
    After adding a semi-colon at the following line in sdlada.gpr

    for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
    [...]

    Unless "-gnat202" requests the version of Ada that was current during
    the reign of Septimius Severus, you probably want to use "-gnat2022".
    (Options can be abbreviated, but "-gnat202" may become ambiguous if
    there's a new Ada standard before 2030.)

    Also "Default_Swiches" is mispelled.

    If the typos are the result of re-typing that line, I strongly suggest
    copy-and-pasting any code you post.

    --
    Keith Thompson

    Thank you, Keith :-)

    Fixed those two typos.

    Here's the current output from trying to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=debug
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
    -Psdlada.gpr
    sdlada.gpr:26:09: a variable cannot be declared for the first time here sdlada.gpr:26:23: unknown variable "C_Switches"
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    Thanks,
    Ken

    This makes no sense, line 26 is this:

    Source_Platform := "../../src/" & Platform;

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Luke A. Guest on Thu Jul 6 12:37:17 2023
    On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote:
    On 04/07/2023 00:58, Kenneth Wolcott wrote:
    On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
    Kenneth Wolcott writes:
    [...]
    After adding a semi-colon at the following line in sdlada.gpr

    for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
    [...]

    Unless "-gnat202" requests the version of Ada that was current during
    the reign of Septimius Severus, you probably want to use "-gnat2022".
    (Options can be abbreviated, but "-gnat202" may become ambiguous if
    there's a new Ada standard before 2030.)

    Also "Default_Swiches" is mispelled.

    If the typos are the result of re-typing that line, I strongly suggest
    copy-and-pasting any code you post.

    --
    Keith Thompson

    Thank you, Keith :-)

    Fixed those two typos.

    Here's the current output from trying to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=debug
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \ -Psdlada.gpr
    sdlada.gpr:26:09: a variable cannot be declared for the first time here sdlada.gpr:26:23: unknown variable "C_Switches"
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    Thanks,
    Ken
    This makes no sense, line 26 is this:
    Source_Platform := "../../src/" & Platform;

    Hi Luke;

    Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of
    communicating. I can share a different email address which is already being heavily spammed...

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Kenneth Wolcott on Thu Jul 6 18:25:39 2023
    On Thursday, July 6, 2023 at 6:23:51 PM UTC-7, Kenneth Wolcott wrote:
    On Thursday, July 6, 2023 at 12:37:20 PM UTC-7, Kenneth Wolcott wrote:
    On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote:
    On 04/07/2023 00:58, Kenneth Wolcott wrote:
    On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
    Kenneth Wolcott writes:
    [...]
    After adding a semi-colon at the following line in sdlada.gpr

    for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
    [...]

    Unless "-gnat202" requests the version of Ada that was current during >> the reign of Septimius Severus, you probably want to use "-gnat2022". >> (Options can be abbreviated, but "-gnat202" may become ambiguous if >> there's a new Ada standard before 2030.)

    Also "Default_Swiches" is mispelled.

    If the typos are the result of re-typing that line, I strongly suggest
    copy-and-pasting any code you post.

    --
    Keith Thompson

    Thank you, Keith :-)

    Fixed those two typos.

    Here's the current output from trying to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=debug
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \ -Psdlada.gpr
    sdlada.gpr:26:09: a variable cannot be declared for the first time here
    sdlada.gpr:26:23: unknown variable "C_Switches"
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    Thanks,
    Ken
    This makes no sense, line 26 is this:
    Source_Platform := "../../src/" & Platform;
    Hi Luke;

    Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of
    communicating. I can share a different email address which is already being heavily spammed...

    Thanks,
    Ken
    Hi Luke;

    Please email the patch to me as an attachment using the email address: kwol...@yahoo.com...

    Please also provide a checksum of some kind so I know that the file didn't get corrupted en-route.

    Thanks,
    Ken

    The email address is kwolcott at yahoo dot com.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Kenneth Wolcott on Thu Jul 6 18:23:48 2023
    On Thursday, July 6, 2023 at 12:37:20 PM UTC-7, Kenneth Wolcott wrote:
    On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote:
    On 04/07/2023 00:58, Kenneth Wolcott wrote:
    On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
    Kenneth Wolcott writes:
    [...]
    After adding a semi-colon at the following line in sdlada.gpr

    for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
    [...]

    Unless "-gnat202" requests the version of Ada that was current during >> the reign of Septimius Severus, you probably want to use "-gnat2022". >> (Options can be abbreviated, but "-gnat202" may become ambiguous if
    there's a new Ada standard before 2030.)

    Also "Default_Swiches" is mispelled.

    If the typos are the result of re-typing that line, I strongly suggest >> copy-and-pasting any code you post.

    --
    Keith Thompson

    Thank you, Keith :-)

    Fixed those two typos.

    Here's the current output from trying to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=debug
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \ -Psdlada.gpr
    sdlada.gpr:26:09: a variable cannot be declared for the first time here sdlada.gpr:26:23: unknown variable "C_Switches"
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    Thanks,
    Ken
    This makes no sense, line 26 is this:
    Source_Platform := "../../src/" & Platform;
    Hi Luke;

    Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of
    communicating. I can share a different email address which is already being heavily spammed...

    Thanks,
    Ken

    Hi Luke;

    Please email the patch to me as an attachment using the email address: kwolcott@yahoo.com...

    Please also provide a checksum of some kind so I know that the file didn't get corrupted en-route.

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Kenneth Wolcott on Tue Jul 11 22:43:36 2023
    On Thursday, July 6, 2023 at 6:25:42 PM UTC-7, Kenneth Wolcott wrote:
    On Thursday, July 6, 2023 at 6:23:51 PM UTC-7, Kenneth Wolcott wrote:
    On Thursday, July 6, 2023 at 12:37:20 PM UTC-7, Kenneth Wolcott wrote:
    On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote:
    On 04/07/2023 00:58, Kenneth Wolcott wrote:
    On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
    Kenneth Wolcott writes:
    [...]
    After adding a semi-colon at the following line in sdlada.gpr

    for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
    [...]

    Unless "-gnat202" requests the version of Ada that was current during
    the reign of Septimius Severus, you probably want to use "-gnat2022".
    (Options can be abbreviated, but "-gnat202" may become ambiguous if >> there's a new Ada standard before 2030.)

    Also "Default_Swiches" is mispelled.

    If the typos are the result of re-typing that line, I strongly suggest
    copy-and-pasting any code you post.

    --
    Keith Thompson

    Thank you, Keith :-)

    Fixed those two typos.

    Here's the current output from trying to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=debug
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \ -Psdlada.gpr
    sdlada.gpr:26:09: a variable cannot be declared for the first time here
    sdlada.gpr:26:23: unknown variable "C_Switches"
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    Thanks,
    Ken
    This makes no sense, line 26 is this:
    Source_Platform := "../../src/" & Platform;
    Hi Luke;

    Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of
    communicating. I can share a different email address which is already being heavily spammed...

    Thanks,
    Ken
    Hi Luke;

    Please email the patch to me as an attachment using the email address: [redacted :-) ]

    Please also provide a checksum of some kind so I know that the file didn't get corrupted en-route.

    Thanks,
    Ken
    The email address is kwolcott at yahoo dot com.

    Hi Luke;

    Thanks for the patch via email.

    The md5sum matches...

    I ran git restore in the sdlada git clone directory...

    I then applied the patch:

    patch -p1 < test.patch
    patching file 'build/gnat/makefile'
    patching file 'build/gnat/sdlada.gpr'
    patching file 'build/gnat/sdlada_image.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/tests.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/tests_image.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/unit_tests.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'src/image/version_images.c'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'src/ttf/version_ttf.c'
    Reversed (or previously applied) patch detected! Assume -R? [y] y

    Attempting to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
    -Psdlada.gpr
    Setup
    [mkdir] object directory for project SDLAda
    sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
    sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    So, what did I do wrong this time?

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Kenneth Wolcott on Tue Jul 11 23:01:40 2023
    On Tuesday, July 11, 2023 at 10:43:37 PM UTC-7, Kenneth Wolcott wrote:
    On Thursday, July 6, 2023 at 6:25:42 PM UTC-7, Kenneth Wolcott wrote:
    On Thursday, July 6, 2023 at 6:23:51 PM UTC-7, Kenneth Wolcott wrote:
    On Thursday, July 6, 2023 at 12:37:20 PM UTC-7, Kenneth Wolcott wrote:
    On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote:
    On 04/07/2023 00:58, Kenneth Wolcott wrote:
    On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
    Kenneth Wolcott writes:
    [...]
    After adding a semi-colon at the following line in sdlada.gpr >>>
    for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
    [...]

    Unless "-gnat202" requests the version of Ada that was current during
    the reign of Septimius Severus, you probably want to use "-gnat2022".
    (Options can be abbreviated, but "-gnat202" may become ambiguous if
    there's a new Ada standard before 2030.)

    Also "Default_Swiches" is mispelled.

    If the typos are the result of re-typing that line, I strongly suggest
    copy-and-pasting any code you post.

    --
    Keith Thompson

    Thank you, Keith :-)

    Fixed those two typos.

    Here's the current output from trying to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=debug
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
    -Psdlada.gpr
    sdlada.gpr:26:09: a variable cannot be declared for the first time here
    sdlada.gpr:26:23: unknown variable "C_Switches"
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    Thanks,
    Ken
    This makes no sense, line 26 is this:
    Source_Platform := "../../src/" & Platform;
    Hi Luke;

    Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of
    communicating. I can share a different email address which is already being heavily spammed...

    Thanks,
    Ken
    Hi Luke;

    Please email the patch to me as an attachment using the email address: [redacted :-) ]

    Please also provide a checksum of some kind so I know that the file didn't get corrupted en-route.

    Thanks,
    Ken
    The email address is kwolcott at yahoo dot com.
    Hi Luke;

    Thanks for the patch via email.

    The md5sum matches...

    I ran git restore in the sdlada git clone directory...

    I then applied the patch:

    patch -p1 < test.patch
    patching file 'build/gnat/makefile'
    patching file 'build/gnat/sdlada.gpr'
    patching file 'build/gnat/sdlada_image.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/tests.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/tests_image.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/unit_tests.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'src/image/version_images.c'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'src/ttf/version_ttf.c'
    Reversed (or previously applied) patch detected! Assume -R? [y] y

    Attempting to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ -Psdlada.gpr
    Setup
    [mkdir] object directory for project SDLAda
    sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
    sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5
    So, what did I do wrong this time?

    Thanks,
    Ken


    Ok,

    I deleted the contents of the sdlada git clone directory...

    then did a git restore .

    then applied the patch

    then ran make.

    Still fails...

    *****************************************************************
    patch -p1 < test.patch
    patching file 'build/gnat/makefile'
    patching file 'build/gnat/sdlada.gpr'
    patching file 'build/gnat/sdlada_image.gpr'
    patching file 'build/gnat/tests.gpr'
    patching file 'build/gnat/tests_image.gpr'
    patching file 'build/gnat/unit_tests.gpr'
    patching file 'src/image/version_images.c'
    patching file 'src/ttf/version_ttf.c'
    sdlada: cd build/gnat
    gnat: make SDL_PLATFORM=macos_ports SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
    -Ptools.gpr
    Setup
    [mkdir] object directory for project Tools
    Compile
    [Ada] gen_keyboard.adb
    [Ada] scancodes.ads
    [Ada] utils.adb
    Bind
    [gprbind] gen_keyboard.bexch
    [Ada] gen_keyboard.ali
    Link
    [link] gen_keyboard.adb
    ./gen/release/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
    -Psdlada.gpr
    Setup
    [mkdir] object directory for project SDLAda
    sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
    sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5 *****************************************************************

    Thanks,
    Ken

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to Kenneth Wolcott on Wed Jul 12 16:44:16 2023
    On 12/07/2023 07:01, Kenneth Wolcott wrote:
    On Tuesday, July 11, 2023 at 10:43:37 PM UTC-7, Kenneth Wolcott wrote:
    On Thursday, July 6, 2023 at 6:25:42 PM UTC-7, Kenneth Wolcott wrote:
    On Thursday, July 6, 2023 at 6:23:51 PM UTC-7, Kenneth Wolcott wrote: >>>> On Thursday, July 6, 2023 at 12:37:20 PM UTC-7, Kenneth Wolcott wrote: >>>>> On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote: >>>>>> On 04/07/2023 00:58, Kenneth Wolcott wrote:
    On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote: >>>>>>>> Kenneth Wolcott writes:
    [...]
    After adding a semi-colon at the following line in sdlada.gpr >>>>>>>>>
    for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
    [...]

    Unless "-gnat202" requests the version of Ada that was current during >>>>>>>> the reign of Septimius Severus, you probably want to use "-gnat2022". >>>>>>>> (Options can be abbreviated, but "-gnat202" may become ambiguous if >>>>>>>> there's a new Ada standard before 2030.)

    Also "Default_Swiches" is mispelled.

    If the typos are the result of re-typing that line, I strongly suggest >>>>>>>> copy-and-pasting any code you post.

    --
    Keith Thompson

    Thank you, Keith :-)

    Fixed those two typos.

    Here's the current output from trying to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=debug
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \ >>>>>>> -Psdlada.gpr
    sdlada.gpr:26:09: a variable cannot be declared for the first time here >>>>>>> sdlada.gpr:26:23: unknown variable "C_Switches"
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    Thanks,
    Ken
    This makes no sense, line 26 is this:
    Source_Platform := "../../src/" & Platform;
    Hi Luke;

    Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of
    communicating. I can share a different email address which is already being heavily spammed...

    Thanks,
    Ken
    Hi Luke;

    Please email the patch to me as an attachment using the email address: [redacted :-) ]

    Please also provide a checksum of some kind so I know that the file didn't get corrupted en-route.

    Thanks,
    Ken
    The email address is kwolcott at yahoo dot com.
    Hi Luke;

    Thanks for the patch via email.

    The md5sum matches...

    I ran git restore in the sdlada git clone directory...

    I then applied the patch:

    patch -p1 < test.patch
    patching file 'build/gnat/makefile'
    patching file 'build/gnat/sdlada.gpr'
    patching file 'build/gnat/sdlada_image.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/tests.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/tests_image.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/unit_tests.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'src/image/version_images.c'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'src/ttf/version_ttf.c'
    Reversed (or previously applied) patch detected! Assume -R? [y] y

    Attempting to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
    -Psdlada.gpr
    Setup
    [mkdir] object directory for project SDLAda
    sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
    sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5
    So, what did I do wrong this time?

    Thanks,
    Ken


    Ok,

    I deleted the contents of the sdlada git clone directory...

    then did a git restore .

    then applied the patch

    then ran make.

    Still fails...

    *****************************************************************
    patch -p1 < test.patch
    patching file 'build/gnat/makefile'
    patching file 'build/gnat/sdlada.gpr'
    patching file 'build/gnat/sdlada_image.gpr'
    patching file 'build/gnat/tests.gpr'
    patching file 'build/gnat/tests_image.gpr'
    patching file 'build/gnat/unit_tests.gpr'
    patching file 'src/image/version_images.c'
    patching file 'src/ttf/version_ttf.c'
    sdlada: cd build/gnat
    gnat: make SDL_PLATFORM=macos_ports SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
    -Ptools.gpr
    Setup
    [mkdir] object directory for project Tools
    Compile
    [Ada] gen_keyboard.adb
    [Ada] scancodes.ads
    [Ada] utils.adb
    Bind
    [gprbind] gen_keyboard.bexch
    [Ada] gen_keyboard.ali
    Link
    [link] gen_keyboard.adb
    ./gen/release/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
    -Psdlada.gpr
    Setup
    [mkdir] object directory for project SDLAda
    sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
    sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5 *****************************************************************

    Check the sdlada.gpr, it will get the platform name as the src dir too,
    I forgot about that. Change:

    case Platform is
    when "macos_homebrew" =>

    to:

    case Platform is
    when "macos_homebrew" | "macos_ports" | "macosx" =>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Luke A. Guest on Wed Jul 12 16:09:36 2023
    On Wednesday, July 12, 2023 at 8:44:20 AM UTC-7, Luke A. Guest wrote:
    On 12/07/2023 07:01, Kenneth Wolcott wrote:
    On Tuesday, July 11, 2023 at 10:43:37 PM UTC-7, Kenneth Wolcott wrote:
    On Thursday, July 6, 2023 at 6:25:42 PM UTC-7, Kenneth Wolcott wrote: >>> On Thursday, July 6, 2023 at 6:23:51 PM UTC-7, Kenneth Wolcott wrote: >>>> On Thursday, July 6, 2023 at 12:37:20 PM UTC-7, Kenneth Wolcott wrote:
    On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote: >>>>>> On 04/07/2023 00:58, Kenneth Wolcott wrote:
    On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote: >>>>>>>> Kenneth Wolcott writes:
    [...]
    After adding a semi-colon at the following line in sdlada.gpr >>>>>>>>>
    for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
    [...]

    Unless "-gnat202" requests the version of Ada that was current during
    the reign of Septimius Severus, you probably want to use "-gnat2022".
    (Options can be abbreviated, but "-gnat202" may become ambiguous if >>>>>>>> there's a new Ada standard before 2030.)

    Also "Default_Swiches" is mispelled.

    If the typos are the result of re-typing that line, I strongly suggest
    copy-and-pasting any code you post.

    --
    Keith Thompson

    Thank you, Keith :-)

    Fixed those two typos.

    Here's the current output from trying to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=debug
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \ >>>>>>> -Psdlada.gpr
    sdlada.gpr:26:09: a variable cannot be declared for the first time here
    sdlada.gpr:26:23: unknown variable "C_Switches"
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    Thanks,
    Ken
    This makes no sense, line 26 is this:
    Source_Platform := "../../src/" & Platform;
    Hi Luke;

    Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of
    communicating. I can share a different email address which is already being heavily spammed...

    Thanks,
    Ken
    Hi Luke;

    Please email the patch to me as an attachment using the email address: [redacted :-) ]

    Please also provide a checksum of some kind so I know that the file didn't get corrupted en-route.

    Thanks,
    Ken
    The email address is kwolcott at yahoo dot com.
    Hi Luke;

    Thanks for the patch via email.

    The md5sum matches...

    I ran git restore in the sdlada git clone directory...

    I then applied the patch:

    patch -p1 < test.patch
    patching file 'build/gnat/makefile'
    patching file 'build/gnat/sdlada.gpr'
    patching file 'build/gnat/sdlada_image.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/tests.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/tests_image.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/unit_tests.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'src/image/version_images.c'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'src/ttf/version_ttf.c'
    Reversed (or previously applied) patch detected! Assume -R? [y] y

    Attempting to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
    -Psdlada.gpr
    Setup
    [mkdir] object directory for project SDLAda
    sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
    sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5
    So, what did I do wrong this time?

    Thanks,
    Ken


    Ok,

    I deleted the contents of the sdlada git clone directory...

    then did a git restore .

    then applied the patch

    then ran make.

    Still fails...

    *****************************************************************
    patch -p1 < test.patch
    patching file 'build/gnat/makefile'
    patching file 'build/gnat/sdlada.gpr'
    patching file 'build/gnat/sdlada_image.gpr'
    patching file 'build/gnat/tests.gpr'
    patching file 'build/gnat/tests_image.gpr'
    patching file 'build/gnat/unit_tests.gpr'
    patching file 'src/image/version_images.c'
    patching file 'src/ttf/version_ttf.c'
    sdlada: cd build/gnat
    gnat: make SDL_PLATFORM=macos_ports SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ -Ptools.gpr
    Setup
    [mkdir] object directory for project Tools
    Compile
    [Ada] gen_keyboard.adb
    [Ada] scancodes.ads
    [Ada] utils.adb
    Bind
    [gprbind] gen_keyboard.bexch
    [Ada] gen_keyboard.ali
    Link
    [link] gen_keyboard.adb
    ./gen/release/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ -Psdlada.gpr
    Setup
    [mkdir] object directory for project SDLAda
    sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
    sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5 *****************************************************************
    Check the sdlada.gpr, it will get the platform name as the src dir too,
    I forgot about that. Change:
    case Platform is
    when "macos_homebrew" =>
    to:

    case Platform is
    when "macos_homebrew" | "macos_ports" | "macosx" =>

    After
    1. Completely deleting the cloned instance of sdlada;
    2. Applying the patch you provided via email;
    3. manually modifying sdlada.gpr as you directed above;

    We have the following result:
    *********************************************
    make SDL_PLATFORM=macos_ports SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
    -Ptools.gpr
    Setup
    [mkdir] object directory for project Tools
    Compile
    [Ada] gen_keyboard.adb
    [Ada] scancodes.ads
    [Ada] utils.adb
    Bind
    [gprbind] gen_keyboard.bexch
    [Ada] gen_keyboard.ali
    Link
    [link] gen_keyboard.adb
    ./gen/release/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
    -Psdlada.gpr
    Setup
    [mkdir] object directory for project SDLAda
    sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
    Compile
    [C] version_ttf.c
    [REDACTED]/sdlada/src/ttf/version_ttf.c:25:18: fatal error: SDL2/SDL_ttf.h: No such file or directory
    25 | #include <SDL2/SDL_ttf.h>
    | ^~~~~~~~~~~~~~~~
    compilation terminated.
    gprbuild: *** compilation phase failed
    make: *** [lib/libadasdl.a] Error 4 *********************************************

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Kenneth Wolcott on Wed Jul 12 16:11:17 2023
    On Wednesday, July 12, 2023 at 4:09:38 PM UTC-7, Kenneth Wolcott wrote:
    On Wednesday, July 12, 2023 at 8:44:20 AM UTC-7, Luke A. Guest wrote:
    On 12/07/2023 07:01, Kenneth Wolcott wrote:
    On Tuesday, July 11, 2023 at 10:43:37 PM UTC-7, Kenneth Wolcott wrote:
    On Thursday, July 6, 2023 at 6:25:42 PM UTC-7, Kenneth Wolcott wrote: >>> On Thursday, July 6, 2023 at 6:23:51 PM UTC-7, Kenneth Wolcott wrote:
    On Thursday, July 6, 2023 at 12:37:20 PM UTC-7, Kenneth Wolcott wrote:
    On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote: >>>>>> On 04/07/2023 00:58, Kenneth Wolcott wrote:
    On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
    Kenneth Wolcott writes:
    [...]
    After adding a semi-colon at the following line in sdlada.gpr >>>>>>>>>
    for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
    [...]

    Unless "-gnat202" requests the version of Ada that was current during
    the reign of Septimius Severus, you probably want to use "-gnat2022".
    (Options can be abbreviated, but "-gnat202" may become ambiguous if
    there's a new Ada standard before 2030.)

    Also "Default_Swiches" is mispelled.

    If the typos are the result of re-typing that line, I strongly suggest
    copy-and-pasting any code you post.

    --
    Keith Thompson

    Thank you, Keith :-)

    Fixed those two typos.

    Here's the current output from trying to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=debug
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
    -Psdlada.gpr
    sdlada.gpr:26:09: a variable cannot be declared for the first time here
    sdlada.gpr:26:23: unknown variable "C_Switches"
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5

    Thanks,
    Ken
    This makes no sense, line 26 is this:
    Source_Platform := "../../src/" & Platform;
    Hi Luke;

    Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of
    communicating. I can share a different email address which is already being heavily spammed...

    Thanks,
    Ken
    Hi Luke;

    Please email the patch to me as an attachment using the email address: [redacted :-) ]

    Please also provide a checksum of some kind so I know that the file didn't get corrupted en-route.

    Thanks,
    Ken
    The email address is kwolcott at yahoo dot com.
    Hi Luke;

    Thanks for the patch via email.

    The md5sum matches...

    I ran git restore in the sdlada git clone directory...

    I then applied the patch:

    patch -p1 < test.patch
    patching file 'build/gnat/makefile'
    patching file 'build/gnat/sdlada.gpr'
    patching file 'build/gnat/sdlada_image.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/tests.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/tests_image.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'build/gnat/unit_tests.gpr'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'src/image/version_images.c'
    Reversed (or previously applied) patch detected! Assume -R? [y] y
    patching file 'src/ttf/version_ttf.c'
    Reversed (or previously applied) patch detected! Assume -R? [y] y

    Attempting to build:

    make SDL_PLATFORM=macos_ports SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ >> -Psdlada.gpr
    Setup
    [mkdir] object directory for project SDLAda
    sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
    sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory
    gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5
    So, what did I do wrong this time?

    Thanks,
    Ken


    Ok,

    I deleted the contents of the sdlada git clone directory...

    then did a git restore .

    then applied the patch

    then ran make.

    Still fails...

    *****************************************************************
    patch -p1 < test.patch
    patching file 'build/gnat/makefile'
    patching file 'build/gnat/sdlada.gpr'
    patching file 'build/gnat/sdlada_image.gpr'
    patching file 'build/gnat/tests.gpr'
    patching file 'build/gnat/tests_image.gpr'
    patching file 'build/gnat/unit_tests.gpr'
    patching file 'src/image/version_images.c'
    patching file 'src/ttf/version_ttf.c'
    sdlada: cd build/gnat
    gnat: make SDL_PLATFORM=macos_ports SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ -Ptools.gpr
    Setup
    [mkdir] object directory for project Tools
    Compile
    [Ada] gen_keyboard.adb
    [Ada] scancodes.ads
    [Ada] utils.adb
    Bind
    [gprbind] gen_keyboard.bexch
    [Ada] gen_keyboard.ali
    Link
    [link] gen_keyboard.adb
    ./gen/release/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ -Psdlada.gpr
    Setup
    [mkdir] object directory for project SDLAda
    sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
    sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory gprbuild: "sdlada.gpr" processing failed
    make: *** [lib/libadasdl.a] Error 5 *****************************************************************
    Check the sdlada.gpr, it will get the platform name as the src dir too,
    I forgot about that. Change:
    case Platform is
    when "macos_homebrew" =>
    to:

    case Platform is
    when "macos_homebrew" | "macos_ports" | "macosx" =>
    After
    1. Completely deleting the cloned instance of sdlada;
    1.5. Running git clone again to obtain fresh sdlada source :-)
    2. Applying the patch you provided via email;
    3. manually modifying sdlada.gpr as you directed above;

    We have the following result:
    *********************************************
    make SDL_PLATFORM=macos_ports SDL_MODE=release
    mkdir -p gen/src/
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ -Ptools.gpr
    Setup
    [mkdir] object directory for project Tools
    Compile
    [Ada] gen_keyboard.adb
    [Ada] scancodes.ads
    [Ada] utils.adb
    Bind
    [gprbind] gen_keyboard.bexch
    [Ada] gen_keyboard.ali
    Link
    [link] gen_keyboard.adb
    ./gen/release/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads
    gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ -Psdlada.gpr
    Setup
    [mkdir] object directory for project SDLAda
    sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
    Compile
    [C] version_ttf.c
    [REDACTED]/sdlada/src/ttf/version_ttf.c:25:18: fatal error: SDL2/SDL_ttf.h: No such file or directory
    25 | #include <SDL2/SDL_ttf.h>
    | ^~~~~~~~~~~~~~~~
    compilation terminated.
    gprbuild: *** compilation phase failed
    make: *** [lib/libadasdl.a] Error 4 *********************************************

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luke A. Guest@21:1/5 to All on Thu Jul 13 11:59:43 2023
    Can you edit your replies cutting out irrelevant stuff so I don't have
    to scroll through pages of stuff?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rod Kay@21:1/5 to Luke A. Guest on Fri Jul 14 00:14:17 2023
    On 13/7/23 20:59, Luke A. Guest wrote:
    Can you edit your replies cutting out irrelevant stuff so I don't have
    to scroll through pages of stuff?


    Or perhaps open an issue in the sdlada github project.


    Regards.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenneth Wolcott@21:1/5 to Rod Kay on Thu Jul 13 08:15:13 2023
    On Thursday, July 13, 2023 at 7:14:01 AM UTC-7, Rod Kay wrote:
    On 13/7/23 20:59, Luke A. Guest wrote:
    Can you edit your replies cutting out irrelevant stuff so I don't have
    to scroll through pages of stuff?

    Luke (and others):

    I'm sorry, I know better, I was being lazy :-(

    Or perhaps open an issue in the sdlada github project.

    Rod;

    That is probably what I should have done initially.

    Ken

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