[MacPorts] #62089: gdal @3.2.1 configure failure: invalid feature name: driver-kmlsuperoverlay

MacPorts noreply at macports.org
Sat Jan 30 00:00:00 UTC 2021


#62089: gdal @3.2.1 configure failure: invalid feature name: driver-kmlsuperoverlay
--------------------------+----------------------
  Reporter:  AgilentGCMS  |      Owner:  Veence
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.6.4
Resolution:               |   Keywords:
      Port:  gdal         |
--------------------------+----------------------

Comment (by tsilva451):

 I think we found the problem.  In the file

 {{{
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/gis/gdal/Portfile
 }}}

 there seems to be an unwanted, invisible character after the 1st occurance
 of {{{--disable-driver-kmlsuperoverlay}}}, just before the escaped
 newline:

 {{{
 configure.args-append \
 ...
                     --disable-driver-kmlsuperoverlay \
 }}}

 I think it is a non-breaking space character (0xc2a0):

 {{{
 $ od -c /tmp/bogus-character
 0000000   -   k   m   l   s   u   p   e   r   o   v   e   r   l   a   y
 0000020   �   �   \
 0000023

 $ od --endian=big -x /tmp/bogus-character
 0000000 2d6b 6d6c 7375 7065 726f 7665 726c 6179
 0000020 c2a0 5c00
 0000023
 }}}

 I changed that one character (16-bit) to a plain ol' space (0x20, 8-bit),
 and was then able to install GDAL with LIBKML.

 {{{
 $ sudo port install gdal +libkml

 $ port installed gdal
 The following ports are currently installed:
   gdal @3.2.1_0+libkml+postgresql13+proj7 (active)

 $ ogr2ogr --formats | grep -i kml
   LIBKML -vector- (rw+v): Keyhole Markup Language (LIBKML)
   KML -vector- (rw+v): Keyhole Markup Language (KML)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/62089#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list