From 08d84088dd2e9dcdf3fdfc1703d64c3ac3259b7b Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 29 Dec 2017 20:16:41 +0100 Subject: extra/texmacs: more sed-fu to fix compilation --- extra/texmacs/PKGBUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extra/texmacs/PKGBUILD') diff --git a/extra/texmacs/PKGBUILD b/extra/texmacs/PKGBUILD index 6469e015..0c02dc63 100644 --- a/extra/texmacs/PKGBUILD +++ b/extra/texmacs/PKGBUILD @@ -1,10 +1,10 @@ # guile cmake checks allow int* to be casted to size_t*, so we -# add -fpermissive to make the int cast fail and the size_t cast -# succeed +# add force guile_str_size_t to size_t after the test (no matter +# what the outcome is) eval "$( declare -f prepare | \ sed ' - /cd TeXmacs-${pkgver}-src/ a \ sed -i "/SET(CMAKE_REQUIRED_FLAGS/s/-Werror /-Werror -fpermissive /" CMakeLists.txt + /cd TeXmacs-${pkgver}-src/ a \ sed -i "/ENDIF(_guile_str_size_test)/ a \ SET(guile_str_size_t size_t)" CMakeLists.txt ' )" -- cgit v1.2.3