[MacPorts] #45755: gdal @1.11.1: Assuming case-sensitive file-system?

MacPorts noreply at macports.org
Mon Nov 3 11:06:25 PST 2014


#45755: gdal @1.11.1: Assuming case-sensitive file-system?
-------------------------------------+---------------------
  Reporter:  fredrik.andersson.71@…  |      Owner:  vince@…
      Type:  defect                  |     Status:  new
  Priority:  Normal                  |  Milestone:
 Component:  ports                   |    Version:  2.3.2
Resolution:                          |   Keywords:
      Port:  gdal                    |
-------------------------------------+---------------------
Changes (by ryandesign@…):

 * cc: ryandesign@… (added)
 * owner:  macports-tickets@… => vince@…


Comment:

 Ah sorry, I didn't realize gdal had just been updated today in r127765,
 causing this problem. This code added in that revision:

 {{{
 # local cpl_port.h is masked by ${prefix} one

 post-extract {
     file copy ${worksrcpath}/port/cpl_port.h
 ${worksrcpath}/port/Cpl_port.h
     set files_to_patch [exec find ${worksrcpath} -type f -exec grep -l
 "cpl_port.h" \{\} \;]
     foreach file ${files_to_patch} {
         puts ${file}
         reinplace -locale C "s|cpl_port.h|Cpl_port.h|" ${file}
     }
 }

 post-build {
     file delete ${worksrcpath}/port/Cpl_port.h
 }
 }}}

 is incompatible with case-insensitive filesystems.

 This is also a very unusual approach for addressing this common problem.
 The problem is caused by `-I` flags in the wrong order. Ideally, fix the
 order of the `-I` flags in gdal's build system so that local directories
 precede system ones. Alternately, replace instances of
 `-I${prefix}/include` with `-isystem${prefix}/include`. It may suffice to
 add the single line:

 {{{
 configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
 }}}

 See also ##40656.

 Vince, can you take care of this?

-- 
Ticket URL: <https://trac.macports.org/ticket/45755#comment:5>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list