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

cmake replace quote string #1291

Closed
wants to merge 1 commit into from
Closed

cmake replace quote string #1291

wants to merge 1 commit into from

Conversation

nabbi
Copy link
Contributor

@nabbi nabbi commented Oct 30, 2022

CMake Error
string sub-command REPLACE requires at least four arguments.

cmake version 3.24.2

CMake Error
string sub-command REPLACE requires at least four arguments.
@bbannier
Copy link
Member

This looks good to me, but as a user of cmake-3.24.2 I wonder how to trigger the issue this fixes. Could you explain what you did to run into the error you posted? I'd assume that the same could also trigger the issue fixed by zeek/spicy-plugin#148.

@nabbi
Copy link
Contributor Author

nabbi commented Oct 31, 2022

Hi @bbannier -
I encountered this during Gentoo's sandbox build process using Portage 3.0.38.1
Been working on an updated ebuild for this distro and found I needed to patch this out. Yes, both spicy and spicy-plugin were encountered with the same build process. Without digging too much into this, I suspect CMAKE_CXX_FLAGS_RELWITHDEBINFO is being manipulated by portage (as manually configure does not trigger the behavior)

Thank you :)

@bbannier
Copy link
Member

bbannier commented Nov 7, 2022

@nabbi, thanks for the context, especially given how easy it is to add patches to ebuilds. I'll take a look.

As a heads up, If you are preparing an ebuild for the latest release, consider backporting this Spicy patch which has already landed in Spicy main; with that the package should be fully licensed under a OSI-approved Open Source licenses.

@bbannier
Copy link
Member

bbannier commented Nov 7, 2022

Landed in both main and release/1.5, available in spicy-1.5.2.

@bbannier bbannier closed this Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants