diff options
author | Mike Gilbert <floppym@gentoo.org> | 2017-12-09 11:56:46 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2017-12-09 11:57:22 -0500 |
commit | 3f532db1541c8f454b1ecdfabf534785d7c6d91f (patch) | |
tree | b05b42b55677ce872dee7321ee1aeaba3b0b7544 | |
parent | media-video/vlc: 2.2*: Drop USE=qt4 (diff) | |
download | gentoo-3f532db1541c8f454b1ecdfabf534785d7c6d91f.tar.gz gentoo-3f532db1541c8f454b1ecdfabf534785d7c6d91f.tar.bz2 gentoo-3f532db1541c8f454b1ecdfabf534785d7c6d91f.zip |
media-gfx/fontforge: fix segfault with X disabled
Closes: https://bugs.gentoo.org/638342
Package-Manager: Portage-2.3.15, Repoman-2.3.6_p7
-rw-r--r-- | media-gfx/fontforge/Manifest | 4 | ||||
-rw-r--r-- | media-gfx/fontforge/files/20170731-startnoui-FindOrMakeEncoding.patch | 22 | ||||
-rw-r--r-- | media-gfx/fontforge/fontforge-20170731-r1.ebuild (renamed from media-gfx/fontforge/fontforge-20170731.ebuild) | 4 |
3 files changed, 28 insertions, 2 deletions
diff --git a/media-gfx/fontforge/Manifest b/media-gfx/fontforge/Manifest index 49db4bd80482..67c9be75d680 100644 --- a/media-gfx/fontforge/Manifest +++ b/media-gfx/fontforge/Manifest @@ -1,2 +1,2 @@ -DIST fontforge-dist-20160404.tar.gz 20906256 SHA256 6c73a556030d985e166974e5d6025255290874c2d6bb349c9930b03f17b45bcd SHA512 be94f04881b12ed3b1a34d0d7cc9149321db17d51458f135b2683ea600401e4fa55647ced4b4e014555ba1c900a684b9d5d6f2e2812ce03c432d23ca72f5c363 WHIRLPOOL 2313c7775da7f7a47ef8bae3cbef897e8b0996c8f74db099562e0a3636984e8a9a55ca5f2ca11b205a7b1aff76e7fe4e7601f15b7951147353403da0e41d692f -DIST fontforge-dist-20170731.tar.xz 13985256 SHA256 840adefbedd1717e6b70b33ad1e7f2b116678fa6a3d52d45316793b9fd808822 SHA512 26f7a40714460716a24dd0229fdb027f3766bcc48db64b8993436ddcb6277898f9f3b67ad4fc0be515b2b38e01370d1c7d9ee3c6ece1be862b7d8c9882411f11 WHIRLPOOL 6d6e2b6322043bcd8822fb1e64a98b969ff1bba02d63442cf0646b737576ead76961a30cf146447afa0f72a2e9a30a05e6dad5f9060a00cd35e5cc2e15097889 +DIST fontforge-dist-20160404.tar.gz 20906256 BLAKE2B 11f9a54de2cada7e243349ec0ddeb3f2025f12a9e9323b2bea437009ccd5e34d27ba41752752434c16b1a0b809c9878c23cd074bb59b590b427c599d575f0c45 SHA512 be94f04881b12ed3b1a34d0d7cc9149321db17d51458f135b2683ea600401e4fa55647ced4b4e014555ba1c900a684b9d5d6f2e2812ce03c432d23ca72f5c363 +DIST fontforge-dist-20170731.tar.xz 13985256 BLAKE2B 7bc49a3b7747de419e4fafb445062873cf9bf56aa73fd7499509b787a1c0fd6c47b0b5d7bfeb2a69d9237f9f66f989af968b0d00e9d5e57030906394f042f29c SHA512 26f7a40714460716a24dd0229fdb027f3766bcc48db64b8993436ddcb6277898f9f3b67ad4fc0be515b2b38e01370d1c7d9ee3c6ece1be862b7d8c9882411f11 diff --git a/media-gfx/fontforge/files/20170731-startnoui-FindOrMakeEncoding.patch b/media-gfx/fontforge/files/20170731-startnoui-FindOrMakeEncoding.patch new file mode 100644 index 000000000000..30731b904f25 --- /dev/null +++ b/media-gfx/fontforge/files/20170731-startnoui-FindOrMakeEncoding.patch @@ -0,0 +1,22 @@ +From 72572a68d306712c040ca741f0655b190326a509 Mon Sep 17 00:00:00 2001 +From: Jeremy Tan <jtanx@outlook.com> +Date: Sat, 9 Sep 2017 08:03:57 +0800 +Subject: [PATCH] startnoui.c: Include header that defines FindOrMakeEncoding + +Failure to include this was causing an implicit pointer to int conversion +which results in an invalid pointer address on 64-bit builds. + +Fixes #3145. + +diff --git a/fontforgeexe/startnoui.c b/fontforgeexe/startnoui.c +index ab8388539..7a188b7a2 100644 +--- a/fontforgeexe/startnoui.c ++++ b/fontforgeexe/startnoui.c +@@ -27,6 +27,7 @@ + #include "fontforgevw.h" + #include "scripting.h" + #include "start.h" ++#include "encoding.h" + + #ifndef _NO_LIBUNICODENAMES + #include <libunicodenames.h> /* need to open a database when we start */ diff --git a/media-gfx/fontforge/fontforge-20170731.ebuild b/media-gfx/fontforge/fontforge-20170731-r1.ebuild index ae257f14831e..7f92af08a57f 100644 --- a/media-gfx/fontforge/fontforge-20170731.ebuild +++ b/media-gfx/fontforge/fontforge-20170731-r1.ebuild @@ -62,6 +62,10 @@ DEPEND="${RDEPEND} S="${WORKDIR}/fontforge-2.0.${PV}" +PATCHES=( + "${FILESDIR}"/20170731-startnoui-FindOrMakeEncoding.patch +) + pkg_setup() { use python && python-single-r1_pkg_setup } |