Created attachment 602481 [details]
Update the magic number for Python 3.3 bytecode (and the comment)
Description of problem:
rpmlint is currently using magic number 3190 for Python 3.3 bytecode.
However, that's now out-of-date (it was the magic number in 3.3a0), and it should be using 3230 (as of 3.3a4; given that 3.3 is at feature freeze and that I've done most of the mass rebuild for 3.3 in Fedora I'm very much hoping that this magic number will be the one for 3.3 final).
Within Python-3.3.0b1.tar.xz, Python/import.c has this value for the known magic values:
Python 3.3a4 3230 (revert changes to implicit __class__ closure)
and within the latest hg it's moved to Lib/importlib/_bootstrap.py ; http://hg.python.org/cpython/file/80a1ae3a1b39/Lib/importlib/_bootstrap.py also contains:
"Python 3.3a4 3230 (revert changes to implicit __class__ closure)"
(at line 395)
I'm attaching a patch.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum install python3-six
2. rpmlint python3-six
python3-six.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python3.3/site-packages/__pycache__/six.cpython-33.pyo expected 3190 (3.3), found 3230 (unknown)
python3-six.noarch: E: python-bytecode-wrong-magic-value /usr/lib/python3.3/site-packages/__pycache__/six.cpython-33.pyc expected 3190 (3.3), found 3230 (unknown)
No warnings about python bytecode.
Already fixed upstream, will be in the next release:
rpmlint-1.4-8.fc16 has been submitted as an update for Fedora 16.
rpmlint-1.4-8.fc17 has been submitted as an update for Fedora 17.
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing rpmlint-1.4-8.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
rpmlint-1.4-8.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
rpmlint-1.4-8.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.