]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
pam: Compile fix for newer glibcs
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Apr 2017 10:45:27 +0000 (12:45 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 18 May 2017 11:06:57 +0000 (12:06 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/pam
src/patches/pam-0.99.10.0-rlimit-build-fix.patch [new file with mode: 0644]

diff --git a/lfs/pam b/lfs/pam
index 75557a499628ba50a5f0904cf24030b53a0c0c84..96e8956f992233c449572e73872445516c3df846 100644 (file)
--- a/lfs/pam
+++ b/lfs/pam
@@ -70,6 +70,8 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+       $(UPDATE_AUTOMAKE)
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/pam-0.99.10.0-rlimit-build-fix.patch
        cd $(DIR_APP) && ./configure --libdir=/usr/lib \
                            --sbindir=/lib/security \
                            --enable-securedir=/lib/security \
diff --git a/src/patches/pam-0.99.10.0-rlimit-build-fix.patch b/src/patches/pam-0.99.10.0-rlimit-build-fix.patch
new file mode 100644 (file)
index 0000000..5fdee07
--- /dev/null
@@ -0,0 +1,28 @@
+From 8e508f23bf5ed727649c99bbd540f7b1c2c2bd35 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Stevan=20Baji=C4=87?= <stevan@bajic.ch>
+Date: Mon, 9 Jul 2012 09:43:11 +0200
+Subject: [PATCH] RLIMIT_* variables are no longer defined unless you
+ explicitly include sys/resource.h.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
+
+modules/pam_unix/pam_unix_acct.c: Include sys/resource.h.
+---
+ modules/pam_unix/pam_unix_acct.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/modules/pam_unix/pam_unix_acct.c b/modules/pam_unix/pam_unix_acct.c
+index 8e90cc9..4a362f8 100644
+--- a/modules/pam_unix/pam_unix_acct.c
++++ b/modules/pam_unix/pam_unix_acct.c
+@@ -41,6 +41,7 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/types.h>
++#include <sys/resource.h>
+ #include <syslog.h>
+ #include <pwd.h>
+ #include <shadow.h>