From d192374db8fbf71b06a8ab9f4996903b5d34c357 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 29 Dec 2017 19:17:12 +0100 Subject: extra/texmacs: fixed test for guile_size_t to be a size_t and not an int --- extra/texmacs/PKGBUILD | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 extra/texmacs/PKGBUILD (limited to 'extra/texmacs') diff --git a/extra/texmacs/PKGBUILD b/extra/texmacs/PKGBUILD new file mode 100644 index 00000000..6469e015 --- /dev/null +++ b/extra/texmacs/PKGBUILD @@ -0,0 +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 + +eval "$( + declare -f prepare | \ + sed ' + /cd TeXmacs-${pkgver}-src/ a \ sed -i "/SET(CMAKE_REQUIRED_FLAGS/s/-Werror /-Werror -fpermissive /" CMakeLists.txt + ' +)" -- cgit v1.2.3-70-g09d2