commit:     240c051971ed9f661743a0d5e5a98ea63189e0e2
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 20 16:09:22 2020 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Sep 20 16:09:59 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=240c0519

sci-mathematics/mathematica: Fix avahi-related sandbox error

Patch by vowstar <vowstar <AT> gmail.com>

Closese: https://bugs.gentoo.org/739130
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild 
b/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild
index b15d9ff6788..20aaab87c6f 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() {

Reply via email to