[postgis-tickets] [PostGIS] #3992: Use PKG_PROG_PKG_CONFIG macro from pkg.m4 to detect pkg-config.

PostGIS trac at osgeo.org
Tue Jan 16 06:19:50 PST 2018


#3992: Use PKG_PROG_PKG_CONFIG macro from pkg.m4 to detect pkg-config.
-----------------------------------+---------------------------
 Reporter:  Bas Couwenberg         |      Owner:  strk
     Type:  defect                 |     Status:  new
 Priority:  medium                 |  Milestone:  PostGIS 2.4.3
Component:  build/upgrade/install  |    Version:  2.4.x
 Keywords:                         |
-----------------------------------+---------------------------
 The `AC_PATH_PROG` macro fails to select the correct version to support
 cross-compilation.

 This triggers a lintian issue for the Debian package builds:
 [https://lintian.debian.org/tags/autotools-pkg-config-macro-not-cross-
 compilation-safe.html autotools-pkg-config-macro-not-cross-compilation-
 safe]

 > The package appears to use `AC_PATH_PROG` to discover the location of
 `pkg-config(1)`. This macro fails to select the correct version to support
 cross-compilation.
 >
 > A better way would be to use the `PKG_PROG_PKG_CONFIG` macro from
 `pkg.m4` and then using the `$PKG_CONFIG` shell variable.
 >
 > Refer to https://bugs.debian.org/884798 for details.

 The attached patch implements this suggestion.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3992>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list