#27672 closed defect (fixed)
gdal +universal fails to patch cpl_config.h on 32-bit systems
Reported by: | pt.responder@… | Owned by: | seanasy@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | Cc: | mf2k (Frank Schima) | |
Port: | gdal |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
patching file port/cpl_config.h Hunk #1 FAILED at 143. 1 out of 1 hunk FAILED -- saving rejects to file port/cpl_config.h.rej shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gis_gdal/work/gdal-1.7.3 && patch -p0 < /opt/local/var/macports/sources/rsync.macports.org/release/ports/gis/gdal/files/patch_cpl_config_h" returned error 1
Attachments (1)
Change History (11)
comment:1 Changed 14 years ago by Veence (Vincent)
comment:3 Changed 14 years ago by Veence (Vincent)
I'll test that on an old Mac Mini tomorrow and see if I get the same error.
comment:4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | gdal patch clp_config.h removed |
Owner: | changed from macports-tickets@… to seanasy@… |
Port: | gdal added |
comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | macsforever2000@… added |
---|
The problem only occurs when using the universal variant, on a computer where configure does not determine that SIZEOF_UNSIGNED_LONG and SIZEOF_VOIDP are both 8 -- in other words, on 32-bit machines like PowerPC G4 (not G5) and Intel Core (not Core 2) processors.
The whole point of the configure script is to discover values like this that differ by machine, so it doesn't make sense to then try to apply a patch on top of that; it can't help but fail in some cases. This is why we do this kind of after-the-fact changing of the values the configure script found by using an ed script, not a patch. See glib2, neon, lzo, etc. for examples.
The problem changes were made to the port in r46597.
comment:6 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | gdal @1.7.3 + patch error on file cpl_config.h -build failure → gdal +universal fails to patch cpl_config.h on 32-bit systems |
---|
comment:7 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Issue confirmed on my Power Mac G4 with Leopard.
comment:8 Changed 14 years ago by Veence (Vincent)
I have updated the build system to adopt the 'ed' file paradigm. Please update and try again.
comment:9 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
I cannot reproduce this