Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

sdl: fixing dom is a moron #34721

Closed
wants to merge 1 commit into from
Closed

sdl: fixing dom is a moron #34721

wants to merge 1 commit into from

Conversation

DomT4
Copy link
Member

@DomT4 DomT4 commented Dec 5, 2014

Deals with the issue flagged up in this commit. Should have caught this at the time. I am an idiot.

Deals with the issue flagged up in [this
commit](0d6d0213dc4cc406cdfd
cb5ba742b361a0ab2210). Should have caught this at the time. I am an
idiot.
@DomT4
Copy link
Member Author

DomT4 commented Dec 5, 2014

@mistydemeo

@DomT4
Copy link
Member Author

DomT4 commented Dec 5, 2014

If the maintainers prefer to revert the whole darn thing rather than deal with stupid inreplaces and undoing those inreplaces, I'm cool with that too.

DomT4 referenced this pull request Dec 5, 2014
Adds optional tests to SDL.

Closes #34353

Closes #34559.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
if build.with? "tests"
ENV.prepend_path "PATH", "#{bin}"
# This is stupid but necessary. Blurgh. Otherwise, test building fails, even
# with various flags, prepending & pkg_config_path tinkering.
inreplace "#{bin}/sdl-config", "prefix=#{HOMEBREW_PREFIX}", "prefix=#{prefix}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about passing --with-sdl-prefix=#{prefix} to configure instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't work. Tried that, and --with-sdl-exec-prefix=#{prefix} and --with-sdl-prefix=#{HOMEBREW_PREFIX} --with-sdl-exec-prefix=#{prefix} in combination, and then I tried disabling the compile-time test, only for it to refuse to link to the libs, and then it kept refusing to link to the libs even with a flag in place.

@DomT4
Copy link
Member Author

DomT4 commented Dec 17, 2014

Any remaining objection here? I'd either like to get this merged or revert my initial commit to resolve the breakage for people. Don't want to leave my initial broken commit in place any longer than necessary, really.

@MikeMcQuaid
Copy link
Member

Pushed. Would be good to work with upstream to work out an alternative approach to the inreplace.

@MikeMcQuaid
Copy link
Member

(or at least file an issue)

@DomT4 DomT4 deleted the sdl branch December 17, 2014 23:13
@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants