From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8D85B158086 for ; Mon, 20 Dec 2021 00:48:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF9222BC045; Mon, 20 Dec 2021 00:48:34 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AD2BF2BC045 for ; Mon, 20 Dec 2021 00:48:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AAD69342F73 for ; Mon, 20 Dec 2021 00:48:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 62A4B1F4 for ; Mon, 20 Dec 2021 00:48:32 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1639961300.0d1bf1816e7e2b05f0d9435e2d266272f120d19f.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/graphite2/files/, media-gfx/graphite2/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/graphite2/files/graphite2-1.3.14-fix-cmake-files-libdir.patch media-gfx/graphite2/files/graphite2-1.35-fix-gcc-linking.patch media-gfx/graphite2/graphite2-1.3.14-r1.ebuild media-gfx/graphite2/graphite2-1.3.14.ebuild X-VCS-Directories: media-gfx/graphite2/files/ media-gfx/graphite2/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0d1bf1816e7e2b05f0d9435e2d266272f120d19f X-VCS-Branch: master Date: Mon, 20 Dec 2021 00:48:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 84e488da-4a2e-4c33-b631-5e1d5dfe11ab X-Archives-Hash: 63a7966c713f4bf33be54d326f06d98a commit: 0d1bf1816e7e2b05f0d9435e2d266272f120d19f Author: Sam James gentoo org> AuthorDate: Mon Dec 20 00:36:33 2021 +0000 Commit: Sam James gentoo org> CommitDate: Mon Dec 20 00:48:20 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d1bf181 media-gfx/graphite2: fix build system (mainly musl build) - Fix musl build (force in -lssp_nonshared for -nodefaultlibs) - Fix .cmake install path Bug: https://bugs.gentoo.org/532408 Closes: https://bugs.gentoo.org/829690 Signed-off-by: Sam James gentoo.org> .../graphite2-1.3.14-fix-cmake-files-libdir.patch | 13 +++++++++++++ .../files/graphite2-1.35-fix-gcc-linking.patch | 18 ++++++++++++++++++ ...phite2-1.3.14.ebuild => graphite2-1.3.14-r1.ebuild} | 17 +++++++++++++---- 3 files changed, 44 insertions(+), 4 deletions(-) diff --git a/media-gfx/graphite2/files/graphite2-1.3.14-fix-cmake-files-libdir.patch b/media-gfx/graphite2/files/graphite2-1.3.14-fix-cmake-files-libdir.patch new file mode 100644 index 000000000000..d4ae9846dce4 --- /dev/null +++ b/media-gfx/graphite2/files/graphite2-1.3.14-fix-cmake-files-libdir.patch @@ -0,0 +1,13 @@ +Fix CMake install path. Noticed as part of the SSP patch (which we handle in +the ebuild instead). + +https://git.alpinelinux.org/aports/tree/main/graphite2/cmake.patch?h=3.15-stable +https://bugs.gentoo.org/829690 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -156,4 +152,4 @@ endif() + + + install(TARGETS graphite2 EXPORT graphite2 LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX} PUBLIC_HEADER DESTINATION include/graphite2 RUNTIME DESTINATION bin) +-install(EXPORT graphite2 DESTINATION share/graphite2 NAMESPACE gr2_) ++install(EXPORT graphite2 DESTINATION lib${LIB_SUFFIX}/cmake/graphite2 NAMESPACE gr2_) diff --git a/media-gfx/graphite2/files/graphite2-1.35-fix-gcc-linking.patch b/media-gfx/graphite2/files/graphite2-1.35-fix-gcc-linking.patch new file mode 100644 index 000000000000..b162ca9aa6f9 --- /dev/null +++ b/media-gfx/graphite2/files/graphite2-1.35-fix-gcc-linking.patch @@ -0,0 +1,18 @@ +https://src.fedoraproject.org/rpms/graphite2/raw/41fb7c104c8f9293254abaa91bbda1daafb458cd/f/graphite-arm-nodefaultlibs.patch +https://bugs.gentoo.org/829690 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -120,11 +120,7 @@ + if (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*") + target_link_libraries(graphite2 kernel32 msvcr90 mingw32 gcc user32) + else (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*") +- if (GRAPHITE2_SANITIZERS) +- target_link_libraries(graphite2 c gcc_s) +- else () +- target_link_libraries(graphite2 c gcc) +- endif () ++ target_link_libraries(graphite2 c gcc_s) + endif() + include(Graphite) + if (BUILD_SHARED_LIBS) + diff --git a/media-gfx/graphite2/graphite2-1.3.14.ebuild b/media-gfx/graphite2/graphite2-1.3.14-r1.ebuild similarity index 84% rename from media-gfx/graphite2/graphite2-1.3.14.ebuild rename to media-gfx/graphite2/graphite2-1.3.14-r1.ebuild index 3f1a3d4d8c22..86136261342d 100644 --- a/media-gfx/graphite2/graphite2-1.3.14.ebuild +++ b/media-gfx/graphite2/graphite2-1.3.14-r1.ebuild @@ -6,7 +6,7 @@ EAPI=7 CMAKE_ECLASS=cmake GENTOO_DEPEND_ON_PERL="no" PYTHON_COMPAT=( python3_{7,8,9} ) -inherit perl-module python-any-r1 cmake-multilib +inherit perl-module python-any-r1 cmake-multilib flag-o-matic DESCRIPTION="Library providing rendering capabilities for complex non-Roman writing systems" HOMEPAGE="https://scripts.sil.org/cms/scripts/page.php?site_id=projects&item_id=graphite_home" @@ -20,7 +20,7 @@ RESTRICT="!test? ( test )" RDEPEND="perl? ( dev-lang/perl:= )" DEPEND=" - perl? ( dev-lang/perl ) + perl? ( dev-lang/perl:= ) test? ( dev-libs/glib:2 ) " BDEPEND=" @@ -37,7 +37,11 @@ BDEPEND=" ) " -PATCHES=( "${FILESDIR}/${PN}-1.3.5-includes-libs-perl.patch" ) +PATCHES=( + "${FILESDIR}/${PN}-1.3.5-includes-libs-perl.patch" + "${FILESDIR}/${PN}-1.35-fix-gcc-linking.patch" + "${FILESDIR}/${PN}-1.3.14-fix-cmake-files-libdir.patch" +) pkg_setup() { use perl && perl_set_version @@ -45,7 +49,7 @@ pkg_setup() { } python_check_deps() { - has_version "dev-python/fonttools[${PYTHON_USEDEP}]" + has_version -b "dev-python/fonttools[${PYTHON_USEDEP}]" } src_prepare() { @@ -67,6 +71,11 @@ multilib_src_configure() { -DGRAPHITE2_NSEGCACHE:BOOL=ON ) + if use elibc_musl ; then + # bug #829690 + sed -i -e 's:${GRAPHITE_LINK_FLAGS}:-lssp_shared &:' "${S}"/src/CMakeLists.txt || die + fi + cmake_src_configure # fix perl linking