-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
z3: update to 4.13.0 #23485
base: master
Are you sure you want to change the base?
z3: update to 4.13.0 #23485
Conversation
Notifying maintainers: |
z3 is failing at the test phase with:
I thought mpbb was only running MacPorts built-in tests, not the ones defined in the Portfile. But I see this is coming from a z3-fstar is failing due to:
|
@ryandesign I just installed locally
|
Hm, yeah, post-test blocks get executed whether or not |
I assume you received the binary which we built January 11, 2024, back when the port was building with python311. The port's python version was changed to python312 in 4c09b10 on January 24, 2024, without apparently verifying that it could still build. distutils was a deprecated part of python until it was removed in python312. To get that functionality back you would add a dependency on py312-setuptools. |
On the basis that there was nothing wrong with the way the port was running its tests before base gained the ability to run built-in tests, I suggest that it should be base's problem to fix. If it were the port's problem, though, how would it do it? Obviously in this specific case it could check in the |
Check whether |
So the port sets In what situation would it make sense for MacPorts to run a port's There are currently 105 ports with |
I consider this a bug in the new built-in tests and have filed https://trac.macports.org/ticket/69866. |
@ryandesign Thank you! Hopefully this gets sorted soon and we are not stuck with updates indefinitely. |
How do we get this moving again? |
Did I miss something or it is still a bug in CI? I can’t do anything about that, obviously. If something should be done about z3 itself, that is doable. |
I'm pretty sure the z3-fstar build failure isn't a CI bug. |
@jmroot I don’t touch that subport here, somehow it worked before? |
None the less, it would be useful to figure out why it is failing. There's sadly an element of "if you touch it, you should see if you can fix it" about our maintenance philosophy, but that's not actually bad. |
@pmetzger I suggest someone knowing Python build system to deal with this:
It has probably been broken by a global switch to a pep517 without testing if it actually works for all ports. |
No, it would have been broken by 4c09b10. |
@jmroot Fair enough, but it cannot be broken by this PR, since -star subport is not changed. |
I'm not seeking to assign blame here, but you seem to want CI to pass, and fixing that build failure is how that will happen. |
@jmroot Maybe you could suggest something, since you know Python build system? |
https://docs.python.org/3/whatsnew/3.12.html
I don't know if the dependency is needed at runtime or only at build time. |
@@ -295,6 +296,13 @@ subport ${name}-fstar { | |||
long_description Private version of the Z3 theorem prover for use by (and qualified to work with) F*. | |||
cmake.install_prefix ${prefix}/libexec/${subport} | |||
|
|||
set py_ver 3.12 | |||
set py_ver_nodot [string map {. {}} ${py_ver}] | |||
depends_build-append port:python${py_ver_nodot} \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per lint:
Warning: Dependency port:python312 specified multiple times in depends_build
That's because most of this has already been done around line 93.
Description
Update
Type(s)
Tested on
macOS 10.6
Xcode 3.2
Verification
Have you
port lint --nitpick
?sudo port test
?sudo port -vst install
?