[linux-pam] build: extend cross compiling check to cover CPPFLAGS (ticket #21)
by Dmitry V. Levin
commit 9d1545efee73ec834b051c50a1bc0d2a63d8765b
Author: Dmitry V. Levin <ldv(a)altlinux.org>
Date: Tue Dec 9 21:47:40 2014 +0000
build: extend cross compiling check to cover CPPFLAGS (ticket #21)
Use BUILD_CPPFLAGS variable to override CPPFLAGS where necessary in
case of cross compiling, in addition to CC_FOR_BUILD, BUILD_CFLAGS,
and BUILD_LDFLAGS variables introduced earlier to override CC,
CFLAGS, and LDFLAGS, respectively.
* configure.in (BUILD_CPPFLAGS): Define.
* doc/specs/Makefile.am (CPPFLAGS): Define to @BUILD_CPPFLAGS@.
configure.in | 9 +++++++++
doc/specs/Makefile.am | 1 +
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index 2597802..6797e2f 100644
--- a/configure.in
+++ b/configure.in
@@ -144,6 +144,15 @@ AC_MSG_CHECKING([for CC_FOR_BUILD])
AC_MSG_RESULT([$CC_FOR_BUILD])
AC_SUBST(CC_FOR_BUILD)
+if test "x${BUILD_CPPFLAGS+set}" != "xset" ; then
+ if test "x$cross_compiling" = "xyes" ; then
+ BUILD_CPPFLAGS=
+ else
+ BUILD_CPPFLAGS=${CPPFLAGS}
+ fi
+fi
+AC_SUBST(BUILD_CPPFLAGS)
+
if test "x${BUILD_CFLAGS+set}" != "xset" ; then
if test "x$cross_compiling" = "xyes" ; then
BUILD_CFLAGS=
diff --git a/doc/specs/Makefile.am b/doc/specs/Makefile.am
index 36d53ba..99ecc70 100644
--- a/doc/specs/Makefile.am
+++ b/doc/specs/Makefile.am
@@ -12,6 +12,7 @@ draft-morgan-pam-current.txt: padout draft-morgan-pam.raw
AM_YFLAGS = -d
CC = @CC_FOR_BUILD@
+CPPFLAGS = @BUILD_CPPFLAGS@
CFLAGS = @BUILD_CFLAGS@
LDFLAGS = @BUILD_LDFLAGS@
9 years, 4 months
[linux-pam] Do not use yywrap (ticket #42)
by Dmitry V. Levin
commit 8da3f3c38e075498a24fb9db80ae9862bda7154d
Author: Dmitry V. Levin <ldv(a)altlinux.org>
Date: Tue Dec 9 01:21:48 2014 +0000
Do not use yywrap (ticket #42)
Our scanners do not really use yywrap. Explicitly disable yywrap
so that no references to yywrap will be generated and no LEXLIB
would be needed.
* conf/pam_conv1/Makefile.am (pam_conv1_LDADD): Remove.
* conf/pam_conv1/pam_conv_l.l: Enable noyywrap option.
* doc/specs/Makefile.am (padout_LDADD): Remove.
* doc/specs/parse_l.l: Enable noyywrap option.
conf/pam_conv1/Makefile.am | 2 --
conf/pam_conv1/pam_conv_l.l | 1 +
doc/specs/Makefile.am | 2 --
doc/specs/parse_l.l | 1 +
4 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/conf/pam_conv1/Makefile.am b/conf/pam_conv1/Makefile.am
index b9e6153..ce50b68 100644
--- a/conf/pam_conv1/Makefile.am
+++ b/conf/pam_conv1/Makefile.am
@@ -13,5 +13,3 @@ BUILT_SOURCES = pam_conv_y.h
noinst_PROGRAMS = pam_conv1
pam_conv1_SOURCES = pam_conv_l.l pam_conv_y.y
-
-pam_conv1_LDADD = @LEXLIB@
diff --git a/conf/pam_conv1/pam_conv_l.l b/conf/pam_conv1/pam_conv_l.l
index 25b6710..f563eee 100644
--- a/conf/pam_conv1/pam_conv_l.l
+++ b/conf/pam_conv1/pam_conv_l.l
@@ -24,6 +24,7 @@
extern int current_line;
%}
+%option noyywrap
%%
"#"[^\n]* ; /* skip comments (sorry) */
diff --git a/doc/specs/Makefile.am b/doc/specs/Makefile.am
index 2688220..36d53ba 100644
--- a/doc/specs/Makefile.am
+++ b/doc/specs/Makefile.am
@@ -21,6 +21,4 @@ noinst_PROGRAMS = padout
padout_SOURCES = parse_l.l parse_y.y
-padout_LDADD = @LEXLIB@
-
doc_DATA = draft-morgan-pam-current.txt rfc86.0.txt
diff --git a/doc/specs/parse_l.l b/doc/specs/parse_l.l
index 7cab424..d8400a0 100644
--- a/doc/specs/parse_l.l
+++ b/doc/specs/parse_l.l
@@ -8,6 +8,7 @@
#include "parse_y.h"
%}
+%option noyywrap
%%
\#[\$]+[a-zA-Z]*(\=[0-9]+)? return NEW_COUNTER;
9 years, 4 months
[linux-pam] doc: fix a trivial typo in pam_authenticate return values (ticket #38)
by Dmitry V. Levin
commit 4a4dd12c9ba83343374c9e1184c94426c9803527
Author: Kyle Manna <kyle(a)kylemanna.com>
Date: Thu Sep 25 21:37:49 2014 -0700
doc: fix a trivial typo in pam_authenticate return values (ticket #38)
* doc/man/pam_authenticate.3.xml: Fix a typo in PAM_AUTHINFO_UNAVAIL.
doc/man/pam_authenticate.3.xml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/doc/man/pam_authenticate.3.xml b/doc/man/pam_authenticate.3.xml
index 8549ccd..c2004eb 100644
--- a/doc/man/pam_authenticate.3.xml
+++ b/doc/man/pam_authenticate.3.xml
@@ -109,7 +109,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term>PAM_AUTHINFO_UNVAIL</term>
+ <term>PAM_AUTHINFO_UNAVAIL</term>
<listitem>
<para>
The modules were not able to access the authentication
9 years, 4 months
[linux-pam] doc: fix typo in pam_authenticate.3.xml
by Dmitry V. Levin
commit ef15bd6185111edfe47614f83d410fca06f627d4
Author: Ronny Chevalier <chevalier.ronny(a)gmail.com>
Date: Mon Aug 11 16:36:21 2014 +0200
doc: fix typo in pam_authenticate.3.xml
* doc/man/pam_authenticate.3.xml: Fix typo.
doc/man/pam_authenticate.3.xml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/doc/man/pam_authenticate.3.xml b/doc/man/pam_authenticate.3.xml
index 8ddc38c..8549ccd 100644
--- a/doc/man/pam_authenticate.3.xml
+++ b/doc/man/pam_authenticate.3.xml
@@ -37,7 +37,7 @@
</para>
<para>
The PAM service module may request that the user enter their
- username vio the the conversation mechanism (see
+ username via the conversation mechanism (see
<citerefentry>
<refentrytitle>pam_start</refentrytitle><manvolnum>3</manvolnum>
</citerefentry> and
9 years, 4 months