From c39e823138cbf4210e17bdb95ca322ec0a6c8f78 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 19 Aug 2012 12:30:07 +0000 Subject: libpam: Fix missing DESTDIR for a mkdir causing build failures Signed-off-by: Richard Purdie --- meta/recipes-extended/pam/libpam/destdirfix.patch | 24 +++++++++++++++++++++++ meta/recipes-extended/pam/libpam_1.1.6.bb | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 meta/recipes-extended/pam/libpam/destdirfix.patch (limited to 'meta/recipes-extended/pam') diff --git a/meta/recipes-extended/pam/libpam/destdirfix.patch b/meta/recipes-extended/pam/libpam/destdirfix.patch new file mode 100644 index 0000000000..52145ecb34 --- /dev/null +++ b/meta/recipes-extended/pam/libpam/destdirfix.patch @@ -0,0 +1,24 @@ +Avoid the failure: + +| mkdir -p /etc/security/namespace.d +| mkdir: cannot create directory `/etc/security/namespace.d': Permission denied + +if /etc/security/namespace.d doesn't exist. The DESTDIR prefix is missing. + +RP 2012/8/19 + +Upstream-Status: Pending + +Index: Linux-PAM-1.1.6/modules/pam_namespace/Makefile.am +=================================================================== +--- Linux-PAM-1.1.6.orig/modules/pam_namespace/Makefile.am 2012-08-15 11:08:43.000000000 +0000 ++++ Linux-PAM-1.1.6/modules/pam_namespace/Makefile.am 2012-08-19 12:25:32.311038943 +0000 +@@ -40,7 +40,7 @@ + secureconf_SCRIPTS = namespace.init + + install-data-local: +- mkdir -p $(namespaceddir) ++ mkdir -p $(DESTDIR)$(namespaceddir) + endif + + diff --git a/meta/recipes-extended/pam/libpam_1.1.6.bb b/meta/recipes-extended/pam/libpam_1.1.6.bb index dd03df106d..c32cb146cd 100644 --- a/meta/recipes-extended/pam/libpam_1.1.6.bb +++ b/meta/recipes-extended/pam/libpam_1.1.6.bb @@ -13,6 +13,7 @@ SRC_URI = "http://linux-pam.org/library/Linux-PAM-${PV}.tar.bz2 \ file://99_pam \ file://pam.d/* \ file://libpam-xtests.patch \ + file://destdirfix.patch \ " SRC_URI[md5sum] = "7b73e58b7ce79ffa321d408de06db2c4" SRC_URI[sha256sum] = "bab887d6280f47fc3963df3b95735a27a16f0f663636163ddf3acab5f1149fc2" @@ -29,6 +30,8 @@ EXTRA_OECONF = "--with-db-uniquename=_pam \ CFLAGS_append = " -fPIC " +PR = "r1" + S = "${WORKDIR}/Linux-PAM-${PV}" inherit autotools gettext -- cgit 1.2.3-korg