components/pam_pkcs11/patches/01-solaris_build.patch
author Lukas Rovensky <Lukas.Rovensky@oracle.com>
Mon, 09 Jan 2017 02:09:07 -0800
branchs11u3-sru
changeset 7576 a576acd7074d
parent 6937 1366743d2272
permissions -rw-r--r--
22344272 sudo(8) should call pam_{open,close}_session(3PAM)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6937
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
     1
#
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
     2
# This patch contains changes for Solaris build.   This is for Solaris only,
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
     3
# so we will not contribute back this change to the upstream community. 
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
     4
#
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
     5
--- pam_pkcs11-0.6.8_ORIG/configure.in	Fri Jul 15 15:05:17 2016
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
     6
+++ pam_pkcs11-0.6.8_NEW/configure.in	Wed Jul 27 14:14:43 2016
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
     7
@@ -15,7 +15,7 @@
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
     8
 
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
     9
 AM_MAINTAINER_MODE
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    10
 
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    11
-AM_GNU_GETTEXT_VERSION([0.17])
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    12
+AM_GNU_GETTEXT_VERSION([0.16])
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    13
 AM_GNU_GETTEXT([external])
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    14
 
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    15
 dnl Add the languages which your application supports here.
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    16
@@ -87,12 +87,10 @@
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    17
 AC_SUBST(confdir)
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    18
 
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    19
 # Add argument for using ldap
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    20
-AC_ARG_WITH(ldap,
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    21
-  AC_HELP_STRING([--with-ldap], [use ldap (default=yes)]))
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    22
-if test "$with_ldap" = "no" -o "$with_ldap" = "false"
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    23
+AC_ARG_ENABLE(ldap,
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    24
+  AC_HELP_STRING([--enable-openldap], [use openldap or mozilla_ldap (default=yes)]))
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    25
+if test "$enable_openldap" = "no" -o "$enable_openldap" = "false"
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    26
 then
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    27
-  with_ldap=no
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    28
-else
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    29
   AC_CHECK_LIB( ldap, ldap_init,
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    30
 	[
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    31
 	with_ldap=yes
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    32
@@ -101,7 +99,17 @@
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    33
 	AC_MSG_WARN([Cannot find LDAP libraries. LDAP support disabled])
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    34
 	with_ldap=no
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    35
 	])
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    36
+else
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    37
+  AC_CHECK_LIB( ldap, ldap_init,
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    38
+	[
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    39
+	with_ldap=yes
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    40
+	LIBS="$LIBS -lldap_r"
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    41
+	],[
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    42
+	AC_MSG_WARN([Cannot find LDAP libraries. LDAP support disabled])
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    43
+	with_ldap=no
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    44
+	])
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    45
 fi
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    46
+
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    47
 if test "$with_ldap" \!= "no"; then
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    48
   AC_CHECK_FUNCS(ldap_init ldap_initialize)
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    49
   AC_CHECK_FUNCS(ldap_set_option ldap_get_option)  
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    50
--- pam_pkcs11-0.6.8_ORIG/src/pam_pkcs11/Makefile.am	Fri Jul 15 15:05:19 2016
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    51
+++ pam_pkcs11-0.6.8_NEW/src/pam_pkcs11/Makefile.am	Fri Jul 22 15:36:51 2016
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    52
@@ -2,8 +2,8 @@
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    53
 
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    54
 MAINTAINERCLEANFILES = Makefile.in
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    55
 
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    56
-AM_CFLAGS = -Wall -fno-strict-aliasing $(CRYPTO_CFLAGS)
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    57
-AM_CPPFLAGS = -Wall -fno-strict-aliasing $(CRYPTO_CFLAGS)
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    58
+AM_CFLAGS = -v -fno-strict-aliasing $(CRYPTO_CFLAGS)
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    59
+AM_CPPFLAGS = -v -fno-strict-aliasing $(CRYPTO_CFLAGS)
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    60
 
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    61
 pamdir=$(libdir)/security
1366743d2272 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 291
diff changeset
    62