Summary: | dev-java/jython-2.7.0-r2 AttributeError: 'NoneType' object has no attribute 'startswith' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jean-Claude Aciman <jcl.aciman> |
Component: | Current packages | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | ionen, jon, jstein, leonchik1976, lssndrbarbieri, rossi.f, sam, scott, treecleaner, valentin.ittvs |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/22895 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
all requested files
jython-2.7.0-r2.ebuild.patch |
Description
Jean-Claude Aciman
2020-12-07 09:34:36 UTC
Created attachment 677134 [details]
all requested files
Contents:
build.log
environment
emerge --info
Created attachment 682225 [details, diff]
jython-2.7.0-r2.ebuild.patch
I have applied the attached patch to the current ebuild in portage, the package now build successfully
During the install phase there is a warning /var/tmp/portage/dev-java/jython-2.7.0-r2/temp/jython: /usr/share/bashdb/bashdb-main.inc: No such file or directory /var/tmp/portage/dev-java/jython-2.7.0-r2/temp/jython: warning: cannot start debugger; debugging mode disabled but it seems it can be ignored, there is no need to depend on bashdb. It happens during call to "python_domodule epython.py" which calls python_optimize but eventually I can see the optimized file /usr/share/jython-2.7/Lib/site-packages/epython$py.class being generated I can confirm that I'm experiencing the same build failure on my machine, and additionally that the provide patch allows the package to build. *** Bug 770958 has been marked as a duplicate of this bug. *** Taking the liberty to re-open given this was never really fixed and the patch seems to help. Hi, I got exactly the same problem today and the patch don't work. It cannot be applied without error as follow: The text leading up to this was: -------------------------- |--- /usr/portage/dev-java/jython/jython-2.7.0-r2.ebuild 2021-01-09 17:04:20.798391252 +0100 |+++ /var/lib/layman/__mine__/dev-java/jython/jython-2.7.0-r2.ebuild 2021-01-10 12:26:24.341996198 +0100 -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored How to solve this issue? Please help! (In reply to Jean-Claude Aciman from comment #7) > I got exactly the same problem today and the patch don't work. It cannot be > applied without error as follow: Based on the output of patch you shared: There's a problem in the way you're using patch. Try format "patch path/to/target < /path/to/patch" or see "man patch" please. (In reply to Sebastian Pipping from comment #8) > (In reply to Jean-Claude Aciman from comment #7) > > I got exactly the same problem today and the patch don't work. It cannot be > > applied without error as follow: > > Based on the output of patch you shared: There's a problem in the way you're > using patch. Try format "patch path/to/target < /path/to/patch" or see "man > patch" please. I did not use "patch" to apply this, but I ave put the patch_to_apply.patch file in the directory /etc/portage/patches/dev-lang/jython/, then doing a normal emerge for the packet. Normally, the patch must be applied correctly (with all the others from the repository), but there the application ot this patch fails. (In reply to Jean-Claude Aciman from comment #9) > I did not use "patch" to apply this, but I ave put the patch_to_apply.patch > file in the directory /etc/portage/patches/dev-lang/jython/, then doing a > normal emerge for the packet. Normally, the patch must be applied correctly > (with all the others from the repository), but there the application ot this > patch fails. I see, my bad. Have you tried adjusting the path inside the patch file? (In reply to Sebastian Pipping from comment #10) > (In reply to Jean-Claude Aciman from comment #9) > > I did not use "patch" to apply this, but I ave put the patch_to_apply.patch > > file in the directory /etc/portage/patches/dev-lang/jython/, then doing a > > normal emerge for the packet. Normally, the patch must be applied correctly > > (with all the others from the repository), but there the application ot this > > patch fails. > > I see, my bad. Have you tried adjusting the path inside the patch file? I did and the full result of "ebuild jython-2.7.0-r2.ebuild clean prepare" is: # ebuild jython-2.7.0-r2.ebuild clean prepare * jython-2.7.0-sources.jar BLAKE2B SHA512 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * Using: icedtea-8 >>> Unpacking source... >>> Unpacking jython-2.7.0-sources.jar to /var/tmp/portage/dev-java/jython-2.7.0-r2/work >>> Source unpacked in /var/tmp/portage/dev-java/jython-2.7.0-r2/work >>> Preparing source in /var/tmp/portage/dev-java/jython-2.7.0-r2/work ... * Applying jython-2.5.2-distutils_scripts_location.patch ... patching file Lib/distutils/command/install.py Hunk #1 succeeded at 87 with fuzz 2 (offset 17 lines). [ ok ] * Applying jython-2.5.2-respect_PYTHONPATH.patch ... patching file src/org/python/core/PySystemState.java Hunk #1 succeeded at 807 with fuzz 2 (offset 161 lines). [ ok ] * Applying jython-2.7_beta1-ant.patch ... [ ok ] * Applying jython-2.7_beta1-dont-always-recompile-classes.patch ... [ ok ] * Applying jython-2.7_beta2-maxrepeat-import.patch ... [ ok ] * Applying jython-2.7.0-build.xml.patch ... [ ok ] * Applying CVE-2016-4000.patch ... [ ok ] * Applying jython-2.7.0-r2.ebuild.patch ... can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- /usr/portage/dev-java/jython/jython-2.7.0-r2.ebuild 2021-01-09 17:04:20.798391252 +0100 |+++ /var/lib/layman/__mine__/dev-java/jython/jython-2.7.0-r2.ebuild 2021-01-10 12:26:24.341996198 +0100 -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored [ !! ] * ERROR: dev-java/jython-2.7.0-r2::gentoo failed (prepare phase): * patch -p1 failed with /etc/portage/patches/dev-java/jython-2.7.0-r2/jython-2.7.0-r2.ebuild.patch The patch is to change the ebuild file itself as indicated in the name, it is not a patch to be added in /etc/portage/patches/dev-lang/jython ;-) Starting from the ebuild in portage you use the patch to produce a new ebuild to be installed in your overlay I'm not sure I understand. Why would you apply a patch against the ebuild from inside the ebuild? You need to patch the ebuild and then run it, no? (In reply to Sebastian Pipping from comment #13) > I'm not sure I understand. Why would you apply a patch against the ebuild > from inside the ebuild? You need to patch the ebuild and then run it, no? You are right. I applied the patch directly to the ebuild, updated the Manifest then run the ebuild patched and all worked fine. Thank you for your help. (In reply to Jonathan Janzen from comment #4) > I can confirm that I'm experiencing the same build failure on my machine, > and additionally that the provide patch allows the package to build. That patch causes trouble in qa-reports: https://qa-reports.gentoo.org/output/gentoo-ci/28728c336e/output.html#dev-java/jython (In reply to Volkmar W. Pogatzki from comment #15) > (In reply to Jonathan Janzen from comment #4) > > I can confirm that I'm experiencing the same build failure on my machine, > > and additionally that the provide patch allows the package to build. > > That patch causes trouble in qa-reports: > https://qa-reports.gentoo.org/output/gentoo-ci/28728c336e/output.html#dev- > java/jython Removing PATCH keyword since the patch was wrong Dear treecleaner@: I'm still able to reproduce this issue right now. Since it has not been fixed for a long time, I'd suggest to evaluate if it is the case to remove this package from the tree. Thanks The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d565de9ee70694ab90d0adba26c937a5a08a997 commit 2d565de9ee70694ab90d0adba26c937a5a08a997 Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2021-05-03 23:01:40 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-13 10:24:35 +0000 dev-java/jython: min java 1.8, icu4j:55, asm:9 Closes: https://bugs.gentoo.org/758881 Closes: https://bugs.gentoo.org/645808 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/22895 Signed-off-by: Sam James <sam@gentoo.org> dev-java/jython/jython-2.7.0-r3.ebuild | 152 +++++++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) |