Skip to content
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

Closed
3 tasks done
yurivict opened this issue Oct 3, 2024 · 3 comments · Fixed by #5931
Closed
3 tasks done

The build installs a copy of the already installed cadical binary #5603

yurivict opened this issue Oct 3, 2024 · 3 comments · Fixed by #5931
Labels
bug Something isn't working P-low We are not planning to work on this issue

Comments

@yurivict
Copy link

yurivict commented Oct 3, 2024

Prerequisites

Please put an X between the brackets as you perform the following steps:

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.

@yurivict yurivict added the bug Something isn't working label Oct 3, 2024
@yurivict 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
@Kha
Copy link
Member

Kha commented Oct 25, 2024

I would consider a PR with a COPY_CADICAL configuration flag

@leanprover-bot leanprover-bot added the P-low We are not planning to work on this issue label Oct 25, 2024
@juhp

This comment was marked as outdated.

@juhp
Copy link
Contributor

juhp commented Nov 3, 2024

Okay I opened the above PR for this

github-merge-queue bot pushed a commit that referenced this issue Nov 27, 2024
…5931)

This PR adds a cmake knob to allow turning off installing a copy of
`cadical`.
This can be useful for custom builds/installs where cadical is already
available in the system.

Closes: #5603
@Kha Kha closed this as completed in #5931 Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P-low We are not planning to work on this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants