Summary: | app-portage/elogviewer-0.6.2-r1 does not work with python3.2 | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Kamen Dokov <polidevk.polidevk> |
Component: | Unclassified | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gentoobugs, Mathias.Laurin+gentoo |
Priority: | Normal | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 308257 | ||
Attachments: |
working python3.2 ebuild
diff bumped ebuild fixing the python dep and shebang |
Description
Kamen Dokov
2011-09-11 14:45:25 UTC
The SyntaxError is due to a a print statement which does not work with python-3.0, so it's not really an issue specific to python-3.2, and therefore it doesn't really block bug 292402. This type of SyntaxError can often be solved by adding 'python_convert_shebangs -r 2 .' to src_prepare, and bugs like this block bug 308257. (In reply to comment #1) > The SyntaxError is due to a a print statement which does not work with > python-3.0, so it's not really an issue specific to python-3.2, and therefore > it doesn't really block bug 292402. This type of SyntaxError can often be > solved by adding 'python_convert_shebangs -r 2 .' to src_prepare, and bugs like > this block bug 308257. Thank you for the clarification and explanation! :) I added it like this src_prepare() { <------># Apply patch from Bug 349071 to restore missing newline <------>epatch "${FILESDIR}/${P}-missing_newline.patch" <------>python_convert_shebangs -r 2 . } the result is : * QA Notice: command not found: * * /var/tmp/portage/app-portage/elogviewer-0.6.2-r1/temp/environment: line 2230: python_convert_shebangs: command not found It seems I don't have necessary tools for that. Which package should I install to be able to use that command ? It should be from the python eclass which is not inherited since the ebuild does not use python's distutils to install itself. Add python to the inherit line: inherit eutils python that should fix it. adding upstream developer. Created attachment 286171 [details]
working python3.2 ebuild
That ebuild I created thanks to Brian Dolbec (Thank you!)
It works for me!
I'll upload and diff.
Created attachment 286173 [details]
diff
Created attachment 286185 [details] bumped ebuild fixing the python dep and shebang Not quite. The diff is backwards :) you need to reverse the order of the files to generate it. Also the python dep is incorrect, you have; >=dev-lang/python-3.1.3-r1" it actually needs a different dep system based in the python eclass. It in turn computes and adds the correct deps automatically PYTHON_DEPEND="2:2.6" SUPPORT_PYTHON_ABIS="0" (In reply to comment #8) > Created attachment 286185 [details] > bumped ebuild fixing the python dep and shebang > > Not quite. The diff is backwards :) you need to reverse the order of the > files to generate it. Also the python dep is incorrect, you have; > > >=dev-lang/python-3.1.3-r1" > > it actually needs a different dep system based in the python eclass. It in > turn computes and adds the correct deps automatically > > > PYTHON_DEPEND="2:2.6" > SUPPORT_PYTHON_ABIS="0" You are showing me here an advanced gentoo sorcery ;) That was my first time using diff ever :D Is 'bumped' means that after sync it should be ok now ? No, actually that was a mistake on my part. It was meant to mean a o.6.2-r2 ebuild. But once I committed the post it was too late to reword it. This updated ebuild will most likely be committed to the tree soon. It sounds like you made the change to the ebuild in your main tree. If you sync your change will be overwritten again. You will need to put the modified ebuild in a local overlay so that will not happen. I cannot commit the update to the main tree, we'll have to wait for the maintainer to do that. Thank you for your help. (In reply to comment #10) > No, actually that was a mistake on my part. It was meant to mean a o.6.2-r2 > ebuild. But once I committed the post it was too late to reword it. > > This updated ebuild will most likely be committed to the tree soon. It sounds > like you made the change to the ebuild in your main tree. If you sync your > change will be overwritten again. You will need to put the modified ebuild in > a local overlay so that will not happen. I cannot commit the update to the > main tree, we'll have to wait for the maintainer to do that. > > Thank you for your help. I did those experiments into my local overlay ;D Don't be so modest, you did the whole thing. ;) Thank you for letting me learn few gentoo magic tricks! *** Bug 383767 has been marked as a duplicate of this bug. *** *** Bug 383767 has been marked as a duplicate of this bug. *** All ebuilds are fixed in cvs now. (In reply to comment #14) > All ebuilds are fixed in cvs now. Yes! Thank you! :D |