This repository has been archived by the owner on Jul 4, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds optional tests to SDL. Closes #34353 Closes #34559. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
- Loading branch information
1 parent
57e61c9
commit 0d6d021
Showing
1 changed file
with
35 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0d6d021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if adding a comment to a commit page is the correct procedure, but I have hit a problem due to a change introduced by this commit. The inreplace of the prefix path in sdl-config from /usr/local/ to #{prefix} has broken my build of an application that depends on sdl, sdl_image, sdl_mixer, and sdl_ttf because it uses sdl-config --prefix to get the path prefix used for all of the sdl_* packages, not just sdl itself. There is no provision in sdl-config for sdl and the various sdl_* to be installed in separate directories, so you don't really get to install sdl keg-only if you want to use the sdl_* packages. What is the "pain" that the comment refers to regarding leaving sdl-config prefix as /usr/local?
0d6d021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, commenting here is fine.
It throws an enormous strop and breaks all of the optional tests. Like, all of them, heh. But obviously, if it's causing problems more generally for people the tests have a lower priority than general functionality. I'll take another look at this locally.
0d6d021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this happens
with-tests
and without the inreplace:Will try a few things to get around it and see.
0d6d021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DomT4 Earlier in the formula, an inreplace intentionally sets the prefix inside
sdl_config
toHOMEBREW_PREFIX
- it's to solve the problem that @sidney is having.0d6d021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I can see that now.
I didn't actually notice it before because the
.in
extension was outdated by the time the tests are compiled, and so when I was in the shell trying to work out what was happeningsdl-config
was already an executable, and my brain didn't flag that to me. I can see it now.I'm trying a few things locally, but failing that, I'll just revert the whole commit.
0d6d021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#34721