media-video/aegisub: Enable testing with >=dev-cpp/gtest-1.8.1 #12230
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I maintain dev-cpp/gtest . This is the last package to depend on dev-cpp/gtest-1.7.0 and I would love to eventually purge it from the tree. Tests build, run, and pass just fine with >=dev-cpp/gtest-1.8.1 though a few unrelated lua tests sporadically fail, likely due to Aegisub/Aegisub#99.
Note, the patch was modified to pass
$(CFLAGS_PTHREAD)
as a value forGTEST_CXXFLAGS
. The value of$(shell pkg-config --cflags gtest)
or$(shell pkg-config --cflags-only-other gtest)
would have included-lpthread
while compiling a pre-compiled header. This, for some reason, triggers gcc into building it as an executable and the build fails since it can't findmain()
.Tested with dev-cpp/gtest-1.8.1-r2 and dev-cpp/gtest-1.9.0_pre20190607
Package-Manager: Portage-2.3.67, Repoman-2.3.13
Signed-off-by: Peter Levine plevine457@gmail.com