diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-07-04 13:12:38 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-17 10:54:01 +0100 |
commit | 19bf330db74496c4d5448dece4dd867265394e28 (patch) | |
tree | 0520e1a0d75fbe43766449e5f90062f8698137f6 /meta/recipes-extended/pam | |
parent | 19fe059b69f69f155f125123b49695ad29975772 (diff) | |
download | poky-19bf330db74496c4d5448dece4dd867265394e28.tar.gz |
libpam: Fix build with eglibc 2.16
pam_unix_acct.c: In function '_unix_run_verify_binary':
pam_unix_acct.c:97:19: error: storage size of 'rlim' isn't known
pam_unix_acct.c:106:19: error: 'RLIMIT_NOFILE' undeclared (first use in
this function)
pam_unix_acct.c:106:19: note: each undeclared identifier is reported
only once for each function it appears in
(From OE-Core rev: e59a0bac95ce025a6b826be28ccc9e42ca4b5a29)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/pam')
-rw-r--r-- | meta/recipes-extended/pam/libpam/include-sys-resource.patch | 12 | ||||
-rw-r--r-- | meta/recipes-extended/pam/libpam_1.1.5.bb | 6 |
2 files changed, 16 insertions, 2 deletions
diff --git a/meta/recipes-extended/pam/libpam/include-sys-resource.patch b/meta/recipes-extended/pam/libpam/include-sys-resource.patch new file mode 100644 index 0000000000..0108a889a9 --- /dev/null +++ b/meta/recipes-extended/pam/libpam/include-sys-resource.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | Index: Linux-PAM-1.1.5/modules/pam_unix/pam_unix_acct.c | ||
2 | =================================================================== | ||
3 | --- Linux-PAM-1.1.5.orig/modules/pam_unix/pam_unix_acct.c 2012-07-04 12:37:44.881136025 -0700 | ||
4 | +++ Linux-PAM-1.1.5/modules/pam_unix/pam_unix_acct.c 2012-07-04 12:38:00.601136785 -0700 | ||
5 | @@ -47,6 +47,7 @@ | ||
6 | #include <time.h> /* for time() */ | ||
7 | #include <errno.h> | ||
8 | #include <sys/wait.h> | ||
9 | +#include <sys/resource.h> | ||
10 | |||
11 | #include <security/_pam_macros.h> | ||
12 | |||
diff --git a/meta/recipes-extended/pam/libpam_1.1.5.bb b/meta/recipes-extended/pam/libpam_1.1.5.bb index 08ce1d13b3..275e5d8424 100644 --- a/meta/recipes-extended/pam/libpam_1.1.5.bb +++ b/meta/recipes-extended/pam/libpam_1.1.5.bb | |||
@@ -9,12 +9,14 @@ SECTION = "base" | |||
9 | LICENSE = "GPLv2+ | BSD" | 9 | LICENSE = "GPLv2+ | BSD" |
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=ca0395de9a86191a078b8b79302e3083" | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=ca0395de9a86191a078b8b79302e3083" |
11 | 11 | ||
12 | PR = "r3" | 12 | PR = "r4" |
13 | 13 | ||
14 | SRC_URI = "https://fedorahosted.org/releases/l/i/linux-pam/Linux-PAM-${PV}.tar.bz2 \ | 14 | SRC_URI = "https://fedorahosted.org/releases/l/i/linux-pam/Linux-PAM-${PV}.tar.bz2 \ |
15 | file://99_pam \ | 15 | file://99_pam \ |
16 | file://pam.d/* \ | 16 | file://pam.d/* \ |
17 | file://libpam-xtests.patch" | 17 | file://libpam-xtests.patch \ |
18 | file://include-sys-resource.patch \ | ||
19 | " | ||
18 | 20 | ||
19 | SRC_URI_append_libc-uclibc = " file://pam-no-innetgr.patch" | 21 | SRC_URI_append_libc-uclibc = " file://pam-no-innetgr.patch" |
20 | 22 | ||