* [gentoo-commits] gentoo-x86 commit in net-fs/autofs/files: autofs-5.0.5-fix-building-without-ldap.patch
@ 2011-04-30 18:20 Peter Volkov (pva)
0 siblings, 0 replies; only message in thread
From: Peter Volkov (pva) @ 2011-04-30 18:20 UTC (permalink / raw
To: gentoo-commits
pva 11/04/30 18:20:51
Modified: autofs-5.0.5-fix-building-without-ldap.patch
Log:
Fix ldap linkage yet again, bug #362551, thank Joshua Rich for report.
(Portage version: 2.1.9.46/cvs/Linux x86_64)
Revision Changes Path
1.2 net-fs/autofs/files/autofs-5.0.5-fix-building-without-ldap.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/files/autofs-5.0.5-fix-building-without-ldap.patch?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/files/autofs-5.0.5-fix-building-without-ldap.patch?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/autofs/files/autofs-5.0.5-fix-building-without-ldap.patch?r1=1.1&r2=1.2
Index: autofs-5.0.5-fix-building-without-ldap.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-fs/autofs/files/autofs-5.0.5-fix-building-without-ldap.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- autofs-5.0.5-fix-building-without-ldap.patch 3 Apr 2011 09:49:15 -0000 1.1
+++ autofs-5.0.5-fix-building-without-ldap.patch 30 Apr 2011 18:20:50 -0000 1.2
@@ -1,24 +1,41 @@
---- lib/defaults.c.orig
-+++ lib/defaults.c
-@@ -19,7 +19,9 @@
+=== modified file 'Makefile.rules'
+--- Makefile.rules 2011-04-30 18:13:36 +0000
++++ Makefile.rules 2011-04-30 18:12:37 +0000
+@@ -42,6 +42,10 @@
+ AUTOFS_LDFLAGS += $(DMALLOCLIB)
+ endif
+
++ifdef SASL
++CFLAGS += $(XML_FLAGS)
++endif
++
+ # Standard rules
+
+ .SUFFIXES: .c .o .s .so
+
+=== modified file 'lib/defaults.c'
+--- lib/defaults.c 2011-04-30 18:13:36 +0000
++++ lib/defaults.c 2011-04-30 18:12:37 +0000
+@@ -19,7 +19,10 @@
#include "list.h"
#include "defaults.h"
-+#ifdef HAVE_LDAP
++#include "config.h"
++#ifdef WITH_LDAP
#include "lookup_ldap.h"
+#endif
#include "log.h"
#include "automount.h"
-@@ -197,6 +199,7 @@ static int parse_line(char *line, char *
+@@ -197,6 +200,7 @@
return 1;
}
-+#ifdef HAVE_LDAP
++#ifdef WITH_LDAP
void defaults_free_uris(struct list_head *list)
{
struct list_head *next;
-@@ -252,9 +255,11 @@ static unsigned int add_uris(char *value
+@@ -252,9 +256,11 @@
return 1;
}
@@ -26,11 +43,11 @@
struct list_head *defaults_get_uris(void)
{
-+#ifdef HAVE_LDAP
++#ifdef WITH_LDAP
FILE *f;
char buf[MAX_LINE_LEN];
char *res;
-@@ -288,6 +292,9 @@ struct list_head *defaults_get_uris(void
+@@ -288,6 +294,9 @@
fclose(f);
return list;
@@ -40,15 +57,15 @@
}
/*
-@@ -450,6 +457,7 @@ unsigned int defaults_get_ldap_network_t
+@@ -450,6 +459,7 @@
return res;
}
-+#ifdef HAVE_LDAP
++#ifdef WITH_LDAP
struct ldap_schema *defaults_get_default_schema(void)
{
struct ldap_schema *schema;
-@@ -645,6 +653,7 @@ struct ldap_schema *defaults_get_schema(
+@@ -645,6 +655,7 @@
return schema;
}
@@ -56,3 +73,4 @@
unsigned int defaults_get_mount_nfs_default_proto(void)
{
+
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-30 18:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-30 18:20 [gentoo-commits] gentoo-x86 commit in net-fs/autofs/files: autofs-5.0.5-fix-building-without-ldap.patch Peter Volkov (pva)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox