Code: Select all
>>> Verifying ebuild manifests
!!! Digest verification failed:
!!! /var/lib/layman/java/dev-java/jopt-simple/ChangeLog
!!! Reason: Filesize does not match recorded size
!!! Got: 917
!!! Expected: 759
!!! Digest verification failed:
!!! /var/lib/layman/java/dev-java/gson/ChangeLog
!!! Reason: Filesize does not match recorded size
!!! Got: 605
!!! Expected: 462
!!! Digest verification failed:
!!! /var/lib/layman/java/dev-java/lwjgl/ChangeLog
!!! Reason: Filesize does not match recorded size
!!! Got: 2864
!!! Expected: 2704
!!! Digest verification failed:
!!! /var/lib/layman/java/games-action/minecraft/ChangeLog
!!! Reason: Filesize does not match recorded size
!!! Got: 5341
!!! Expected: 5236Thanks for reporting that. With the switch to git, I'm now committing using repoman and I'm signing the manifests but maybe I tripped up somewhere. I'm more than familiar with git and repoman is supposed to prevent things like this so I'm not sure what happened but I'll double-check before pushing next time.Yminus wrote:I have synced the java overlay today a got these digest verification errors:
Looks like it was a repoman bug. The problem went away after updating Portage.Chewi wrote:Thanks for reporting that. With the switch to git, I'm now committing using repoman and I'm signing the manifests but maybe I tripped up somewhere. I'm more than familiar with git and repoman is supposed to prevent things like this so I'm not sure what happened but I'll double-check before pushing next time.
It looks like the dev-java/asm bump may take a little longer so I've pushed out an update to the Python script anyway. For now, it just uses the upstream bundled version of asm. I've tried Minecraft 1.2.5 and even 1.0.0 and they both seem to work. Not that anyone cares about those old versions!Chewi wrote:I was going to announce the new ebuild but just after pushing it, I realised the new Python script didn't work with the older versions of the game. I've fixed that now but I'm waiting for a bump of dev-java/asm in the main tree before I push it up. As things stand, the new ebuild should work with the 1.6.2.
Code: Select all
* Package: games-action/minecraft-1.2.1
* Repository: java
* Maintainer: chewi at aura-online.co.uk java@gentoo.org
* USE: amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_2 userland_GNU
* FEATURES: preserve-libs sandbox userpriv usersandbox
* Using: oracle-jdk-bin-1.7
>>> Unpacking source...
zip I/O error: Permission denied
zip error: Temporary file failure (/var/tmp/portage/games-action/minecraft-1.2.1/distdir/zizawCyL)
* ERROR: games-action/minecraft-1.2.1 failed (unpack phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 93: Called src_unpack
* environment, line 5313: Called die
* The specific snippet of code:
* zip -d "${DISTDIR}/${A}" -O "${PN}.jar" com/\* joptsimple/\* || die
*
* If you need support, post the output of `emerge --info '=games-action/minecraft-1.2.1'`,
* the complete build log and the output of `emerge -pqv '=games-action/minecraft-1.2.1'`.
* This ebuild is from an overlay named 'java': '/var/lib/layman/java/'
!!! When you file a bug report, please include the following information:
GENTOO_VM=oracle-jdk-bin-1.7 CLASSPATH="" JAVA_HOME="/opt/oracle-jdk-bin-1.7.0.25"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER=""
and of course, the output of emerge --info =minecraft-1.2.1
* The complete build log is located at '/var/tmp/portage/games-action/minecraft-1.2.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-action/minecraft-1.2.1/temp/environment'.
* Working directory: '/var/tmp/portage/games-action/minecraft-1.2.1/work'
* S: '/var/tmp/portage/games-action/minecraft-1.2.1/work'Code: Select all
ls -al /var/tmp/portage/games-action/minecraft-1.2.1/distdir/
total 0
drwxr-xr-x 2 root portage 60 3. Sep 00:09 .
drwxrwxr-x 6 portage portage 200 3. Sep 00:09 ..
lrwxrwxrwx 1 root root 42 3. Sep 00:09 minecraft-1.2.1.jar -> /usr/portage/distfiles/minecraft-1.2.1.jarCode: Select all
ls -al /var/tmp/portage/games-action/minecraft-1.2.1/
total 0
drwxrwxr-x 6 portage portage 200 3. Sep 00:22 .
drwxrwxr-x 3 portage portage 60 3. Sep 00:22 ..
-rw-r--r-- 1 portage portage 0 3. Sep 00:22 .die_hooks
prwxrwx--- 1 root portage 0 3. Sep 00:22 .ipc_in
prwxrwx--- 1 root portage 0 3. Sep 00:22 .ipc_out
-rw-r--r-- 1 root root 0 3. Sep 00:21 .setuped
drwxr-xr-x 2 root portage 60 3. Sep 00:21 distdir
drwxrwxr-x 2 portage portage 40 3. Sep 00:21 homedir
drwxrwxr-x 3 portage portage 140 3. Sep 00:21 temp
drwx------ 2 portage portage 60 3. Sep 00:22 workI was about to post a link to prove it and then realised I hadn't done a push. Could have sworn I did. Note to self: Don't rush changes when you're half way out the door on your way to work.Yminus wrote:With games-action/minecraft-1.2.1-r1 I still get the same error as reported above. Did you commit the fix?
Code: Select all
Client> Traceback (most recent call last):
Client> File "/usr/games/bin/minecraft-gentoo-python2.7", line 106, in <module>
Client> manager = EnvironmentManager(os.getenv("ROOT", ""), os.getenv("EPREFIX", ""))
Client> TypeError: __call__() takes exactly 1 argument (3 given)
Sep 03, 2013 10:59:56 PM net.minecraft.launcher.process.ProcessMonitorThread run
SEVERE: null
java.io.IOException: Stream closed
at java.io.BufferedReader.ensureOpen(BufferedReader.java:115)
at java.io.BufferedReader.readLine(BufferedReader.java:310)
at java.io.BufferedReader.readLine(BufferedReader.java:382)
at net.minecraft.launcher.process.ProcessMonitorThread.run(ProcessMonitorThread.java:26)
Game ended with bad state (exit code 1)Thanks, that log was very helpful. It's almost certainly because you need dev-java/java-config-2.2.0. Can you update that and try again? I'll update the ebuild accordingly if that works.Yminus wrote:I followed the instructions after emerging and tried to start the game, but it crashed. Here is the relevant part of the log:
Code: Select all
WARNING: One or more updates have been skipped due to a dependency conflict:
dev-java/java-config:2
(dev-java/java-config-2.2.0::gentoo, ebuild scheduled for merge) conflicts with
<dev-java/java-config-2.2 required by (dev-java/icedtea-bin-6.1.12.6::gentoo, installed)
(dev-java/java-config-2.2.0::gentoo, ebuild scheduled for merge) conflicts with
<dev-java/java-config-2.2 required by (dev-java/oracle-jdk-bin-1.7.0.25::gentoo, installed)Code: Select all
WARNING: One or more updates have been skipped due to a dependency conflict:
dev-java/java-config:2
(dev-java/java-config-2.2.0::gentoo, ebuild scheduled for merge) conflicts with
<dev-java/java-config-2.2 required by (dev-java/icedtea-bin-7.2.4.1::gentoo, ebuild scheduled for merge)It's not obvious but looking at java-vm-2.eclass, it seems the only thing blocking you from using later versions is the fact that you have eselect-java installed. Uninstall that and you should be able to update.Yminus wrote:Seems like dev-java/java-config-2.2 cannot be emerged with current java environments?.
eselect-java is not installed:Chewi wrote:It's not obvious but looking at java-vm-2.eclass, it seems the only thing blocking you from using later versions is the fact that you have eselect-java installed.
Code: Select all
eix eselect-java
* app-admin/eselect-java
Available versions: ~0.1.0 ~0.1.0[1] **9999[1]
Homepage: http://www.gentoo.org/proj/en/java/
Description: A set of eselect modules for Java
[1] "java" /var/lib/layman/javaCode: Select all
grep "<dev-java/java-config-2.2" --exclude-dir=metadata -r /usr/portage/
/usr/portage/sys-apps/baselayout-java/baselayout-java-0.1.0.ebuild:RDEPEND="!<dev-java/java-config-2.2"
/usr/portage/app-admin/eselect-java/eselect-java-0.1.0.ebuild: !<dev-java/java-config-2.2
/usr/portage/eclass/java-vm-2.eclass: || ( app-admin/eselect-java <dev-java/java-config-2.2 )"Code: Select all
egrep "inherit .* java-vm-2" --exclude-dir=metadata -r /usr/portage/
/usr/portage/dev-java/sun-jdk/sun-jdk-1.6.0.43.ebuild:inherit eutils java-vm-2 prefix versionator
/usr/portage/dev-java/sun-jdk/sun-jdk-1.6.0.45.ebuild:inherit eutils java-vm-2 prefix versionator
/usr/portage/dev-java/icedtea-web/icedtea-web-1.3.2-r7.ebuild:inherit autotools eutils java-pkg-2 java-vm-2
/usr/portage/dev-java/icedtea-web/icedtea-web-1.3.1.ebuild:inherit autotools eutils java-pkg-2 java-vm-2
/usr/portage/dev-java/icedtea-web/icedtea-web-1.3.2.ebuild:inherit autotools eutils java-pkg-2 java-vm-2
/usr/portage/dev-java/icedtea-web/icedtea-web-1.3.1-r7.ebuild:inherit autotools eutils java-pkg-2 java-vm-2
/usr/portage/dev-java/cacao/cacao-0.99.4.ebuild:inherit autotools eutils flag-o-matic java-pkg-2 java-vm-2
/usr/portage/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.7.0.25.ebuild:inherit eutils java-vm-2 prefix versionator
/usr/portage/dev-java/icedtea/icedtea-7.2.3.9.ebuild:inherit java-pkg-2 java-vm-2 pax-utils prefix versionator virtualx flag-o-matic
/usr/portage/dev-java/icedtea/icedtea-6.1.12.5.ebuild:inherit java-pkg-2 java-vm-2 pax-utils prefix versionator virtualx
/usr/portage/dev-java/icedtea/icedtea-7.2.4.1.ebuild:inherit check-reqs java-pkg-2 java-vm-2 pax-utils prefix versionator virtualx flag-o-matic
/usr/portage/dev-java/icedtea/icedtea-7.2.3.8.ebuild:inherit java-pkg-2 java-vm-2 pax-utils prefix versionator virtualx flag-o-matic
/usr/portage/dev-java/icedtea/icedtea-6.1.12.4.ebuild:inherit java-pkg-2 java-vm-2 pax-utils prefix versionator virtualx
/usr/portage/dev-java/icedtea/icedtea-6.1.12.6.ebuild:inherit java-pkg-2 java-vm-2 pax-utils prefix versionator virtualx
/usr/portage/dev-java/jamvm/jamvm-1.5.4-r1.ebuild:inherit eutils flag-o-matic multilib java-vm-2 autotools
/usr/portage/dev-java/jamvm/jamvm-1.5.4-r2.ebuild:inherit eutils flag-o-matic multilib java-vm-2 autotoolsThank you for this hint, but afaik java overlay packages are masked by default and on my system only those packages are unmasked which are really needed as dependency (e.g. for minecraft or dev-util/eclipse-sdk-bin). Anyway, I tried to emerge ~sys-apps/baselayout-java-0.1.0::gentoo ~java-config-2.2.0::gentoo as well as ~sys-apps/baselayout-java-0.1.0::java ~java-config-2.2.0::java, both with the same result:vootey wrote:On my system the java-overlay is masked except the packages used by minecraft.
Code: Select all
emerge -pv1 ~sys-apps/baselayout-java-0.1.0::gentoo ~java-config-2.2.0::gentoo
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ~] sys-apps/baselayout-java-0.1.0 71 kB
[ebuild U ~] dev-java/java-config-2.2.0:2 [2.1.12-r1:2] PYTHON_TARGETS="python2_7 python3_2 -python2_6 (-python3_1) -python3_3" 51 kB
[blocks b ] <dev-java/java-config-2.2 ("<dev-java/java-config-2.2" is blocking sys-apps/baselayout-java-0.1.0)
Total: 2 packages (1 upgrade, 1 new), Size of downloads: 122 kB
Conflict: 1 blockCode: Select all
emerge -pv1 ~java-config-2.2.0::gentoo
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ~] sys-apps/baselayout-java-0.1.0::java 71 kB
[ebuild U ~] dev-java/java-config-2.2.0:2 [2.1.12-r1:2] PYTHON_TARGETS="python2_7 python3_2 -python2_6 (-python3_1) -python3_3" 51 kB
[blocks b ] <dev-java/java-config-2.2 ("<dev-java/java-config-2.2" is blocking sys-apps/baselayout-java-0.1.0)
Total: 2 packages (1 upgrade, 1 new), Size of downloads: 122 kB
Conflict: 1 blockRight, that did the trick.Chewi wrote:You can't resolve it without completely uninstalling java-config first.
Code: Select all
Running minecraft-gentoo -Xmx1G -Djava.library.path=~/.minecraft/versions/1.6.2/1.6.2-natives-25245724478697 -cp ~/.minecraft/libraries/net/sf/jopt-simple/jopt-simple/4.5/jopt-simple-4.5.jar:~/.minecraft/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar:~/.minecraft/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar:~/.minecraft/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar:~/.minecraft/libraries/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar:~/.minecraft/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar:~/.minecraft/libraries/argo/argo/2.25_fixed/argo-2.25_fixed.jar:~/.minecraft/libraries/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar:~/.minecraft/libraries/com/google/guava/guava/14.0/guava-14.0.jar:~/.minecraft/libraries/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar:~/.minecraft/libraries/commons-io/commons-io/2.4/commons-io-2.4.jar:~/.minecraft/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar:~/.minecraft/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar:~/.minecraft/libraries/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar:~/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl/2.9.0/lwjgl-2.9.0.jar:~/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.0/lwjgl_util-2.9.0.jar:~/.minecraft/versions/1.6.2/1.6.2.jar net.minecraft.client.main.Main --username --session token: --version 1.6.2 --gameDir ~/.minecraft --assetsDir ~/.minecraft/assets
Client> java -Djava.library.path=/usr/lib64/lwjgl-2.9:/usr/lib64/jinput:~/.minecraft/versions/1.6.2/1.6.2-natives-25245724478697 -classpath /usr/share/jopt-simple/lib/jopt-simple.jar:/usr/share/paulscode-codecjorbis/lib/paulscode-codecjorbis.jar:/usr/share/jorbis/lib/jorbis.jar:/usr/share/paulscode-codecwav/lib/paulscode-codecwav.jar:/usr/share/paulscode-libraryjavasound/lib/paulscode-libraryjavasound.jar:/usr/share/paulscode-librarylwjglopenal/lib/paulscode-librarylwjglopenal.jar:/usr/share/paulscode-soundsystem/lib/paulscode-soundsystem.jar:~/.minecraft/libraries/argo/argo/2.25_fixed/argo-2.25_fixed.jar:/usr/share/bcprov/lib/bcprov.jar:/usr/share/guava-14/lib/guava.jar:/usr/share/commons-lang-3.1/lib/commons-lang.jar:/usr/share/commons-io-1/lib/commons-io.jar:/usr/share/jinput/lib/jinput.jar:/usr/share/jutils/lib/jutils.jar:/usr/share/gson-2.2.2/lib/gson.jar:/usr/share/lwjgl-2.9/lib/lwjgl.jar:/usr/share/lwjgl-2.9/lib/lwjgl_util.jar:~/.minecraft/versions/1.6.2/1.6.2.jar -Xmx1G net.minecraft.client.main.Main --gameDir ~/.minecraft --version 1.6.2 --username --session token: --assetsDir ~/.minecraft/assets
Client> 2013-09-04 23:19:38 [CLIENT] [INFO] Setting user:
Client> 2013-09-04 23:19:38 [CLIENT] [INFO] (Session ID is token:
Client> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/io/Charsets
Client> at bu.<init>(SourceFile:26)
Client> at bu.<clinit>(SourceFile:19)
Client> at bt.<clinit>(SourceFile:7)
Client> at yb.v(SourceFile:495)
Client> at kz.a(SourceFile:139)
Client> at kz.c(SourceFile:85)
Client> at yb.<clinit>(SourceFile:310)
Client> at aqw.<clinit>(SourceFile:362)
Client> at kz.a(SourceFile:122)
Client> at kz.<clinit>(SourceFile:55)
Client> at ats.<init>(SourceFile:201)
Client> at net.minecraft.client.main.Main.main(SourceFile:83)
Client> Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.Charsets
Client> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
Client> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
Client> at java.security.AccessController.doPrivileged(Native Method)
Client> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
Client> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
Client> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
Client> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Client> ... 12 more
Game ended with bad state (exit code 1)
Ignoring visibility rule and showing launcher due to a game crash
Deleting ~/.minecraft/versions/1.6.2/1.6.2-natives-25245724478697Code: Select all
Client> 2013-09-05 00:02:24 [SERVER] [INFO] Starting integrated minecraft server version 1.6.2
Client> 2013-09-05 00:02:24 [SERVER] [INFO] Generating keypair
Client> java.lang.NoClassDefFoundError: org/bouncycastle/crypto/io/CipherOutputStream
Client> at bkw.d(SourceFile:104)
Client> at net.minecraft.server.MinecraftServer.run(SourceFile:314)
Client> at hh.run(SourceFile:582)
Client> Caused by: java.lang.ClassNotFoundException: org.bouncycastle.crypto.io.CipherOutputStream
Client> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
Client> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
Client> at java.security.AccessController.doPrivileged(Native Method)
Client> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
Client> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
Client> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
Client> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Client> ... 3 more
Client> 2013-09-05 00:02:24 [SERVER] [SEVERE] Encountered an unexpected exception NoClassDefFoundError
Client> java.lang.NoClassDefFoundError: org/bouncycastle/crypto/io/CipherOutputStream
Client> at bkw.d(SourceFile:104)
Client> at net.minecraft.server.MinecraftServer.run(SourceFile:314)
Client> at hh.run(SourceFile:582)
Client> Caused by: java.lang.ClassNotFoundException: org.bouncycastle.crypto.io.CipherOutputStream
Client> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
Client> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
Client> at java.security.AccessController.doPrivileged(Native Method)
Client> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
Client> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
Client> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
Client> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Client> ... 3 moreCode: Select all
emerge -avc
...
>>> These are the packages that would be unmerged:
dev-java/bcprov
selected: 1.40-r1
protected: none
omitted: 1.38-r2 1.38-r3
dev-java/bcprov
selected: 1.45-r1
protected: none
omitted: 1.38-r2 1.38-r3Code: Select all
emerge -a --update --newuse --deep --with-bdeps=y @world
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild NS ] dev-java/bcprov-1.38-r3 [1.40-r1] USE="-doc -source"
[ebuild NS ] dev-java/bcprov-1.38-r2 [1.40-r1] USE="-doc -source"Code: Select all
equery depends dev-java/bcprov
* These packages depend on dev-java/bcprov:
dev-java/bcmail-1.38-r2 (~dev-java/bcprov-1.38:0)
dev-java/pdfbox-0.7.3-r3 (dev-java/bcprov:1.38)
games-action/minecraft-1.2.1-r1 (dev-java/bcprov:0)Code: Select all
equery depends dev-java/pdfbox
* These packages depend on dev-java/pdfbox:
dev-tex/pdfannotextractor-0.1l (dev-java/pdfbox)
equery depends dev-tex/pdfannotextractor
* These packages depend on dev-tex/pdfannotextractor:
app-text/texlive-2012 (pdfannotextractor ? dev-tex/pdfannotextractor)