Summary: | lang/python37 : Fails to upgrade 'python37-3.7.5_1' to 'python37-3.7.6' on FreeBSD 12.1-RELEASE-p1 powerpc 32 bit: Grammar3.7.6.final.0.pickle:No such file or directory | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | canardo <canardo909> | ||||||
Component: | Individual Port(s) | Assignee: | freebsd-python (Nobody) <python> | ||||||
Status: | Open --- | ||||||||
Severity: | Affects Only Me | CC: | pkubaj, powerpc, python, wen | ||||||
Priority: | --- | Keywords: | needs-qa | ||||||
Version: | Latest | Flags: | koobs:
maintainer-feedback?
(python) |
||||||
Hardware: | powerpc | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
canardo
2020-01-28 11:10:58 UTC
Thank you for your report. The apparent reference to 3.7.5 during the 3.7.6 build is certainly interesting: Writing grammar tables to /usr/ports/lang/python37/work/stage/usr/local/lib/python3.7/lib2to3/Grammar3.7.5.final.0.pickle Could you please: - Include the complete build log as an attachment - Let us know what port option are set for lang/python37 - Confirm whether or not installation of python37 (3.7.6) works after removing (pkg delete) python37-3.7.5_1 first Created attachment 211128 [details]
poudriere log
This seems to be because of unclean environment. I created a jail with FreeBSD 12.1 and it seems to build.
(In reply to Piotr Kubaj from comment #2) Do you have a command/script so I could clean up my environment and try again ? (In reply to canardo from comment #3) Well, you would need to remove all the packages to be safe, but probably removing the already installed python37 will help. (In reply to Piotr Kubaj from comment #2) Upstream expects Python to build correctly/cleanly even with existing Python installations existing in the environment. If a root cause can be identified, we should report it upstream Tests performed on my machine: - python 3.7 was in version 3.7.5_1 - # make deinstall - # make clean - # make -DBATCH install clean - python 3.7 successfully installed in version 3.7.6 Conclusions: 1) Python 3.7 in version 3.7.6 can be installed 2) From previous use few days ago, portupgrade command was successfull for some ports 1+2) It seems there's something wrong within the clean process of portupgrade, probably not specific to python3.7 If possible, next step would be to reproduce the same problem again, first on my machine. So, I need to - deinstall python3.7 in version 3.7.6 => easy - install python 3.7 in version 3.7.5_1 and try again the upgrade process, my question is: how do I do that ? What is the command to specifically install python 3.7 version 3.7.5_1 on my machine ? NB: please find attached the full log of the failed upgrade process. Created attachment 211170 [details]
FreeBSD.bug.243669.portupgrade.python37.failed-FULL.LOG
(In reply to canardo from comment #6) You can use ports-mgmt/portdowngrade to downgrade a port. (In reply to Piotr Kubaj from comment #8) Thanks for the info. Problem is ports-mgmt/portdowngrade requires devel/subversion And devel/subversion curently fails to build on PowerPC 32 I reported this problem last month: PR 242680 In the meanwhile, I'll keep Python 3.7.6 manually installed as it is. If someone can systematically reproduce the upgrade problem, maybe a fix can be found. If needed, I can perform other tests on my machine. (In reply to canardo from comment #9) Right.... You can hack portdowngrade to use base svnlite. Or you can manually edit python37 to use version 3.7.5. Basically revert https://svnweb.freebsd.org/ports?view=revision&revision=520724. Subversion should already work on powerpc. (In reply to Piotr Kubaj from comment #11) Indeed subversion now build OK on powerpc (was blocked by a bug in a required dependency). |