dev-scheme/sagittarius: fix cxxflags and tests

Closes: https://bugs.gentoo.org/930963
Closes: https://bugs.gentoo.org/930964
Signed-off-by: Daichi Yamamoto <dev@dyama.net>
This commit is contained in:
Daichi Yamamoto 2024-05-01 01:31:39 +09:00
parent 62f839a72a
commit 9edeb03c86
No known key found for this signature in database
GPG Key ID: C8ACBAD28C919F19
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,21 @@
--- a/cmake/FixupCompilerFlags.cmake
+++ b/cmake/FixupCompilerFlags.cmake
@@ -45,18 +45,6 @@
SET(CMAKE_CXX_FLAGS "-Wall ${CMAKE_CXX_FLAGS}")
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wshorten-64-to-32")
- # for GCC or Clang, we want both maximum performance and debug info.
- IF (CMAKE_BUILD_TYPE STREQUAL Debug)
- SET(CMAKE_C_FLAGS_DEBUG "-O3 ${CMAKE_C_FLAGS_DEBUG}")
- SET(CMAKE_CXX_FLAGS_DEBUG "-O3 ${CMAKE_CXX_FLAGS_DEBUG}")
- ELSEIF(CMAKE_BUILD_TYPE STREQUAL Release)
- SET(CMAKE_C_FLAGS_RELEASE "-g ${CMAKE_C_FLAGS_RELEASE}")
- SET(CMAKE_CXX_FLAGS_RELEASE "-g ${CMAKE_CXX_FLAGS_RELEASE}")
- ELSE()
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O3")
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O3")
- ENDIF()
-
# for some reason static library doesn't have this
# on x86_64 and is required.
# Solaris GCC (32 bit) doesn't have this either. so

View File

@ -8,6 +8,7 @@ inherit cmake edo
DESCRIPTION="R6RS/R7RS Scheme system."
HOMEPAGE="https://bitbucket.org/ktakashi/sagittarius-scheme"
SRC_URI="https://bitbucket.org/ktakashi/sagittarius-scheme/downloads/${P}.tar.gz"
PATCHES=( "${FILESDIR}/${PN}-compiler-flags.patch" )
LICENSE="BSD-2"
SLOT="0"
@ -27,7 +28,9 @@ src_unpack() {
# avoid running ldconfig
edo truncate -s0 "${S}"/cmake/CMakeLists.txt
edo cd "${S}"/test/tests
# following tests always fail in sandbox
cd "${S}"/test/tests
edo rm net/http-client.scm net/socket.scm rfc/websocket.scm
# following tests randomly(?!) fail
edo rm net/server.scm rfc/oauth2.scm rsa/pkcs/%3a12.scm security/keystore.scm
}