<div dir="ltr"><div dir="ltr">Hi, <div>looks like duplicate  of <a href="https://github.com/qgis/QGIS/pull/38103">https://github.com/qgis/QGIS/pull/38103</a> </div><div>I fixed it by using of ninja instead of make</div><div><br></div><div>P.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 12, 2020 at 7:17 PM Greg Troxel <<a href="mailto:gdt@lexort.com">gdt@lexort.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
I co-maintain the pkgsrc entry for qgis (and also look after proj, gdal,<br>
postgis).<br>
<br>
pkgsrc uses gmake because there are file names with spaces (json help),<br>
and there is some quoting problem with BSD make.  (Also because of the<br>
present issue with $ quoting.)<br>
<br>
pkgsrc currently has 3.10.7 (yes, I know I should update to 3.10.10),<br>
which builds fine with cmake 3.17.3 on NetBSD, when qgis is built with<br>
gmake.<br>
<br>
With our current cmake 3.18.2 (or .1), the build fails because a<br>
generated makefile:<br>
<br>
  work/qgis-3.10.7/build/src/core/CMakeFiles/qgis_core.dir/build.make<br>
<br>
escapes e.g. resources/function_help/json/$area to have four dollar signs:<br>
<br>
  src/core/qgsexpression_texts.cpp: ../resources/function_help/json/$$$$area<br>
<br>
rather than the two $ that gmake expects.  (However, BSD make, which we<br>
don't use, wants 4, for complicated and perhaps not valid reasons.)<br>
<br>
My working (but unsupported by reality) theory is that cmake is trying<br>
to accomodate BSD make and overquoting $, but is doing so because it is<br>
running on NetBSD, rather than because it knows BSD make will be used to<br>
build.  However, I don't see this in the release notes.<br>
<br>
So far there have not been reports of other programs not building, but<br>
qgis is unusual in that it has files with $ in them.<br>
<br>
I am looking for a minimal fix to patch qgis or cmake to make this<br>
build.<br>
<br>
Hints would be appreciated on the following subjects:<br>
<br>
  cmake really did or didn't change quoting of $<br>
<br>
  The extra quoting is or isn't something somehow done by qgis.<br>
<br>
  The questions I really should have asked, if I understtood this<br>
  better.<br>
<br>
  This is fixed in 3.10.10 :-)<br>
<br>
Thanks,<br>
Greg<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>