From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:622a:1a16:b0:403:2978:b7d0 with SMTP id f22-20020a05622a1a1600b004032978b7d0mr31703qtb.12.1688414284335; Mon, 03 Jul 2023 12:58:04 -0700 (PDT) X-Received: by 2002:a17:902:cecf:b0:1b5:2b14:5f2c with SMTP id d15-20020a170902cecf00b001b52b145f2cmr9320781plg.4.1688414283764; Mon, 03 Jul 2023 12:58:03 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 3 Jul 2023 12:58:03 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=98.59.238.112; posting-account=oHOvdQoAAACYgyEBjgPNvKFOGxg8pNns NNTP-Posting-Host: 98.59.238.112 References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com> <5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com> <21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com> <016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com> <6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com> <2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com> Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h" From: Kenneth Wolcott Injection-Date: Mon, 03 Jul 2023 19:58:04 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:65410 List-Id: On Monday, July 3, 2023 at 5:23:16=E2=80=AFAM UTC-7, Luke A. Guest wrote: > On 02/07/2023 22:59, Kenneth Wolcott wrote:=20 > > On Sunday, July 2, 2023 at 2:40:15=E2=80=AFPM UTC-7, Luke A. Guest wrot= e:=20 > >> On 02/07/2023 21:20, Kenneth Wolcott wrote:=20 > >>=20 > >>> You posted the output of running patch -p1 --dry-run < patch while in= side the build/gnat directory.=20 > >>>=20 > >> No, that';s the command to test the patch on the source. To apply it y= ou=20 > >> remove the dry run option.=20 > >>=20 > >> Just save the email, cut out the crap that's not the patch and then sa= ve=20 > >> it as test.patch as the above command should say (after the "<"), dunn= o=20 > >> what happened there.=20 > >=20 > > Thank you.=20 > >=20 > > I think saved the contents of the posting where the first diff starts a= s test.patch.=20 > >=20 > > I downloaded a fresh sdlada package from GitHub, calling it sdlada2.=20 > >=20 > > I then placed the test.patch file there.=20 > >=20 > > Results:=20 > >=20 > > patch -p1 --dry-run < test.patch=20 > > patching file 'build/gnat/makefile'=20 > > patch: **** malformed patch at line 7: tests.gpr: $(TESTS_SRCS) gen/$(S= DL_MODE)/test/libtestmaths.so=20 > >=20 > > Did I do something wrong? > No idea. This is what I did it with:=20 >=20 > $ git clone g...@github.com:Lucretia/sdlada.git=20 > Cloning into 'sdlada'...=20 > remote: Enumerating objects: 3100, done.=20 > remote: Counting objects: 100% (257/257), done.=20 > remote: Compressing objects: 100% (104/104), done.=20 > remote: Total 3100 (delta 156), reused 227 (delta 144), pack-reused 2843= =20 > Receiving objects: 100% (3100/3100), 727.62 KiB | 303.00 KiB/s, done.=20 > Resolving deltas: 100% (2269/2269), done.=20 > $ cd sdlada/=20 > $ patch -p1 --dry-run < ~/src/mine-new/game-dev/sdl/sdlada/test.patch=20 > checking file build/gnat/makefile=20 > checking file build/gnat/sdlada.gpr=20 > checking file build/gnat/sdlada_image.gpr=20 > checking file build/gnat/tests.gpr=20 > checking file build/gnat/tests_image.gpr=20 > checking file build/gnat/unit_tests.gpr=20 > checking file src/image/version_images.c=20 > checking file src/ttf/version_ttf.c Hi Luke; I wonder if there was an error introduced by the copy&paste with the mous= e and/or with the formatting of the posting/email...I'll try to examine tha= t 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 diff= erent than doing the git clone, but there's another difference that might b= e 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 Mac= Ports... Ken