Summary: | dev-java/jmock-1.2.0: download issue due to new package structure after changing SRC_URI | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Joerg Neikes <j.m.neikes> |
Component: | [OLD] Java | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=550054 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
dev-java:jmock-1.2.0:20150827-112825.log
jmock-1.2.0-r1.ebuild.patch jmock-1.2.0-r1.ebuild.patch |
Description
Joerg Neikes
2015-08-27 11:37:07 UTC
Fails to Download: http://jmock.codehaus.org/dist/jmock-1.2.0-jars.zip Username/Password Authentication Failed. Fix: load from http://www.jmock.org/download.html http://www.jmock.org/downloads/jmock-1.2.0-jars.zip (http://www.jmock.org/downloads/jmock-1.2.0-javadoc.zip) Created attachment 410404 [details, diff]
jmock-1.2.0-r1.ebuild.patch
patch for download change. The checksum fails:
!!! Fetched file: jmock-1.2.0-jars.zip VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got: 153214
!!! Expected: 153318
Refetching... File renamed to '/usr/portage/distfiles/jmock-1.2.0-jars.zip._checksum_failure_.riLRLt'
So a
ebuild --force /usr/portage/dev-java/jmock/jmock-1.2.0-r1.ebuild digest
is needed.
Created attachment 410408 [details, diff]
jmock-1.2.0-r1.ebuild.patch
fixed with new package structure.
commit 401a84a (HEAD, master) Author: Patrice Clement <monsieurp@gentoo.org> Date: Thu Aug 27 13:31:40 2015 +0000 dev-java/jmock: Update HOMEPAGE and SRC_URI courtesy of Jeorg Neikes <xenoist@midlandgate.de>. Fixes bug 558908. Package-Manager: portage-2.2.18 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> Commited straight to stable since codehaus.org is down. Thanks for the heads up. We have a couple of ebuilds whose HOMEPAGE and SRC_URI links should (must?) be updated. Thanks for this fast respond and fix to upstream server. ;) The Package changed the size. So i got a error again. The Manifest must be fixed: >>> Downloading 'http://www.jmock.org/downloads/jmock-1.2.0-jars.zip' --2015-08-27 18:06:50-- http://www.jmock.org/downloads/jmock-1.2.0-jars.zip Resolving www.jmock.org (www.jmock.org)... 185.31.17.133 Connecting to www.jmock.org (www.jmock.org)|185.31.17.133|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 153214 (150K) [application/zip] Saving to: ‘/usr/portage/distfiles/jmock-1.2.0-jars.zip’ /usr/portage/distfi 100%[=====================>] 149,62K 584KB/s in 0,3s 2015-08-27 18:06:50 (584 KB/s) - ‘/usr/portage/distfiles/jmock-1.2.0-jars.zip’ saved [153214/153214] !!! Fetched file: jmock-1.2.0-jars.zip VERIFY FAILED! !!! Reason: Filesize does not match recorded size !!! Got: 153214 !!! Expected: 153318 Refetching... File renamed to '/usr/portage/distfiles/jmock-1.2.0-jars.zip._checksum_failure_.riLRLt' !!! Couldn't download 'jmock-1.2.0-jars.zip'. Aborting. * Fetch failed for 'dev-java/jmock-1.2.0', Log file: * '/var/log/portage/dev-java:jmock-1.2.0:20150827-160649.log' commit bbfbb43 (HEAD, origin/master, origin/HEAD, master) Author: Patrice Clement <monsieurp@gentoo.org> Date: Thu Aug 27 22:03:48 2015 +0000 dev-java/jmock: Regenerate Manifest file. Package-Manager: portage-2.2.18 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> Give it another try :) By the way update the package to r1. The content and the structure has changed. The settings from my patch are not in the ebuild: src_unpack() { unpack ${A} - unzip ${PN}-core-${PV}.jar -d src || die + unzip ${P}/${PN}-core-${PV}.jar -d src || die } java_prepare() { - rm *.jar || die + rm -rf ${P} || die find -name "*.class" -delete || die epatch "${FILESDIR}/1.1.0-junit-3.8.2.patch" Sebastian Pipping sping@gentoo.org said this is often not done by dev's. It's not your fault, because the builder of jmock should have changed the version if something of the package changed like in here. The old package seems not to have a own folder with the ${P} name. regards Joerg >>> Emerging (1 of 1) dev-java/jmock-1.2.0::gentoo * jmock-1.2.0-jars.zip SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * Using: icedtea-bin-7 >>> Unpacking source... >>> Unpacking jmock-1.2.0-jars.zip to /var/tmp/portage/dev-java/jmock-1.2.0/work unzip: cannot find or open jmock-core-1.2.0.jar, jmock-core-1.2.0.jar.zip or jmock-core-1.2.0.jar.ZIP. * ERROR: dev-java/jmock-1.2.0::gentoo failed (unpack phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_unpack * environment, line 3685: Called die * The specific snippet of code: * unzip "${PN}-core-${PV}.jar" -d src || die * * If you need support, post the output of `emerge --info '=dev-java/jmock-1.2.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-java/jmock-1.2.0::gentoo'`. !!! When you file a bug report, please include the following information: GENTOO_VM=icedtea-bin-7 CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-7.2.5.5" JAVACFLAGS="-source 1.6 -target 1.6" COMPILER="" and of course, the output of emerge --info =jmock-1.2.0 * The complete build log is located at '/var/log/portage/dev-java:jmock-1.2.0:20150828-081944.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-java/jmock-1.2.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-java/jmock-1.2.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-java/jmock-1.2.0/work' * S: '/var/tmp/portage/dev-java/jmock-1.2.0/work' >>> Failed to emerge dev-java/jmock-1.2.0, Log file: commit d612b5b (HEAD, master) Author: Patrice Clement <monsieurp@gentoo.org> Date: Fri Aug 28 10:46:32 2015 +0000 dev-java/jmock: Change the compilation logic. Fixes bug 558908. After yesterday's fix i.e. HOMEPAGE and SRC_URI pointing to new URLs, I wrongly assumed the package structure was the same, which, unfortunately, isn't the case. Package-Manager: portage-2.2.18 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> delete mode 100644 dev-java/jmock/files/1.1.0-build.xml.patch delete mode 100644 dev-java/jmock/files/1.1.0-junit-3.8.2.patch create mode 100644 dev-java/jmock/files/jmock-1.2.0-AbstractMo.patch create mode 100644 dev-java/jmock/jmock-1.2.0-r1.ebuild Give -r1 a try and let me know. If it does work (I have thoroughly tested it this time around), I will mark this package stable since the current stable version is broken. Thanks. Works now. Thank you again. Regards, Joerg |