[oe-commits] [meta-openembedded] 21/57: postgresql.inc: Fix do_configure error (could not find Python.h)

git at git.openembedded.org git at git.openembedded.org
Tue Oct 25 13:34:28 UTC 2016


martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit a87270eb9b086d3fbda7f586ce548c1a4ab489f1
Author: Mario Domenech Goulart <mario.goulart at gmail.com>
AuthorDate: Sun Oct 16 14:15:49 2016 +0200

    postgresql.inc: Fix do_configure error (could not find Python.h)
    
    Fixes:
    
    | checking for Python.h... no
    | configure: error: header file <Python.h> is required for Python
    | NOTE: The following config.log files may provide further information.
    | WARNING: exit code 1 from a shell command.
    | NOTE: .../tmp/work/armv5e-poky-linux-gnueabi/postgresql/9.4.8-r0.0/build/config.log
    | ERROR: configure failed
    
    Signed-off-by: Mario Domenech Goulart <mario.goulart at gmail.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 meta-oe/recipes-support/postgresql/postgresql.inc | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/meta-oe/recipes-support/postgresql/postgresql.inc b/meta-oe/recipes-support/postgresql/postgresql.inc
index 9592c79..454624c 100644
--- a/meta-oe/recipes-support/postgresql/postgresql.inc
+++ b/meta-oe/recipes-support/postgresql/postgresql.inc
@@ -40,6 +40,8 @@ export LDFLAGS_SL = "${LDFLAGS}"
 
 inherit autotools pkgconfig perlnative pythonnative useradd update-rc.d systemd
 
+CFLAGS += "-I${STAGING_INCDIR}/${PYTHON_DIR}"
+
 SYSTEMD_SERVICE_${PN} = "postgresql.service"
 SYSTEMD_AUTO_ENABLE_${PN} = "disable"
 
@@ -109,12 +111,6 @@ python populate_packages_prepend() {
 }
 
 do_configure() {
-    # do_configure_prepend
-    # make sure configure finds python includdirs with these envs
-    export \
-           STAGING_INCDIR=${STAGING_INCDIR} \
-           STAGING_LIBDIR=${STAGING_LIBDIR}
-
     # do_configure
     autotools_do_configure
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list