From 240c051971ed9f661743a0d5e5a98ea63189e0e2 Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Sun, 20 Sep 2020 19:09:22 +0300 Subject: sci-mathematics/mathematica: Fix avahi-related sandbox error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by vowstar Closese: https://bugs.gentoo.org/739130 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Andreas K. Hüttel --- sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'sci-mathematics') diff --git a/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild b/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild index b15d9ff67885..20aaab87c6fa 100644 --- a/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild +++ b/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild @@ -36,7 +36,20 @@ QA_PREBUILT="opt/*" S=${WORKDIR} src_unpack() { - /bin/sh "${DISTDIR}/${A}" --nox11 --confirm -- -auto "-targetdir=${S}/${M_TARGET}" "-execdir=${S}/opt/bin" || die + /bin/sh "${DISTDIR}/${A}" --nox11 --keep --target "${S}/unpack" -- "-help" || die +} + +src_prepare() { + default + + pushd "${S}/unpack" > /dev/null || die + + # fix ACCESS DENIED issue when installer check the avahi-daemon + sed -e "s:avahi-daemon -c:true:g" -i "Unix/Installer/MathInstaller" || die + + /bin/sh "Unix/Installer/MathInstaller" -auto "-targetdir=${S}/${M_TARGET}" "-execdir=${S}/opt/bin" || die + + popd > /dev/null || die } src_install() { -- cgit v1.2.3-65-gdbad