-
Notifications
You must be signed in to change notification settings - Fork 449
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
The build installs a copy of the already installed cadical binary #5603
Comments
yurivict
changed the title
The build installs a copy of the cadical binary
The build installs a copy of the already installed cadical binary
Oct 3, 2024
I would consider a PR with a |
This comment was marked as outdated.
This comment was marked as outdated.
juhp
added a commit
to juhp/lean4
that referenced
this issue
Nov 3, 2024
juhp
added a commit
to juhp/lean4
that referenced
this issue
Nov 3, 2024
Okay I opened the above PR for this |
juhp
added a commit
to juhp/lean4
that referenced
this issue
Nov 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
The 'install' target installs bin/cadical because of this line in stage0/src/CMakeLists.txt.
This line is definitely wrong because it compares the file at the ${CADICAL} path, which is the found Cadical binary, with ${CMAKE_BINARY_DIR}/bin/cadical${CMAKE_EXECUTABLE_SUFFIX} which is either the same Cadical binary file (in case when there is no stage directory), or a non-existent file (in case when lean4 is installed into the stage directory).
In both situations copying is not necessary because the 'cadical' binary is already present - there is no need to install it again.
This only causes file duplication conflict between lean4 and cadical packages in case when lean4 is installed into the stage directory.
This 'install' instructions does about the same and is also obviously wrong: this file is already present (installed).
Context
The above problem is found while updating the FreeBSD port.
Versions
[Output of
#eval Lean.versionString
]OS version: FreeBSD 14.1
Additional Information
[Additional information, configuration or data that might be necessary to reproduce the issue]
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: