Bug 279590 - graphics/gdal: fails to build on 14.1 because of missing files
Summary: graphics/gdal: fails to build on 14.1 because of missing files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-08 13:17 UTC by Kurt Jaeger
Modified: 2024-09-19 08:08 UTC (History)
6 users (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
default-settings (1.81 KB, text/plain)
2024-07-04 14:38 UTC, Kurt Jaeger
no flags Details
failing-settings (1.81 KB, text/plain)
2024-07-04 14:39 UTC, Kurt Jaeger
no flags Details
add %%XERCES%% and %%SQLITE%% to pkg-plist (788 bytes, patch)
2024-08-05 21:04 UTC, Miroslav Lachman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Jaeger freebsd_committer freebsd_triage 2024-06-08 13:17:14 UTC
===>   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 ?
Comment 1 mord0d 2024-06-16 18:23:43 UTC
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
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2024-07-04 14:21:53 UTC
I cannot reproduce this with default configuration. Do you use any non-default configuration and/or options?
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2024-07-04 14:26:01 UTC
(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.
Comment 4 Kurt Jaeger freebsd_committer freebsd_triage 2024-07-04 14:38:41 UTC
Created attachment 251865 [details]
default-settings
Comment 5 Kurt Jaeger freebsd_committer freebsd_triage 2024-07-04 14:39:05 UTC
Created attachment 251866 [details]
failing-settings
Comment 6 Kurt Jaeger freebsd_committer freebsd_triage 2024-07-04 14:40:08 UTC
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.
Comment 7 Po-Chuan Hsieh freebsd_committer freebsd_triage 2024-07-04 14:52:18 UTC
(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.
Comment 8 Miroslav Lachman 2024-07-24 22:03:29 UTC
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?
Comment 9 Charlie Li freebsd_committer freebsd_triage 2024-08-05 15:41:51 UTC
%%DATADIR%%/gmlasconf.xml and %%DATADIR%%/gmlasconf.xsd need the %%XERCES%% PLIST_SUB.
Comment 10 Miroslav Lachman 2024-08-05 21:02:25 UTC
Attached patch fixes it for me (disabled XERCES and SQLITE), I didn't check other options if there should be other conditional files.
Comment 11 Miroslav Lachman 2024-08-05 21:04:28 UTC
Created attachment 252526 [details]
add %%XERCES%% and %%SQLITE%% to pkg-plist

Fixes disabled options XERCES and SQLITE
Comment 12 Po-Chuan Hsieh freebsd_committer freebsd_triage 2024-08-15 14:01:07 UTC
It should be fixed in ports 47f8c40769987ae666b565f91d95c95b52eb9732. Thanks.
Comment 13 Julien Cigar 2024-09-18 08:28:17 UTC
Hello, would it be possible to merge this in 2024Q3? thanks!
Comment 14 Po-Chuan Hsieh freebsd_committer freebsd_triage 2024-09-18 19:50:17 UTC
Fixed in ports 0108b3fc8515c1f03f556282bdfc5e0c099c9113.
Comment 15 Julien Cigar 2024-09-19 08:08:42 UTC
(In reply to Po-Chuan Hsieh from comment #14)
Thank you !