summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/imagemagick/imagemagick-6.9.10.10-r1.ebuild')
-rw-r--r--media-gfx/imagemagick/imagemagick-6.9.10.10-r1.ebuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/media-gfx/imagemagick/imagemagick-6.9.10.10-r1.ebuild b/media-gfx/imagemagick/imagemagick-6.9.10.10-r1.ebuild
index 1d686b48b4d3..660eaf750203 100644
--- a/media-gfx/imagemagick/imagemagick-6.9.10.10-r1.ebuild
+++ b/media-gfx/imagemagick/imagemagick-6.9.10.10-r1.ebuild
@@ -69,6 +69,13 @@ S="${WORKDIR}/${MY_P}"
PATCHES=( "${FILESDIR}"/policy-hardening.patch )
src_prepare() {
+ # Install default (unrestricted) policy in $HOME for test suite #664238
+ local _im_local_config_home="${HOME}/.config/ImageMagick"
+ mkdir -p "${_im_local_config_home}" || \
+ die "Failed to create IM config dir in '${_im_local_config_home}'"
+ cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
+ die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
+
local mesa_cards ati_cards nvidia_cards render_cards
default