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=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h" Date: Mon, 3 Jul 2023 13:23:11 +0100 Organization: A noiseless patient Spider Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 3 Jul 2023 12:23:12 -0000 (UTC) Injection-Info: dont-email.me; posting-host="f4eb3c8731b58ae79a2e6835173b14e0"; logging-data="3895326"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EdQ9yt5fUkPMxLEc9pO96eyzxEahmJug=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Cancel-Lock: sha1:dijxTUa8TcBnH/29KN24GWtGRFw= In-Reply-To: <2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com> Content-Language: en-GB Xref: news.eternal-september.org comp.lang.ada:65409 List-Id: 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