Example files are installed by the server build, and additionally they are in a wrong place #54423
Open
1 of 2 tasks
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Build/Install
Related to compiling or installing QGIS
Server
Related to QGIS server
What is the bug or the crash?
As a packager I built qgis with qgis server enabled, and the files
admin.sld
andwms_metadata.xml
are installed in${QGIS_CGIBIN_DIR}
. These are not cgi binaries and thus should not be there. As far as I can tell (qgis/QGIS-Documentation#8475 has links) these are examples that someone might want to adapt. Therefore, if they are installed, they should be in $prefix/share/examples/qgis/server, or something like this.Steps to reproduce the issue
Option 1) Build and install qgis with
-DWITH_SERVER:BOOL=TRUE
and look in the cgi dir.Option 2) Read
QGIS/src/server/CMakeLists.txt
Line 183 in 80f161e
(I did not try running a new qgis profile, as the bug is clear from make install without ever starting qgis.)
Versions
Observed in 3.28.10, and confirmed in git master with link above.
Supported QGIS version
New profile
Additional context
I suggest simply removing these lines from CMakeLists.txt.
The text was updated successfully, but these errors were encountered: