Hello,

If I use "./configure --disable-man" then "make install" fails with:
[...]
Making install in doc
make[1]: Entering directory `/home/rousseau/sc/OpenSC/opensc/trunk/doc'
make[2]: Entering directory `/home/rousseau/sc/OpenSC/opensc/trunk/doc'
make[3]: Entering directory `/home/rousseau/sc/OpenSC/opensc/trunk/doc'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/doc/opensc" || /bin/mkdir -p
"/tmp/opensc/usr/local/share/doc/opensc"
test -z "/usr/local/share/doc/opensc" || /bin/mkdir -p
"/tmp/opensc/usr/local/share/doc/opensc"
test -z "/usr/local/share/man/man1" || /bin/mkdir -p
"/tmp/opensc/usr/local/share/man/man1"
 /usr/bin/install -c -m 644 'README'
'/tmp/opensc/usr/local/share/doc/opensc/README'
test -z "/usr/local/share/man/man3" || /bin/mkdir -p
"/tmp/opensc/usr/local/share/man/man3"
test -z "/usr/local/share/man/man5" || /bin/mkdir -p
"/tmp/opensc/usr/local/share/man/man5"
 /usr/bin/install -c -m 644 './man.out/*.5'
'/tmp/opensc/usr/local/share/man/man5/Makefile Makefile.am Makefile.in
README api nonpersistent tools.5'
/usr/bin/install: cannot stat `./man.out/*.5': No such file or directory
make[3]: *** [install-man5] Error 1
make[3]: *** Waiting for unfinished jobs....
 /usr/bin/install -c -m 644 './man.out/*.1'
'/tmp/opensc/usr/local/share/man/man1/Makefile Makefile.am Makefile.in
README api nonpersistent tools.1'
/usr/bin/install: cannot stat `./man.out/*.1': No such file or directory
 /usr/bin/install -c -m 644 './man.out/*.3'
'/tmp/opensc/usr/local/share/man/man3/Makefile Makefile.am Makefile.in
README api nonpersistent tools.3'
make[3]: *** [install-man1] Error 1
/usr/bin/install: cannot stat `./man.out/*.3': No such file or directory
make[3]: *** [install-man3] Error 1
make[3]: Leaving directory `/home/rousseau/sc/OpenSC/opensc/trunk/doc'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/rousseau/sc/OpenSC/opensc/trunk/doc'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/rousseau/sc/OpenSC/opensc/trunk/doc'
make: *** [install-recursive] Error 1


This is because make tries to install manpages that were not generated.
Proposed patch attached. The idea is to define dist_man?_MANS only if
ENABLE_MAN is set.

Bye

-- 
 Dr. Ludovic Rousseau
Index: doc/Makefile.am
===================================================================
--- doc/Makefile.am     (revision 3684)
+++ doc/Makefile.am     (working copy)
@@ -26,6 +26,10 @@ else
 dist_noinst_DATA += html.out/*
 endif
 dist_doc_DATA = README
+
+if SVN_CHECKOUT
+if ENABLE_MAN
+
 if WIN32
 dist_noinst_DATA += man.out/*.1 man.out/*.3 man.out/*.5
 else
@@ -34,9 +38,6 @@ dist_man3_MANS = man.out/*.3
 dist_man5_MANS = man.out/*.5
 endif
 
-if SVN_CHECKOUT
-if ENABLE_MAN
-
 html.out/*: html.out
 html.out: api.work
        test -n "$(XSLTPROC)"
Index: src/libopensc/iso7816.c
===================================================================
--- src/libopensc/iso7816.c     (revision 3684)
+++ src/libopensc/iso7816.c     (working copy)
@@ -406,6 +406,8 @@ static int iso7816_select_file(sc_card_t
 
        sc_format_apdu(card, &apdu, SC_APDU_CASE_4_SHORT, 0xA4, 0, 0);
        
+       sc_reset(card);
+       sc_reset(card);
        switch (in_path->type) {
        case SC_PATH_TYPE_FILE_ID:
                apdu.p1 = 0;
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to