diff --git a/.gitignore b/.gitignore index e319f8b..ea2629c 100644 --- a/.gitignore +++ b/.gitignore @@ -59,5 +59,3 @@ gdalautotest-1.7.0.tar.gz /gdalautotest-3.2.1.tar.gz /gdalautotest-3.2.2.tar.gz /gdal-3.2.2-fedora.tar.xz -/gdalautotest-3.3.0.tar.gz -/gdal-3.3.0-fedora.tar.xz diff --git a/0001-configure-Also-save-LDFLAGS-when-checking-compilabil.patch b/0001-configure-Also-save-LDFLAGS-when-checking-compilabil.patch new file mode 100644 index 0000000..f842bb7 --- /dev/null +++ b/0001-configure-Also-save-LDFLAGS-when-checking-compilabil.patch @@ -0,0 +1,40 @@ +diff -rupN --no-dereference gdal-3.2.2-fedora/m4/geos.m4 gdal-3.2.2-fedora-new/m4/geos.m4 +--- gdal-3.2.2-fedora/m4/geos.m4 2021-03-05 12:39:54.000000000 +0100 ++++ gdal-3.2.2-fedora-new/m4/geos.m4 2021-03-24 13:44:41.905428811 +0100 +@@ -129,6 +129,8 @@ AC_DEFUN([GEOS_INIT],[ + LIBS=${GEOS_LIBS} + ax_save_CFLAGS="${CFLAGS}" + CFLAGS="${GEOS_CFLAGS}" ++ ax_save_LDFLAGS="${LDFLAGS}" ++ LDFLAGS="" + + AC_CHECK_LIB([geos_c], + [GEOSversion], +@@ -143,6 +145,7 @@ AC_DEFUN([GEOS_INIT],[ + + CFLAGS="${ax_save_CFLAGS}" + LIBS="${ax_save_LIBS}" ++ LDFLAGS="${ax_save_LDFLAGS}" + + fi + +diff -rupN --no-dereference gdal-3.2.2-fedora/m4/sfcgal.m4 gdal-3.2.2-fedora-new/m4/sfcgal.m4 +--- gdal-3.2.2-fedora/m4/sfcgal.m4 2021-03-05 12:39:52.000000000 +0100 ++++ gdal-3.2.2-fedora-new/m4/sfcgal.m4 2021-03-24 13:44:41.905428811 +0100 +@@ -128,6 +128,8 @@ AC_DEFUN([SFCGAL_INIT],[ + LIBS=${SFCGAL_LIBS} + ax_save_CFLAGS="${CFLAGS}" + CFLAGS="${SFCGAL_CFLAGS}" ++ ax_save_LDFLAGS="${LDFLAGS}" ++ LDFLAGS="" + + AC_CHECK_LIB([SFCGAL], + [sfcgal_version], +@@ -143,6 +145,7 @@ AC_DEFUN([SFCGAL_INIT],[ + + CFLAGS="${ax_save_CFLAGS}" + LIBS="${ax_save_LIBS}" ++ LDFLAGS="${ax_save_LDFLAGS}" + + fi + diff --git a/0002-configure-Ensure-with-geos-sfcgal-fail-if-unavailabl.patch b/0002-configure-Ensure-with-geos-sfcgal-fail-if-unavailabl.patch new file mode 100644 index 0000000..dc1e7db --- /dev/null +++ b/0002-configure-Ensure-with-geos-sfcgal-fail-if-unavailabl.patch @@ -0,0 +1,84 @@ +diff -rupN --no-dereference gdal-3.2.2-fedora/m4/geos.m4 gdal-3.2.2-fedora-new/m4/geos.m4 +--- gdal-3.2.2-fedora/m4/geos.m4 2021-03-24 13:44:42.101428816 +0100 ++++ gdal-3.2.2-fedora-new/m4/geos.m4 2021-03-24 13:44:42.103428816 +0100 +@@ -59,7 +59,9 @@ AC_DEFUN([GEOS_INIT],[ + elif test x"$with_geos" = x"yes" -o x"$with_geos" = x"" ; then + + AC_PATH_PROG(GEOS_CONFIG, geos-config, no) +- ac_geos_config_auto=yes ++ if test x"$with_geos" = x"" ; then ++ ac_geos_config_auto=yes ++ fi + + else + +@@ -140,7 +142,14 @@ AC_DEFUN([GEOS_INIT],[ + ) + + if test x"$HAVE_GEOS" = "xno"; then +- GEOS_CFLAGS="" ++ if test $ac_geos_config_auto = "yes" ; then ++ AC_MSG_WARN([GEOS was found on your system, but the library could not be linked. GEOS support disabled.]) ++ else ++ AC_MSG_ERROR([GEOS library could not be linked]) ++ fi ++ ++ GEOS_CFLAGS="" ++ + fi + + CFLAGS="${ax_save_CFLAGS}" +@@ -149,6 +158,12 @@ AC_DEFUN([GEOS_INIT],[ + + fi + ++ else ++ ++ if test $ac_geos_config_auto = "no" ; then ++ AC_MSG_ERROR([GEOS support explicitly enabled, but geos-config could not be found]) ++ fi ++ + fi + ]) + +diff -rupN --no-dereference gdal-3.2.2-fedora/m4/sfcgal.m4 gdal-3.2.2-fedora-new/m4/sfcgal.m4 +--- gdal-3.2.2-fedora/m4/sfcgal.m4 2021-03-24 13:44:42.101428816 +0100 ++++ gdal-3.2.2-fedora-new/m4/sfcgal.m4 2021-03-24 13:44:42.103428816 +0100 +@@ -58,7 +58,9 @@ AC_DEFUN([SFCGAL_INIT],[ + elif test x"$with_sfcgal" = x"yes" -o x"$with_sfcgal" = x"" ; then + + AC_PATH_PROG(SFCGAL_CONFIG, sfcgal-config, no) +- ac_sfcgal_config_auto=yes ++ if test x"$with_sfcgal" = x"" ; then ++ ac_sfcgal_config_auto=yes ++ fi + + else + +@@ -140,7 +142,13 @@ AC_DEFUN([SFCGAL_INIT],[ + + + if test x"$HAVE_SFCGAL" = "xno"; then +- SFCGAL_CFLAGS="" ++ if test $ac_sfcgal_config_auto = "yes" ; then ++ AC_MSG_WARN([SFCGAL was found on your system, but the library could not be linked. SFCGAL support disabled.]) ++ else ++ AC_MSG_ERROR([SFCGAL library could not be linked]) ++ fi ++ ++ SFCGAL_CFLAGS="" + fi + + CFLAGS="${ax_save_CFLAGS}" +@@ -149,5 +157,11 @@ AC_DEFUN([SFCGAL_INIT],[ + + fi + ++ else ++ ++ if test $ac_sfcgal_config_auto = "no" ; then ++ AC_MSG_ERROR([SFCGAL support explicitly enabled, but sfcgal-config could not be found]) ++ fi ++ + fi + ]) diff --git a/CVE-2021-45943.patch b/CVE-2021-45943.patch new file mode 100644 index 0000000..ad00a00 --- /dev/null +++ b/CVE-2021-45943.patch @@ -0,0 +1,25 @@ +diff -rupN --no-dereference gdal-3.2.2-fedora/frmts/pcidsk/sdk/segment/cpcidskbinarysegment.cpp gdal-3.2.2-fedora-new/frmts/pcidsk/sdk/segment/cpcidskbinarysegment.cpp +--- gdal-3.2.2-fedora/frmts/pcidsk/sdk/segment/cpcidskbinarysegment.cpp 2021-03-05 12:41:04.000000000 +0100 ++++ gdal-3.2.2-fedora-new/frmts/pcidsk/sdk/segment/cpcidskbinarysegment.cpp 2022-02-04 19:04:08.266954175 +0100 +@@ -31,6 +31,7 @@ + #include "pcidsk_exception.h" + #include "core/pcidsk_utils.h" + ++#include + #include + #include + #include +@@ -73,8 +74,12 @@ void CPCIDSKBinarySegment::Load() + if (loaded_) { + return; + } ++ if( data_size - 1024 > static_cast(std::numeric_limits::max()) ) ++ { ++ return ThrowPCIDSKException("too large data_size"); ++ } + +- seg_data.SetSize((int)data_size - 1024); ++ seg_data.SetSize((int)(data_size - 1024)); + + ReadFromFile(seg_data.buffer, 0, data_size - 1024); + diff --git a/gdal-1.9.0-java.patch b/gdal-1.9.0-java.patch new file mode 100644 index 0000000..82ef7fb --- /dev/null +++ b/gdal-1.9.0-java.patch @@ -0,0 +1,11 @@ +diff -rupN --no-dereference gdal-3.2.2-fedora/swig/java/java.opt gdal-3.2.2-fedora-new/swig/java/java.opt +--- gdal-3.2.2-fedora/swig/java/java.opt 2021-03-05 12:38:35.000000000 +0100 ++++ gdal-3.2.2-fedora-new/swig/java/java.opt 2021-03-24 13:44:40.268428769 +0100 +@@ -7,6 +7,6 @@ JAVADOC=$(JAVA_HOME)/bin/javadoc + JAVAC=$(JAVA_HOME)/bin/javac + JAVA=$(JAVA_HOME)/bin/java + JAR=$(JAVA_HOME)/bin/jar +-JAVA_INCLUDE=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux ++JAVA_INCLUDE=-I/usr/lib/jvm/java/include/ -I/usr/lib/jvm/java/include/linux + + diff --git a/gdal-gcc11.patch b/gdal-gcc11.patch index 2177709..6f82ece 100644 --- a/gdal-gcc11.patch +++ b/gdal-gcc11.patch @@ -1,6 +1,6 @@ -diff -rupN --no-dereference gdal-3.3.0-fedora/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp gdal-3.3.0-fedora-new/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp ---- gdal-3.3.0-fedora/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp 2021-04-26 14:31:00.000000000 +0200 -+++ gdal-3.3.0-fedora-new/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp 2021-05-03 17:18:20.482677217 +0200 +diff -rupN --no-dereference gdal-3.2.2-fedora/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp gdal-3.2.2-fedora-new/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp +--- gdal-3.2.2-fedora/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp 2021-03-05 12:39:39.000000000 +0100 ++++ gdal-3.2.2-fedora-new/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp 2021-03-24 13:44:41.499428801 +0100 @@ -34,6 +34,7 @@ #include #include @@ -9,9 +9,9 @@ diff -rupN --no-dereference gdal-3.3.0-fedora/ogr/ogrsf_frmts/cad/libopencad/cad //------------------------------------------------------------------------------ // CADVector -diff -rupN --no-dereference gdal-3.3.0-fedora/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp gdal-3.3.0-fedora-new/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp ---- gdal-3.3.0-fedora/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp 2021-04-26 14:30:59.000000000 +0200 -+++ gdal-3.3.0-fedora-new/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp 2021-05-03 17:18:20.483677217 +0200 +diff -rupN --no-dereference gdal-3.2.2-fedora/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp gdal-3.2.2-fedora-new/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp +--- gdal-3.2.2-fedora/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp 2021-03-05 12:39:38.000000000 +0100 ++++ gdal-3.2.2-fedora-new/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp 2021-03-24 13:44:41.499428801 +0100 @@ -39,6 +39,7 @@ #include #include @@ -20,9 +20,9 @@ diff -rupN --no-dereference gdal-3.3.0-fedora/ogr/ogrsf_frmts/cad/libopencad/dwg #if ((defined(__sun__) || defined(__FreeBSD__)) && __GNUC__ == 4 && __GNUC_MINOR__ == 8) || defined(__ANDROID__) // gcc 4.8 on Solaris 11.3 or FreeBSD 11 doesn't have std::string -diff -rupN --no-dereference gdal-3.3.0-fedora/third_party/LercLib/Lerc2.h gdal-3.3.0-fedora-new/third_party/LercLib/Lerc2.h ---- gdal-3.3.0-fedora/third_party/LercLib/Lerc2.h 2021-04-26 14:30:17.000000000 +0200 -+++ gdal-3.3.0-fedora-new/third_party/LercLib/Lerc2.h 2021-05-03 17:18:20.483677217 +0200 +diff -rupN --no-dereference gdal-3.2.2-fedora/third_party/LercLib/Lerc2.h gdal-3.2.2-fedora-new/third_party/LercLib/Lerc2.h +--- gdal-3.2.2-fedora/third_party/LercLib/Lerc2.h 2021-03-05 12:38:57.000000000 +0100 ++++ gdal-3.2.2-fedora-new/third_party/LercLib/Lerc2.h 2021-03-24 13:44:41.500428801 +0100 @@ -30,6 +30,7 @@ Contributors: Thomas Maurer #include #include diff --git a/gdal.spec b/gdal.spec index 853af72..5d5ec63 100644 --- a/gdal.spec +++ b/gdal.spec @@ -8,7 +8,7 @@ #TODO: Consider doxy patch from Suse, setting EXTRACT_LOCAL_CLASSES = NO # Tests can be of a different version -%global testversion 3.3.0 +%global testversion 3.2.2 %global run_tests 1 %global bashcompletiondir %(pkg-config --variable=compatdir bash-completion) @@ -31,6 +31,7 @@ %global spatialite "--with-spatialite" %endif +%bcond_with python2 %bcond_without python3 # No ppc64 build for spatialite in EL6 @@ -43,8 +44,8 @@ %endif Name: gdal -Version: 3.3.0 -Release: 5%{?dist}%{?bootstrap:.%{bootstrap}.bootstrap} +Version: 3.2.2 +Release: 3%{?dist}%{?bootstrap:.%{bootstrap}.bootstrap} Summary: GIS file format library License: MIT URL: http://www.gdal.org @@ -59,8 +60,8 @@ Source3: %{name}-cleaner.sh Source4: PROVENANCE.TXT-fedora -# Java build fixes -Patch2: gdal_java.patch +# Fedora uses Alternatives for Java +Patch2: %{name}-1.9.0-java.patch # Ensure rpc/types.h is found by dods driver (indirectly required by libdap/XDRUtils.h) Patch3: gdal_tirpcinc.patch # Use libtool to create libiso8211.a, otherwise broken static lib is created since object files are compiled through libtool @@ -76,6 +77,13 @@ Patch7: gdal_nopdf.patch Patch8: %{name}-gcc11.patch # Drop -diag-disable compile flag Patch9: gdal_no-diag-disable.patch +# Fix GEOS and SFCGAL checks: +# https://github.com/OSGeo/gdal/pull/3476 +Patch10: 0001-configure-Also-save-LDFLAGS-when-checking-compilabil.patch +Patch11: 0002-configure-Ensure-with-geos-sfcgal-fail-if-unavailabl.patch +# Backport patch for CVE-2021-45943 +# https://github.com/OSGeo/gdal/pull/4944 +Patch12: CVE-2021-45943.patch BuildRequires: gcc @@ -144,6 +152,10 @@ BuildRequires: poppler-devel %endif BuildRequires: libpq-devel BuildRequires: proj-devel >= 5.2.0 +%if %{with python2} +BuildRequires: python2-devel +BuildRequires: python2-numpy +%endif %if %{with python3} BuildRequires: python3-devel BuildRequires: python3-numpy @@ -235,6 +247,23 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi The GDAL Perl modules provide support to handle multiple GIS file formats. +%if %{with python2} +%package -n python2-gdal +%{?python_provide:%python_provide python2-gdal} +# Remove before F30 +Provides: %{name}-python = %{version}-%{release} +Provides: %{name}-python%{?_isa} = %{version}-%{release} +Obsoletes: %{name}-python < %{version}-%{release} +Summary: Python modules for the GDAL file format library +Requires: numpy +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description -n python2-gdal +The GDAL Python modules provide support to handle multiple GIS file formats. +The package also includes a couple of useful utilities in Python. +%endif + + %if %{with python3} %package -n python3-gdal %{?python_provide:%python_provide python3-gdal} @@ -249,10 +278,10 @@ The GDAL Python 3 modules provide support to handle multiple GIS file formats. %endif -%if %{with python3} +%if %{with python2} || %{with python3} %package python-tools Summary: Python tools for the GDAL file format library -Requires: python3-gdal +Requires: %{?with_python3:python3-gdal}%{?!with_python3:python2-gdal} %description python-tools The GDAL Python package provides number of tools for programming and @@ -269,7 +298,11 @@ This package contains documentation for GDAL. # We don't want to provide private Python extension libs -%if %{with_python3} +%if %{with python2} && %{with python3} +%global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\.so$ +%elif %{with python2} +%global __provides_exclude_from ^%{python2_sitearch}/.*\.so$ +%elif %{with_python3} %global __provides_exclude_from ^%{python3_sitearch}/.*\.so$ %endif @@ -295,6 +328,15 @@ cp -p %SOURCE4 . sed -i 's|with_dods_root/lib|with_dods_root/lib64|' configure.ac %endif +# Tests expect to be next to gdal source directory, but we extract them within +# it. And putting tests next to the source directory wouldn't account for the +# version in the directory name, anyway, so we need to correct this. +sed -i \ + -e 's!../../gdal/swig/python/samples!../../swig/python/samples!' \ + %{name}autotest-%{testversion}/gcore/{cog,tiff_write}.py \ + %{name}autotest-%{testversion}/gdrivers/{gpkg,jp2lura,jp2openjpeg,test_validate_jp2}.py \ + %{name}autotest-%{testversion}/ogr/ogr_gpkg.py + %build # For future reference: @@ -365,13 +407,14 @@ make docs # Make Java module and documentation pushd swig/java make - ANT_OPTS="-Dfile.encoding=utf-8" ant maven + ant maven popd %mvn_artifact swig/java/build/maven/gdal-%version.pom swig/java/build/maven/gdal-%version.jar %endif # Make Python modules pushd swig/python + %{?with_python2:%py2_build} %{?with_python3:%py3_build} popd @@ -384,6 +427,7 @@ popd %install pushd swig/python + %{?with_python2:%py2_install} %{?with_python3:%py3_install} popd @@ -394,9 +438,6 @@ popd # Drop gdal.pdf symlink, as we don't build the pdf documentation rm doc/build/html/gdal.pdf -# Drop samples, installed through %%doc -rm -rf %{python3_sitearch}/osgeo_utils/samples - install -pm 755 ogr/ogrsf_frmts/s57/s57dump %{buildroot}%{_bindir} install -pm 755 frmts/iso8211/8211createfromxml %{buildroot}%{_bindir} install -pm 755 frmts/iso8211/8211dump %{buildroot}%{_bindir} @@ -410,7 +451,7 @@ mkdir -p %{buildroot}%{_libdir}/%{name}plugins #TODO: Don't do that? rm %{buildroot}%{perl_archlib}/perllocal.pod -%if %{without python3} +%if %{without python} && %{without python3} rm %buildroot%_mandir/man1/{pct2rgb,rgb2pct}.1 %endif @@ -579,8 +620,8 @@ popd %files libs %license LICENSE.TXT %doc NEWS PROVENANCE.TXT COMMITTERS PROVENANCE.TXT-fedora -%{_libdir}/libgdal.so.29 -%{_libdir}/libgdal.so.29.* +%{_libdir}/libgdal.so.28 +%{_libdir}/libgdal.so.28.* %{_datadir}/%{name} %dir %{_libdir}/%{name}plugins @@ -608,14 +649,23 @@ popd %{perl_vendorarch}/* %{_mandir}/man3/*.3pm* +%if %{with python2} +%files -n python2-gdal +%doc swig/python/README.rst +%doc swig/python/samples +%{python2_sitearch}/osgeo/ +%{python2_sitearch}/GDAL-%{version}-py*.egg-info/ +%endif + %if %{with python3} %files -n python3-gdal %doc swig/python/README.rst -%doc swig/python/gdal-utils/osgeo_utils/samples +%doc swig/python/samples +%{python3_sitearch}/osgeo %{python3_sitearch}/GDAL-%{version}-py*.egg-info/ -%{python3_sitearch}/osgeo/ -%{python3_sitearch}/osgeo_utils/ +%endif +%if %{with python2} || %{with python3} %files python-tools %_bindir/*.py %{_mandir}/man1/pct2rgb.1* @@ -639,21 +689,12 @@ popd #Or as before, using ldconfig %changelog -* Fri May 21 2021 Sandro Mani - 3.3.0-5 +* Fri Feb 04 2022 Sandro Mani - 3.2.2-3 +- Backport patch for CVE-2021-45943 + +* Wed Jun 16 2021 Björn Esser - 3.2.2-2 - Rebuild (libgta) -* Fri May 21 2021 Jitka Plesnikova - 3.3.0-4 -- Perl 5.34 rebuild - -* Thu May 20 2021 Richard Shaw - 3.3.0-3 -- Rebuilding for libgta 1.2.1. - -* Fri May 07 2021 Sandro Mani - 3.3.0-2 -- Rebuild (gdal) - -* Mon May 03 2021 Sandro Mani - 3.3.0-1 -- Update to 3.3.0 - * Wed Mar 24 2021 Sandro Mani - 3.2.2-1 - Update to 3.2.2 diff --git a/gdal_installapps.patch b/gdal_installapps.patch index fa920f4..f53b350 100644 --- a/gdal_installapps.patch +++ b/gdal_installapps.patch @@ -1,6 +1,6 @@ -diff -rupN --no-dereference gdal-3.3.0-fedora/apps/GNUmakefile gdal-3.3.0-fedora-new/apps/GNUmakefile ---- gdal-3.3.0-fedora/apps/GNUmakefile 2021-04-26 14:29:56.000000000 +0200 -+++ gdal-3.3.0-fedora-new/apps/GNUmakefile 2021-05-03 17:18:20.058677207 +0200 +diff -rupN --no-dereference gdal-3.2.2-fedora/apps/GNUmakefile gdal-3.2.2-fedora-new/apps/GNUmakefile +--- gdal-3.2.2-fedora/apps/GNUmakefile 2021-03-05 12:38:35.000000000 +0100 ++++ gdal-3.2.2-fedora-new/apps/GNUmakefile 2021-03-24 13:44:41.091428790 +0100 @@ -233,6 +233,7 @@ gdal-config-inst: gdal-config.in ../GDAL install: default diff --git a/gdal_iso8211.patch b/gdal_iso8211.patch index 9fe8dd4..4929939 100644 --- a/gdal_iso8211.patch +++ b/gdal_iso8211.patch @@ -1,6 +1,6 @@ -diff -rupN --no-dereference gdal-3.3.0-fedora/frmts/iso8211/GNUmakefile gdal-3.3.0-fedora-new/frmts/iso8211/GNUmakefile ---- gdal-3.3.0-fedora/frmts/iso8211/GNUmakefile 2021-04-26 14:29:56.000000000 +0200 -+++ gdal-3.3.0-fedora-new/frmts/iso8211/GNUmakefile 2021-05-03 17:18:19.611677197 +0200 +diff -rupN --no-dereference gdal-3.2.2-fedora/frmts/iso8211/GNUmakefile gdal-3.2.2-fedora-new/frmts/iso8211/GNUmakefile +--- gdal-3.2.2-fedora/frmts/iso8211/GNUmakefile 2021-03-05 12:38:35.000000000 +0100 ++++ gdal-3.2.2-fedora-new/frmts/iso8211/GNUmakefile 2021-03-24 13:44:40.686428780 +0100 @@ -23,8 +23,7 @@ dist-clean: clean rm -rf $(DISTDIR) diff --git a/gdal_java.patch b/gdal_java.patch deleted file mode 100644 index 148e5a8..0000000 --- a/gdal_java.patch +++ /dev/null @@ -1,112 +0,0 @@ -diff -rupN --no-dereference gdal-3.3.0-fedora/swig/java/java.opt gdal-3.3.0-fedora-new/swig/java/java.opt ---- gdal-3.3.0-fedora/swig/java/java.opt 2021-04-26 14:29:56.000000000 +0200 -+++ gdal-3.3.0-fedora-new/swig/java/java.opt 2021-05-03 17:18:19.173677188 +0200 -@@ -7,6 +7,6 @@ JAVADOC=$(JAVA_HOME)/bin/javadoc - JAVAC=$(JAVA_HOME)/bin/javac - JAVA=$(JAVA_HOME)/bin/java - JAR=$(JAVA_HOME)/bin/jar --JAVA_INCLUDE=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -+JAVA_INCLUDE=-I/usr/lib/jvm/java/include/ -I/usr/lib/jvm/java/include/linux - - -diff -rupN gdal-3.3.0-fedora/swig/java/add_javadoc.c gdal-3.3.0-fedora-new/swig/java/add_javadoc.c ---- gdal-3.3.0-fedora/swig/java/add_javadoc.c 2021-04-26 14:29:58.000000000 +0200 -+++ gdal-3.3.0-fedora-new/swig/java/add_javadoc.c 2021-05-04 00:54:09.480133336 +0200 -@@ -133,22 +133,22 @@ int main(int argc, char* argv[]) - FILE* fDst; - JavaDocInstance* instances = (JavaDocInstance*)calloc(sizeof(JavaDocInstance), 3000); - int nInstances = 0; -- char szLine[256]; -- char szClass[256]; -+ char szLine[512]; -+ char szClass[512]; - char javadoc[16384]; - szClass[0] = 0; -- while(fgets(szLine, 255, fSrc)) -+ while(fgets(szLine, 511, fSrc)) - { - if (strstr(szLine, "/**") == NULL) continue; - begin: - strcpy(javadoc, szLine); -- while(fgets(szLine, 255, fSrc)) -+ while(fgets(szLine, 511, fSrc)) - { - strcat(javadoc, szLine); - if (strstr(szLine, "*/")) - break; - } -- while(fgets(szLine, 255, fSrc)) -+ while(fgets(szLine, 511, fSrc)) - { - if (szLine[0] == 10) - continue; -@@ -188,10 +188,10 @@ begin: - fDst = fopen(szDstName, "wt"); - if (fDst == NULL) continue; - szClass[0] = 0; -- char szPackage[256]; -+ char szPackage[512]; - szPackage[0] = 0; - -- while(fgets(szLine, 255, fSrc)) -+ while(fgets(szLine, 511, fSrc)) - { - char szMethodName[1024]; - char* szOriLine = strdup(szLine); -@@ -224,8 +224,10 @@ begin: - if (strstr(szLine, "synchronized ")) - { - char* c = strstr(szLine, "synchronized "); -+ char rest[512]; -+ strcpy(rest, c + 13); - *c = 0; -- strcat(szLine, c + 13); -+ strcat(szLine, rest); - } - if (strstr(szLine, "public") && !strstr(szLine, "native")) - { -@@ -234,7 +236,7 @@ begin: - strcpy(szMethodName, szLine); - do - { -- fgets(szLine, 255, fSrc); -+ fgets(szLine, 511, fSrc); - strcpy(szMethodName + strlen(szMethodName) - 1, szLine); - } while (!strchr(szMethodName,')')); - strcpy(szLine, szMethodName); -@@ -261,7 +263,7 @@ begin: - { - do - { -- fgets(szLine, 255, fSrc); -+ fgets(szLine, 511, fSrc); - } while (!strchr(szLine,'}')); - } - break; -@@ -289,7 +291,7 @@ begin: - nBrackets --; - } - } -- fgets(szLine, 255, fSrc); -+ fgets(szLine, 511, fSrc); - } while(bFoundOpen == FALSE || nBrackets > 0); - } - else -diff -rupN gdal-3.3.0-fedora/swig/java/javadoc.java gdal-3.3.0-fedora-new/swig/java/javadoc.java ---- gdal-3.3.0-fedora/swig/java/javadoc.java 2021-04-26 14:29:59.000000000 +0200 -+++ gdal-3.3.0-fedora-new/swig/java/javadoc.java 2021-05-05 09:08:14.992037179 +0200 -@@ -11982,12 +11982,12 @@ public interface osrConstants:public fin - public interface osrConstants:public final static int PROJ_ERR_COORD_TRANSFM - - /** -- * Invalid input coordinate. e.g a latitude > 90°. -+ * Invalid input coordinate. e.g a latitude > 90 deg. - */ - public interface osrConstants:public final static int PROJ_ERR_COORD_TRANSFM_INVALID_COORD - - /** -- * Coordinate is outside of the projection domain. e.g approximate mercator with \|longitude - lon_0\| > 90°, -+ * Coordinate is outside of the projection domain. e.g approximate mercator with \|longitude - lon_0\| > 90 deg, - * or iterative convergence method failed. - */ - public interface osrConstants:public final static int PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN diff --git a/gdal_no-diag-disable.patch b/gdal_no-diag-disable.patch index 57b575a..acc32bf 100644 --- a/gdal_no-diag-disable.patch +++ b/gdal_no-diag-disable.patch @@ -1,7 +1,7 @@ -diff -rupN --no-dereference gdal-3.3.0-fedora/configure.ac gdal-3.3.0-fedora-new/configure.ac ---- gdal-3.3.0-fedora/configure.ac 2021-04-26 14:29:56.000000000 +0200 -+++ gdal-3.3.0-fedora-new/configure.ac 2021-05-03 17:18:20.692677222 +0200 -@@ -64,7 +64,7 @@ dnl warning #2304: non-explicit construc +diff -rupN --no-dereference gdal-3.2.2-fedora/configure.ac gdal-3.2.2-fedora-new/configure.ac +--- gdal-3.2.2-fedora/configure.ac 2021-03-05 12:38:35.000000000 +0100 ++++ gdal-3.2.2-fedora-new/configure.ac 2021-03-24 13:44:41.701428806 +0100 +@@ -61,7 +61,7 @@ dnl warning #2304: non-explicit construc dnl warning #3280: declaration hides member dnl remark #11074: Inlining inhibited by limit max-size dnl remark #11076: To get full report use -qopt-report=4 -qopt-report-phase ipo diff --git a/gdal_nopdf.patch b/gdal_nopdf.patch index 99dbe59..a31a78f 100644 --- a/gdal_nopdf.patch +++ b/gdal_nopdf.patch @@ -1,6 +1,6 @@ -diff -rupN --no-dereference gdal-3.3.0-fedora/doc/source/index.rst gdal-3.3.0-fedora-new/doc/source/index.rst ---- gdal-3.3.0-fedora/doc/source/index.rst 2021-04-26 14:29:56.000000000 +0200 -+++ gdal-3.3.0-fedora-new/doc/source/index.rst 2021-05-03 17:18:20.270677212 +0200 +diff -rupN --no-dereference gdal-3.2.2-fedora/doc/source/index.rst gdal-3.2.2-fedora-new/doc/source/index.rst +--- gdal-3.2.2-fedora/doc/source/index.rst 2021-03-05 12:38:35.000000000 +0100 ++++ gdal-3.2.2-fedora-new/doc/source/index.rst 2021-03-24 13:44:41.294428795 +0100 @@ -4,8 +4,6 @@ GDAL .. include:: ./about_no_title.rst diff --git a/gdal_sphinx.patch b/gdal_sphinx.patch index 8039a4c..53dc39e 100644 --- a/gdal_sphinx.patch +++ b/gdal_sphinx.patch @@ -1,12 +1,12 @@ -diff -rupN --no-dereference gdal-3.3.0-fedora/doc/Makefile gdal-3.3.0-fedora-new/doc/Makefile ---- gdal-3.3.0-fedora/doc/Makefile 2021-04-26 14:29:56.000000000 +0200 -+++ gdal-3.3.0-fedora-new/doc/Makefile 2021-05-03 17:18:19.833677202 +0200 +diff -rupN --no-dereference gdal-3.2.2-fedora/doc/Makefile gdal-3.2.2-fedora-new/doc/Makefile +--- gdal-3.2.2-fedora/doc/Makefile 2021-03-05 12:38:35.000000000 +0100 ++++ gdal-3.2.2-fedora-new/doc/Makefile 2021-03-24 13:44:40.886428785 +0100 @@ -2,7 +2,7 @@ # # You can set these variables from the command line. --SPHINXOPTS ?= --keep-going -j auto -W -+SPHINXOPTS ?= --keep-going +-SPHINXOPTS = --keep-going -j auto -W ++SPHINXOPTS = --keep-going SPHINXBUILD = sphinx-build SOURCEDIR = source BUILDDIR = build diff --git a/gdal_tirpcinc.patch b/gdal_tirpcinc.patch index 8742261..dbb2204 100644 --- a/gdal_tirpcinc.patch +++ b/gdal_tirpcinc.patch @@ -1,24 +1,24 @@ -diff -rupN --no-dereference gdal-3.3.0-fedora/frmts/dods/GNUmakefile gdal-3.3.0-fedora-new/frmts/dods/GNUmakefile ---- gdal-3.3.0-fedora/frmts/dods/GNUmakefile 2021-04-26 14:29:56.000000000 +0200 -+++ gdal-3.3.0-fedora-new/frmts/dods/GNUmakefile 2021-05-03 17:18:19.398677193 +0200 +diff -rupN --no-dereference gdal-3.2.2-fedora/frmts/dods/GNUmakefile gdal-3.2.2-fedora-new/frmts/dods/GNUmakefile +--- gdal-3.2.2-fedora/frmts/dods/GNUmakefile 2021-03-05 12:38:35.000000000 +0100 ++++ gdal-3.2.2-fedora-new/frmts/dods/GNUmakefile 2021-03-24 13:44:40.477428774 +0100 @@ -4,7 +4,7 @@ include ../../GDALmake.opt OBJ = dodsdataset2.o --CPPFLAGS := $(CPPFLAGS) $(DODS_INC) $(LIBXML2_INC) -+CPPFLAGS := $(CPPFLAGS) $(DODS_INC) $(LIBXML2_INC) -I/usr/include/tirpc +-CPPFLAGS := $(CPPFLAGS) $(DODS_INC) ++CPPFLAGS := $(CPPFLAGS) $(DODS_INC) -I/usr/include/tirpc default: $(OBJ:.o=.$(OBJ_EXT)) -diff -rupN --no-dereference gdal-3.3.0-fedora/ogr/ogrsf_frmts/dods/GNUmakefile gdal-3.3.0-fedora-new/ogr/ogrsf_frmts/dods/GNUmakefile ---- gdal-3.3.0-fedora/ogr/ogrsf_frmts/dods/GNUmakefile 2021-04-26 14:29:56.000000000 +0200 -+++ gdal-3.3.0-fedora-new/ogr/ogrsf_frmts/dods/GNUmakefile 2021-05-03 17:18:19.398677193 +0200 +diff -rupN --no-dereference gdal-3.2.2-fedora/ogr/ogrsf_frmts/dods/GNUmakefile gdal-3.2.2-fedora-new/ogr/ogrsf_frmts/dods/GNUmakefile +--- gdal-3.2.2-fedora/ogr/ogrsf_frmts/dods/GNUmakefile 2021-03-05 12:38:36.000000000 +0100 ++++ gdal-3.2.2-fedora-new/ogr/ogrsf_frmts/dods/GNUmakefile 2021-03-24 13:44:40.477428774 +0100 @@ -5,7 +5,7 @@ include ../../../GDALmake.opt OBJ = ogrdodsdriver.o ogrdodsdatasource.o ogrdodslayer.o \ ogrdodssequencelayer.o ogrdodsfielddefn.o ogrdodsgrid.o --CPPFLAGS := -I.. $(CPPFLAGS) $(DODS_INC) $(LIBXML2_INC) -DDO_NOT_USE_DEBUG_BOOL -+CPPFLAGS := -I.. $(CPPFLAGS) $(DODS_INC) $(LIBXML2_INC) -DDO_NOT_USE_DEBUG_BOOL -I/usr/include/tirpc +-CPPFLAGS := -I.. $(CPPFLAGS) $(DODS_INC) -DDO_NOT_USE_DEBUG_BOOL ++CPPFLAGS := -I.. $(CPPFLAGS) $(DODS_INC) -DDO_NOT_USE_DEBUG_BOOL -I/usr/include/tirpc default: $(O_OBJ:.o=.$(OBJ_EXT)) diff --git a/sources b/sources index 3fd724e..e839997 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (gdalautotest-3.3.0.tar.gz) = facd8ec0c0743240d6bbdd271ef659182c9d38857a71e2abe153019e27f4adad94f759f007a31472941487ed2d3f588a10412e955f9bd99ea25da2dc97a8924d -SHA512 (gdal-3.3.0-fedora.tar.xz) = ce83c49740f333be17fa9e2287f2c24b79eed67c63fcf975eeda0340010f90b89085d4ee4e30da0105ddc53a2ac19eefaa89879dd27c33706a47546e9350e7ba +SHA512 (gdalautotest-3.2.2.tar.gz) = 324326f590fcd508e99f4ed5396a0d61065449f44894e2844e464650097c353eaf3c14074afa862c8d0784569e29545d4050ea65ded95cd02e5bb02deed80dc4 +SHA512 (gdal-3.2.2-fedora.tar.xz) = 3c3d84c77d93ab6943497571a4e6c1bea4a0b74f897f602abcdd59dda5e0799305d8b9444425593631f2d3852722568740237890c0af72ce3b8533367e04ab00