summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2023-06-09 16:41:16 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2023-06-09 16:41:37 +0200
commit1acdac076fe0168b2dc1ea9ed4340ba5ac3cdcb1 (patch)
treee26f2114b48c5b958a1bd09b875e288c17282123 /media-gfx/imagemagick/imagemagick-9999.ebuild
parentdev-python/reportlab: Bump to 4.0.4 (diff)
downloadgentoo-1acdac076fe0168b2dc1ea9ed4340ba5ac3cdcb1.tar.gz
gentoo-1acdac076fe0168b2dc1ea9ed4340ba5ac3cdcb1.tar.bz2
gentoo-1acdac076fe0168b2dc1ea9ed4340ba5ac3cdcb1.zip
media-gfx/imagemagick: Drop overreaching hardening
Closes: https://bugs.gentoo.org/716674 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'media-gfx/imagemagick/imagemagick-9999.ebuild')
-rw-r--r--media-gfx/imagemagick/imagemagick-9999.ebuild42
1 files changed, 0 insertions, 42 deletions
diff --git a/media-gfx/imagemagick/imagemagick-9999.ebuild b/media-gfx/imagemagick/imagemagick-9999.ebuild
index bb71c03ea1cb..7b351a60af4a 100644
--- a/media-gfx/imagemagick/imagemagick-9999.ebuild
+++ b/media-gfx/imagemagick/imagemagick-9999.ebuild
@@ -101,16 +101,6 @@ src_prepare() {
#elibtoolize # for Darwin modules
eautoreconf
- # Apply hardening, bug #664236
- cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
- sed -i -e '/^<policymap>$/ {
- r policy-hardening.snippet
- d
- }' \
- config/policy.xml || \
- die "Failed to apply hardening of policy.xml"
- einfo "policy.xml hardened"
-
# For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
local ati_cards mesa_cards nvidia_cards render_cards
shopt -s nullglob
@@ -247,35 +237,3 @@ src_install() {
insinto /usr/share/${PN}
doins config/*icm
}
-
-pkg_postinst() {
- local _show_policy_xml_notice=
-
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- # This is a new installation
- _show_policy_xml_notice=yes
- else
- local v
- for v in ${REPLACING_VERSIONS}; do
- if ! ver_test "${v}" -gt "7.0.8.10-r2"; then
- # This is an upgrade
- _show_policy_xml_notice=yes
-
- # Show this elog only once
- break
- fi
- done
- fi
-
- if [[ -n "${_show_policy_xml_notice}" ]]; then
- elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-7"
- elog "which will prevent the usage of the following coders by default:"
- elog ""
- elog " - PS"
- elog " - PS2"
- elog " - PS3"
- elog " - EPS"
- elog " - PDF"
- elog " - XPS"
- fi
-}