* [Buildroot] [PATCH 1/1] package/gdal: deflate64 needs libzlib
@ 2024-02-16 19:45 Fabrice Fontaine
2024-02-25 7:41 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2024-02-16 19:45 UTC (permalink / raw)
To: buildroot; +Cc: Dominik Michael Rauh, Fabrice Fontaine
deflate64 unconditionally uses FAR since its addition with
https://github.com/OSGeo/gdal/commit/d6baebcc73ffc2ede6e9635846676b275b02bab3
resulting in the following build failure with zlib-ng since bump to
version 3.8.2 in commit d2e349301b79ad3a1840083714ee396f4302b68a:
In file included from /home/autobuild/autobuild/instance-2/output-1/build/gdal-3.8.2/frmts/zlib/contrib/infback9/infback9.c:6:
/home/autobuild/autobuild/instance-2/output-1/build/gdal-3.8.2/frmts/zlib/contrib/infback9/minified_zutil.h:46:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uchf'
46 | typedef uch FAR uchf;
| ^~~~
Fixes: d2e349301b79ad3a1840083714ee396f4302b68a
- http://autobuild.buildroot.org/results/8b55108dee4faa98c234d00a1a22b62ed948e8d3
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/gdal/gdal.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/gdal/gdal.mk b/package/gdal/gdal.mk
index 3104332db9..247e13663c 100644
--- a/package/gdal/gdal.mk
+++ b/package/gdal/gdal.mk
@@ -124,6 +124,12 @@ else
GDAL_CONF_OPTS += -DGDAL_USE_LIBXML2=OFF
endif
+ifeq ($(BR2_PACKAGE_LIBZLIB),y)
+GDAL_CONF_OPTS += -DENABLE_DEFLATE64=ON
+else
+GDAL_CONF_OPTS += -DENABLE_DEFLATE64=OFF
+endif
+
ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
GDAL_DEPENDENCIES += postgresql
GDAL_CONF_OPTS += -DGDAL_USE_POSTGRESQL=ON
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/gdal: deflate64 needs libzlib
2024-02-16 19:45 [Buildroot] [PATCH 1/1] package/gdal: deflate64 needs libzlib Fabrice Fontaine
@ 2024-02-25 7:41 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2024-02-25 7:41 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Dominik Michael Rauh, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> deflate64 unconditionally uses FAR since its addition with
> https://github.com/OSGeo/gdal/commit/d6baebcc73ffc2ede6e9635846676b275b02bab3
> resulting in the following build failure with zlib-ng since bump to
> version 3.8.2 in commit d2e349301b79ad3a1840083714ee396f4302b68a:
> In file included from /home/autobuild/autobuild/instance-2/output-1/build/gdal-3.8.2/frmts/zlib/contrib/infback9/infback9.c:6:
> /home/autobuild/autobuild/instance-2/output-1/build/gdal-3.8.2/frmts/zlib/contrib/infback9/minified_zutil.h:46:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uchf'
> 46 | typedef uch FAR uchf;
> | ^~~~
> Fixes: d2e349301b79ad3a1840083714ee396f4302b68a
> - http://autobuild.buildroot.org/results/8b55108dee4faa98c234d00a1a22b62ed948e8d3
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-25 7:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-16 19:45 [Buildroot] [PATCH 1/1] package/gdal: deflate64 needs libzlib Fabrice Fontaine
2024-02-25 7:41 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox