dev-ruby/facter: fix 3.14.8 patch

Closes: https://bugs.gentoo.org/710066
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
This commit is contained in:
Matthew Thode
2020-02-18 10:39:55 -06:00
parent f5f3520625
commit 5624d85c41
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ S="${WORKDIR}/${P}"
PATCHES=(
"${FILESDIR}"/${PN}-3.14.6-fix-static-libcpp-hocon.patch
# be explicit about the version of rspec we test with
"${FILESDIR}"/${PN}-3.14.6-explicit-rspec-2.patch
"${FILESDIR}"/${PN}-3.14.8-explicit-rspec-2.patch
)
pkg_setup() {
@@ -0,0 +1,10 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -205,7 +205,7 @@
if (BUNDLER_PATH)
message(STATUS "Bundler found, installing dependencies for Ruby tests...")
execute_process(COMMAND ${BUNDLER_PATH} install --retry 2 --path=vendor/bundle WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/lib")
- add_test(NAME "libfacter\\ specs" COMMAND ${BUNDLER_PATH} exec rspec WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/lib")
+ add_test(NAME "libfacter\\ specs" COMMAND ${BUNDLER_PATH} exec rspec-2 WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/lib")
endif()
endif()