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

Use just-built curl to generate zsh completion #599

Closed
wants to merge 1 commit into from
Closed

Use just-built curl to generate zsh completion #599

wants to merge 1 commit into from

Conversation

ismail
Copy link
Contributor

@ismail ismail commented Jan 10, 2016

In a Linux build environment curl is built in a chroot where there is no curl installed on the system. In that case currently curl fails to build zsh completion. Producing a broken _curl file. Instead we can use the just-built curl binary to generate zsh completion. This way completion will also be always up-to-date with new options too.

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @ghedo and @danielshahaf to be potential reviewers

@dfandrich
Copy link
Contributor

While I'm for this idea in the native build case, it will fail in the cross-compiled case. Also, I'm not sure a relative path is going to work in an out-of-tree build; it's probably better to pass in the path to the curl binary on the command-line.

@ismail
Copy link
Contributor Author

ismail commented Jan 10, 2016

I tested the out-of-tree builds and it works fine. Cross compilation is not supported as you noted but that doesn't make sense either. System curl != curl you build.

@danielshahaf
Copy link
Contributor

@ismail I think @dfandrich's is saying that your patch breaks cross-builds that pass --with-zsh-functions-dir, since they will attempt to execute ../src/curl [which will likely fail]. In other words: I think @dfandrich is asking you to change the patch such that cross-builds don't attempt to run ../src/curl.

However, I'm not sure what cross-builds should do. The up-to-date options list is embedded in a C file, but the cross-build can't assume a native compiler is installed [to compile a small, native program that only implements curl -h and nothing else], can it?

@bagder
Copy link
Member

bagder commented Jan 10, 2016

Also, a duplicate of #582 it seems

@ghedo
Copy link
Contributor

ghedo commented Jan 10, 2016

This is also the wrong way to fix this. The default "curl" is meant to use the system-provided curl for testing purposes, and this breaks that.

@ismail
Copy link
Contributor Author

ismail commented Jan 11, 2016

@bagder Indeed, I'll close this one. Thanks!

@ismail ismail closed this Jan 11, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants