===> Building gdal-3.9.0 pkg-static: Unable to access file /wrkdirs/usr/ports/graphics/gdal/work/stage/usr/local/share/gdal/gmlasconf.xml:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/graphics/gdal/work/stage/usr/local/share/gdal/gmlasconf.xsd:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/graphics/gdal/work/stage/usr/local/share/gdal/osmconf.ini:No such file or directory packaging fails because those files are not in the stagedir. Any ideas why this is the case ?
Can confirm. - FreeBSD 14.1-RELEASE-p0 - poudriere-devel 3.4.99.20240424 Log tail: ===> Building gdal-3.9.0 pkg-static: Unable to access file /wrkdirs/usr/ports/graphics/gdal/work/stage/usr/local/share/gdal/gmlasconf.xml:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/graphics/gdal/work/stage/usr/local/share/gdal/gmlasconf.xsd:No such file or directory *** Error code 1 Stop. make: stopped in /usr/ports/graphics/gdal
I cannot reproduce this with default configuration. Do you use any non-default configuration and/or options?
(In reply to Po-Chuan Hsieh from comment #2) I've tested graphics/gdal on a newly-built 14.1-RELEASE poudriere jail. And I don't think it is related to 14.1.
Created attachment 251865 [details] default-settings
Created attachment 251866 [details] failing-settings
I've added the failing settings and the default settings, and they differ by a lot. So I should probably dig into this to find out which settings cause the problem. Will be traveling, so this will take time.
(In reply to Kurt Jaeger from comment #4) (In reply to Kurt Jaeger from comment #5) (In reply to Kurt Jaeger from comment #6) Check the XERCES option. It is the build dependency of GMLAS driver.
It failed for me in the Poudriere (poudriere-devel-3.4.99.20240122_1) on FreeBSD 13.3 too. The error is the same 3 files: gmlasconf.xml, gmlasconf.xsd and osmconf.ini. I have disabled XERCES and SQLITE for a long time, I have package from previous build gdal-3.8.5 on FreeBSD 13.2 where these options are also disabled but the build went without error. Shouldn't these files be made conditional in pkg-plist?
%%DATADIR%%/gmlasconf.xml and %%DATADIR%%/gmlasconf.xsd need the %%XERCES%% PLIST_SUB.
Attached patch fixes it for me (disabled XERCES and SQLITE), I didn't check other options if there should be other conditional files.
Created attachment 252526 [details] add %%XERCES%% and %%SQLITE%% to pkg-plist Fixes disabled options XERCES and SQLITE
It should be fixed in ports 47f8c40769987ae666b565f91d95c95b52eb9732. Thanks.
Hello, would it be possible to merge this in 2024Q3? thanks!
Fixed in ports 0108b3fc8515c1f03f556282bdfc5e0c099c9113.
(In reply to Po-Chuan Hsieh from comment #14) Thank you !