All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] How to deal configure file getting wrong include path
@ 2018-07-10 23:43 Mark Hawthorne
  2018-07-11  3:38 ` Bernd Kuhls
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Hawthorne @ 2018-07-10 23:43 UTC (permalink / raw)
  To: buildroot

I have a tricky package situation that I'm not sure how to properly handle.

I added a package to build spatialite. Spatialite depends on the geos
library. At build time, the geos library generates a script called
geos-config which can be used to query the installation location for the
geos header files and libraries. Geos determines these locations at build
time using $exec and $exec_prefix and hard-codes them into the geos-config
file. The include path becomes "/usr/include". This is correct from the
perspective of the embedded target. However, the configure script for
spatialite queries the geos-config script to determine if the geos headers
exist. Instead of looking in the staging directory, it looks in the
directory returned by geos-config, i.e "/usr/include". The path should be
"buildroot/output/staging/usr/include"

Is there a clean way to solve this problem in buildroot or do I need to
patch around the geos-config step in the configure file?

https://www.gaia-gis.it/fossil/libspatialite/index

################################################################################
#
# libspatialite
#
################################################################################

LIBSPATIALITE_VERSION = 4.3.0a
LIBSPATIALITE_SOURCE = libspatialite-$(LIBSPATIALITE_VERSION).tar.gz
LIBSPATIALITE_SITE = http://www.gaia-gis.it/gaia-sins
LIBSPATIALITE_INSTALL_STAGING = YES
LIBSPATIALITE_INSTALL_TARGET = YES
LIBSPATIALITE_CONF_OPTS = --disable-shared
LIBSPATIALITE_DEPENDENCIES = libproj libfreexl sqlite geos libxml2

$(eval $(autotools-package))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180710/5d9ec72b/attachment.html>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] How to deal configure file getting wrong include path
  2018-07-10 23:43 [Buildroot] How to deal configure file getting wrong include path Mark Hawthorne
@ 2018-07-11  3:38 ` Bernd Kuhls
  0 siblings, 0 replies; 2+ messages in thread
From: Bernd Kuhls @ 2018-07-11  3:38 UTC (permalink / raw)
  To: buildroot

Hi Mark,

Am Tue, 10 Jul 2018 18:43:14 -0500 schrieb Mark Hawthorne:

> I added a package to build spatialite. Spatialite depends on the geos
> library. At build time, the geos library generates a script called
> geos-config which can be used to query the installation location for the
> geos header files and libraries. Geos determines these locations at
> build time using $exec and $exec_prefix and hard-codes them into the
> geos-config file. The include path becomes "/usr/include".

have a look at the buildroot docs and search for LIBFOO_CONFIG_SCRIPTS.
This should handle your problem.

Regards, Bernd

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-11  3:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-10 23:43 [Buildroot] How to deal configure file getting wrong include path Mark Hawthorne
2018-07-11  3:38 ` Bernd Kuhls

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.