pam (1.0.2 and 0.79): install headers in ${includedir}/security
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 2 Oct 2008 22:10:54 +0000 (19:10 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 24 Oct 2008 21:57:29 +0000 (19:57 -0200)
While building an O.S. Systems module that uses the PAM library this
problem has been found since the code was compiling fine in a lot of
different environments and failing on OE.

Checking the source has been noticed that upstream explicitely set
includedir in configure script but autotools class overrided it by
mistake. This fixes it to the desired behaviour.

packages/pam/libpam_0.79.bb
packages/pam/libpam_1.0.2.bb

index c695f47..7a5ff4b 100644 (file)
@@ -18,7 +18,7 @@ HOMEPAGE = "http://www.kernel.org/pub/linux/libs/pam"
 SECTION = "libs"
 PRIORITY = "optional"
 LICENSE = "GPLv2"
-PR = "r1"
+PR = "r2"
 
 # The project is actually called Linux-PAM but that gives
 # a bad OE package name because of the upper case characters
@@ -36,6 +36,9 @@ SRC_URI += " file://libpam-make.patch;patch=1"
 
 inherit autotools
 
+# maintain the pam default layout
+EXTRA_OECONF += " --includedir=${includedir}/security"
+
 # EXTRA_OECONF += " --enable-static-libpam"
 # Disable building of the documentation - it requires too many different
 # programs installed on the build system and is a waste of time.  This
index 0b7eada..b1ceb1b 100644 (file)
@@ -12,7 +12,7 @@ LICENSE = "GPLv2"
 
 DEPENDS = "flex flex-native"
 
-PR = "r1"
+PR = "r2"
 
 # The project is actually called Linux-PAM but that gives
 # a bad OE package name because of the upper case characters
@@ -27,6 +27,9 @@ inherit autotools
 
 LEAD_SONAME = "libpam.so.*"
 
+# maintain the pam default layout
+EXTRA_OECONF += " --includedir=${includedir}/security"
+
 python populate_packages_prepend () {
        import os.path
 
@@ -44,4 +47,3 @@ python populate_packages_prepend () {
 do_stage() {
        autotools_stage_all
 }
-