-
Notifications
You must be signed in to change notification settings - Fork 413
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
[configurator] New quoting rules may create problems. #1833
[configurator] New quoting rules may create problems. #1833
Comments
This may be more serious than what I though, as the below solution seems broken on OSX:
|
What new quoting rules are you talking about? I can't recall any changes here. |
Let me locate the commit on |
The bisect was a pain for other reasons but indeed seems that a5becc4 creates this problem. |
Incorrect quoting on Linux is:
|
Okay, got it. @Chris00 do you mind restoring the old quoting behavior? |
I think that just removing the |
I'll try to take a look to that today. |
#1834 is my attempt to address this |
Example: Pkg_config.query p ~package:"gtk+-3.0 >= 3.10" Fixes ocaml#1833 Signed-off-by: Christophe Troestler <Christophe.Troestler@umons.ac.be>
Example: Pkg_config.query p ~package:"gtk+-3.0 >= 3.10" Fixes ocaml#1833 Signed-off-by: Christophe Troestler <Christophe.Troestler@umons.ac.be>
@rgrinberg Sorry, I just saw you attempt. (I tested and pushed a fix that is quite similar to yours.) |
@ejgallego May you explain a bit more why? |
@rgrinberg I'll also submit an improved doc for |
Sure, I just did the bisect on a live switch and I got some problems with |
Bug ocaml/dune#1833 makes our quoting strategy fail; unfortunately it is not easy to fix due to OS-specific issues. IMHO the issue is not so serious as to warrant an ugly workaround, thus we rather declare a conflict with Dune 1.7.0.
CHANGES: - Fix the watch mode (ocaml/dune#1837, ocaml/dune#1839, fix ocaml/dune#1836, @diml) - Configurator: Fix misquoting when running pkg-config (ocaml/dune#1835, fix ocaml/dune#1833, @Chris00)
Quoting seems still broken on OSX + 1.7.1, will investigate more [no OSX machine at hand] |
Indeed I see the issue - It's related to our janky homebrew support. Fixing. |
* [build] Conflict with Dune 1.7.0 Bug ocaml/dune#1833 makes our quoting strategy fail; unfortunately it is not easy to fix due to OS-specific issues. IMHO the issue is not so serious as to warrant an ugly workaround, thus we rather declare a conflict with Dune 1.7.0. * [opam] [dune-release] Fix opam metadata to reflect recent release. After 3.0.beta4, the loose constraints should mostly work; depending on the changes we do of course. We also update the `homepage` field of the OPAM files, and the CHANGES file, if I understand correctly this should indeed make `dune-release` work out of the box [and to produce sensible changelogs] Note that dune-release was incorrectly reading `CHANGES.API` to create the OPAM changelog! So I had to fix that too.
TTBOMK closed by #1842 |
CHANGES: - Add `${corrected-suffix}`, `${library-name}` and a few other variables to the list of variables to upgrade. This fixes the support for various framework producing corrections (ocaml/dune#1840, ocaml/dune#1853, @diml) - Fix `$ dune subst` failing because the build directory wasn't set. (ocaml/dune#1854, fix ocaml/dune#1846, @rgrinberg) - Configurator: Add warning to `Pkg_config.query` when a full package expression is used. Add `Pkg_config.query_expr` for cases when the full power of pkg-config's querying is needed (ocaml/dune#1842, fix ocaml/dune#1833, @rgrinberg) - Fix unavailable, optional implementations eagerly breaking the build (ocaml/dune#1857, fix ocaml/dune#1856, @rgrinberg)
New quoting rules in 1.7.0 means that:
will always return
None
as the package name is quoted in such a way thatpkg-config
will get confused.This can be worked around by using:
however it is not clear to me that the quoting in 1.7.0 is correct.
The text was updated successfully, but these errors were encountered: