From 988c3763e7f52ca6f399513e7c893d4e2340b957 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 18 Jun 2018 09:50:38 +0000 Subject: main/graphite2: build fix for x86 we need -lssp_nonshared on alpine x86 --- main/graphite2/APKBUILD | 6 ++++-- main/graphite2/cmake.patch | 29 ++++++++++++++++------------- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/main/graphite2/APKBUILD b/main/graphite2/APKBUILD index 512ce732b4..cb8c41e763 100644 --- a/main/graphite2/APKBUILD +++ b/main/graphite2/APKBUILD @@ -3,7 +3,7 @@ pkgname=graphite2 _realname=${pkgname/2/} pkgver=1.3.11 -pkgrel=0 +pkgrel=1 pkgdesc="reimplementation of the SIL Graphite text processing engine" url="http://graphite.sil.org/" arch="all" @@ -16,6 +16,7 @@ install="" subpackages="$pkgname-static $pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/silnrsi/$_realname/archive/$pkgver.tar.gz graphite2-1.2.0-cmakepath.patch + cmake.patch " builddir="$srcdir"/$_realname-$pkgver @@ -69,4 +70,5 @@ package() { } sha512sums="53c5e9442900bc4d8a1b45be5198c25a82e34b077d62ff11036f5f4bfc69906891a16dbc17d521fafe8738ef9363cbacd201e1848221cdd70c5c40a59c4ab03f graphite2-1.3.11.tar.gz -4ef5414e6d554bb8d6ead435e38d061a073f350c313b7141158bb68332f5f57ca5250385875a387b828bb657964588e974143b96b5e11c2cd314871e7baddb88 graphite2-1.2.0-cmakepath.patch" +4ef5414e6d554bb8d6ead435e38d061a073f350c313b7141158bb68332f5f57ca5250385875a387b828bb657964588e974143b96b5e11c2cd314871e7baddb88 graphite2-1.2.0-cmakepath.patch +f6630138d67764b8240819125810544cf5ad89554b298de9762e5e05e85f9df719d957ac3f2e7a2c4e201cc6d58544f196d742b93fc2c5754db3c3ffe663492d cmake.patch" diff --git a/main/graphite2/cmake.patch b/main/graphite2/cmake.patch index 41f1e51876..ffafa17d4a 100644 --- a/main/graphite2/cmake.patch +++ b/main/graphite2/cmake.patch @@ -1,13 +1,16 @@ ---- ./tests/CMakeLists.txt.orig -+++ ./tests/CMakeLists.txt -@@ -58,7 +58,9 @@ - LINKER_LANGUAGE C) - endif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") - --add_subdirectory(comparerenderer) -+if (GRAPHITE2_COMPARE_RENDERER) -+ add_subdirectory(comparerenderer) -+endif (GRAPHITE2_COMPARE_RENDERER) - add_subdirectory(endian) - add_subdirectory(bittwiddling) - if (NOT GRAPHITE2_NFILEFACE) +--- graphite2-1.2.0/src/CMakeLists.txt.orig 2012-11-09 17:48:04.908391335 +0800 ++++ graphite2-1.2.0/src/CMakeLists.txt 2012-11-09 17:48:48.647102280 +0800 +@@ -118,11 +118,7 @@ + if (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*") + target_link_libraries(graphite2 kernel32 msvcr90 mingw32 gcc user32) + else (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*") +- if (GRAPHITE2_ASAN) +- target_link_libraries(graphite2 c gcc_s) +- else (GRAPHITE2_ASAN) +- target_link_libraries(graphite2 c gcc) +- endif (GRAPHITE2_ASAN) ++ target_link_libraries(graphite2 c gcc_s -lssp_nonshared) + include(Graphite) + nolib_test(stdc++ $) + endif (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*") + -- cgit v1.2.3