#68931 closed defect (fixed)
py-sip builds contain incorrect code.
Reported by: | SiggyF | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | ventura sonoma | Cc: | reneeotten (Renee Otten) |
Port: | py-sip |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
There was a bug in the 3.8.0 version of py-sip. This bug was fixed two weeks ago in 3.8.1. This also solved #68828. Now the 3.8.1 is available. Somehow the old code ended up in the builds of the pre-build 3.8.1 version.
This can be checked in for example the file:
https://packages.macports.org/py311-sip/py311-sip-6.8.1_0.darwin_22.arm64.tbz2
There we see the old code:
opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sipbuild/generator/outputs/code.py 8417: if klass.docstring is None or klass.docstring.signature is not SocstringSignature.DISCARDED:
I don't understand how this old codes ends up in this file. I checked the distfile and that contains the correct code (without the typo *Soc*string).
Change History (5)
comment:1 follow-up: 2 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
Cc: | reneeotten added |
---|---|
Description: | modified (diff) |
Owner: | set to michaelld |
Status: | new → assigned |
comment:2 follow-up: 5 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | ventura sonoma added |
---|
Replying to ryandesign:
But the
patch
program in Ventura and later silently applied the patch in reverse.
DEBUG: system: cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_python_py-sip/py311-sip/work/sip-6.8.1" && /usr/bin/patch -p0 < '/opt/bblocal/var/buildworker/ports/build/ports/python/py-sip/files/patch-typo.diff' patching file 'sipbuild/generator/outputs/code.py' Reversed (or previously applied) patch detected! Assume -R? [y]
comment:3 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 Changed 11 months ago by SiggyF
Replying to ryandesign:
Replying to ryandesign:
But the
patch
program in Ventura and later silently applied the patch in reverse.DEBUG: system: cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_python_py-sip/py311-sip/work/sip-6.8.1" && /usr/bin/patch -p0 < '/opt/bblocal/var/buildworker/ports/build/ports/python/py-sip/files/patch-typo.diff' patching file 'sipbuild/generator/outputs/code.py' Reversed (or previously applied) patch detected! Assume -R? [y]
Ah, that's tricky, well caught!
I assume you mean 6.8.0 and 6.8.1 rather than 3.8.0 and 3.8.1.
The problem is that the
revision
was not increased when #68898 was resolved. macOS Ventura and later contain a new implementation ofpatch
that behaves differently from that in older macOS versions. In older macOS versions an error was issued when asked to apply a patch that was already applied, which was what prompted #68898. But thepatch
program in Ventura and later silently applied the patch in reverse.