1 |
commit: 6c106f70850276424fe10db3a9d4acd3ddb2122e |
2 |
Author: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
3 |
AuthorDate: Tue Feb 7 13:32:14 2012 +0000 |
4 |
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
5 |
CommitDate: Tue Feb 7 13:32:14 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=6c106f70 |
7 |
|
8 |
added the addpredict() trick from tablet-bin*.ebuild to make the ACCESS DENIED messages quiet, bugs #402507 (learned from bug #387227) |
9 |
|
10 |
(Portage version: 2.1.10.45/git/Linux x86_64, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
sci-biology/OBO-Edit/ChangeLog | 5 +++++ |
14 |
sci-biology/OBO-Edit/OBO-Edit-2.1.1.6.ebuild | 14 +++++++++++++- |
15 |
2 files changed, 18 insertions(+), 1 deletions(-) |
16 |
|
17 |
diff --git a/sci-biology/OBO-Edit/ChangeLog b/sci-biology/OBO-Edit/ChangeLog |
18 |
index cc089b2..79c451d 100644 |
19 |
--- a/sci-biology/OBO-Edit/ChangeLog |
20 |
+++ b/sci-biology/OBO-Edit/ChangeLog |
21 |
@@ -4,6 +4,11 @@ |
22 |
|
23 |
07 Feb 2012; Martin Mokrejs <mmokrejs@×××××××××××××××.cz> |
24 |
OBO-Edit-2.1.1.6.ebuild: |
25 |
+ added the addpredict() trick from tablet-bin*.ebuild to make the ACCESS |
26 |
+ DENIED messages quiet, bugs #402507 (learned from bug #387227) |
27 |
+ |
28 |
+ 07 Feb 2012; Martin Mokrejs <mmokrejs@×××××××××××××××.cz> |
29 |
+ OBO-Edit-2.1.1.6.ebuild: |
30 |
sci-biology/OBO-Edit: more attempts to get rid of sandbox ACCESS VIOLATION |
31 |
SUMMARY errors |
32 |
|
33 |
|
34 |
diff --git a/sci-biology/OBO-Edit/OBO-Edit-2.1.1.6.ebuild b/sci-biology/OBO-Edit/OBO-Edit-2.1.1.6.ebuild |
35 |
index 0cdb743..356f1bf 100644 |
36 |
--- a/sci-biology/OBO-Edit/OBO-Edit-2.1.1.6.ebuild |
37 |
+++ b/sci-biology/OBO-Edit/OBO-Edit-2.1.1.6.ebuild |
38 |
@@ -26,6 +26,16 @@ RDEPEND="virtual/jre" |
39 |
|
40 |
S="${WORKDIR}" |
41 |
|
42 |
+pkg_setup() { |
43 |
+ einfo "Fixing java access violations ..." |
44 |
+ # learned from bug #387227 |
45 |
+ |
46 |
+ # opened a bug #402507 to get this .systemPrefs directory pre-created for everybody |
47 |
+ addpredict /opt/icedtea-bin-7.2.0/jre/.systemPrefs |
48 |
+ addpredict /usr/local/bin/OBO-Edit |
49 |
+ |
50 |
+} |
51 |
+ |
52 |
src_prepare(){ |
53 |
mkdir -p "${D}"/opt/OBO-Edit2/.install4j || die "Cannot pre-create "${D}"/opt/OBO-Edit2/.install4j/" |
54 |
mkdir -p "${D}"/usr/bin |
55 |
@@ -40,7 +50,9 @@ src_prepare(){ |
56 |
# for user root install4j writes into /opt/icedtea-bin-7.2.0/jre/.systemPrefs or whatever it |
57 |
# found via JAVA_HOME or similar variables |
58 |
# for other users it writes into $HOME/.java/.userPrefs/ |
59 |
- sed -e "s@/bin/java\" -Dinstall4j.jvmDir=\"\$app_java_home\"@/bin/java\" -Duser.home="${TMPDIR}" -Dinstall4j.jvmDir="${TMPDIR}" -Dsys.symlinkDir="${D}"usr/bin@" -i "${DISTDIR}"/"${PN}"_unix_install4j-"${PV}".sh || die "failed to set userHome and jvmDir where JAVA .systemPrefs can be found" |
60 |
+ |
61 |
+ # trick setting -Djava.util.prefs.systemRoot="${TMPDIR}" does not work |
62 |
+ sed -e "s@/bin/java\" -Dinstall4j.jvmDir=\"\$app_java_home\"@/bin/java\" -Duser.home="${TMPDIR}" -Dinstall4j.jvmDir="${TMPDIR}" -Dsys.symlinkDir="${D}"usr/bin -Djava.util.prefs.systemRoot="${TMPDIR}"@" -i "${DISTDIR}"/"${PN}"_unix_install4j-"${PV}".sh || die "failed to set userHome and jvmDir where JAVA .systemPrefs can be found" |
63 |
|
64 |
chmod u+rx "${DISTDIR}"/"${PN}"_unix_install4j-"${PV}".sh |
65 |
grep Duser "${DISTDIR}"/"${PN}"_unix_install4j-"${PV}".sh |