pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/geography/gdal-lib gdal-lib: fix CONFIGURE_ARGS refere...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/55a04209c95c
branches:  trunk
changeset: 390797:55a04209c95c
user:      brook <brook%pkgsrc.org@localhost>
date:      Thu Dec 29 19:45:48 2022 +0000

description:
gdal-lib: fix CONFIGURE_ARGS reference to non-existent directory

The configure script for gdal-lib specifies locations for various
required libraries via command line arguments.  For example, the
configure script defines compiler flags for the location of libz based
upon the --with-libz argument as follows:

EXTRA_INCLUDES="-I$with_libz -I$with_libz/include $EXTRA_INCLUDES"

Since the origin of the package, the location of libz has been
specified in Makefile.common as follows:

CONFIGURE_ARGS+=        --with-libz=${BUILDLINK_PREFIX.zlib}/include

In a typical pkgsrc installation, the configure script is run with the
argument --with-libz=/usr/pkg/include, which leads to the following
compiler flags:

          -I/usr/pkg/include -I/usr/pkg/include/include

The latter directory of course generally never exists.  Although this
has apparently worked in the past, gcc12 exits with an error.

This patch removes the extra /include suffix from the libz location
specified in CONFIGURE_ARGS.  As a result, libz now matches the way
other libraries are specified, none of which include the /include
suffix and all of which are handled in the configure script in similar
ways.

diffstat:

 geography/gdal-lib/Makefile.common |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 4948efdfb5d5 -r 55a04209c95c geography/gdal-lib/Makefile.common
--- a/geography/gdal-lib/Makefile.common        Thu Dec 29 16:23:51 2022 +0000
+++ b/geography/gdal-lib/Makefile.common        Thu Dec 29 19:45:48 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.22 2022/11/27 01:10:22 gdt Exp $
+# $NetBSD: Makefile.common,v 1.23 2022/12/29 19:45:48 brook Exp $
 #
 # used by geography/gdal-lib/Makefile
 # used by geography/py-gdal/Makefile
@@ -32,7 +32,7 @@
 CONFIGURE_ARGS+=       --with-geos
 CONFIGURE_ARGS+=       --with-libjson-c=internal
 CONFIGURE_ARGS+=       --with-libtiff=${BUILDLINK_PREFIX.tiff}
-CONFIGURE_ARGS+=       --with-libz=${BUILDLINK_PREFIX.zlib}/include
+CONFIGURE_ARGS+=       --with-libz=${BUILDLINK_PREFIX.zlib}
 CONFIGURE_ARGS+=       --with-netcdf=${BUILDLINK_PREFIX.netcdf}
 CONFIGURE_ARGS+=       --with-webp=${BUILDLINK_PREFIX.libwebp}
 CONFIGURE_ARGS+=       --with-xerces



Home | Main Index | Thread Index | Old Index