From: Alon Levy <alevy@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v22 06/11] libcacard: initial commit
Date: Wed, 23 Mar 2011 14:59:18 +0200 [thread overview]
Message-ID: <20110323125918.GD11265@playa.tlv.redhat.com> (raw)
In-Reply-To: <20110323125404.GC11265@playa.tlv.redhat.com>
On Wed, Mar 23, 2011 at 02:54:04PM +0200, Alon Levy wrote:
> On Tue, Mar 22, 2011 at 03:25:11PM +0000, Stefan Hajnoczi wrote:
> > On Mon, Mar 21, 2011 at 10:07 PM, Alon Levy <alevy@redhat.com> wrote:
> > > +# check for libcacard for smartcard support
> > > +if test "$smartcard" != "no" ; then
> > > + smartcard="yes"
> > > + smartcard_cflags=""
> > > + # TODO - what's the minimal nss version we support?
> > > + if test "$smartcard_nss" != "no"; then
> > > + if $pkg_config --atleast-version=3.12.8 nss >/dev/null 2>&1 ; then
> > > + smartcard_nss="yes"
> > > + smartcard_cflags="-I\$(SRC_PATH)/libcacard"
> > > + libcacard_libs=$($pkg_config --libs nss 2>/dev/null)
> > > + libcacard_cflags=$($pkg_config --cflags nss 2>/dev/null)
> > > + QEMU_CFLAGS="$QEMU_CFLAGS $smartcard_cflags $libcacard_cflags"
> > > + LIBS="$libcacard_libs $LIBS"
> > > + else
> > > + if test "$smartcard_nss" == "yes"; then
> > > + feature_not_found "nss"
> > > + fi
> > > + smartcard_nss="no"
> > > + fi
> > > + fi
> > > +fi
> > > +if test "$smartcard" == "no" ; then
> > > + smartcard_nss="no"
> > > +fi
> >
> > '==' is not portable, please use '=':
> >
> > $ test x == y
> > test: 1: x: unexpected operator
> >
> > I noticed that this patch introduces error messages here when I run ./configure.
> >
> > > +if [ $source_path != `pwd` ]; then
> > > + # out of tree build
> > > + mkdir -p libcacard
> > > + rm -f libcacard/Makefile
> > > + ln -s $source_path/libcacard/Makefile libcacard/Makefile
> > > +fi
> >
> > $source_path should have double-quotes around it so this works even
> > when the path has spaces.
>
> it is unquoted in the lines above that patch. I'll fix it in the same patch
> in v23.
Actually, it's unquoted all over the place - solving this is a much bigger
patch, I'm not going to force it inside this one. I can fix the two unquoted
instances I've introduced, that leaves 10+ in configure that need fixing.
>
> >
> > Stefan
> >
>
next prev parent reply other threads:[~2011-03-23 13:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-21 22:07 [Qemu-devel] [PATCH v22 00/11] usb-ccid Alon Levy
2011-03-21 22:07 ` [Qemu-devel] [PATCH v22 01/11] trace: move trace objects from Makefile to Makefile.objs Alon Levy
2011-03-21 22:07 ` [Qemu-devel] [PATCH v22 02/11] qemu-thread.h: include inttypes.h Alon Levy
2011-03-21 22:07 ` [Qemu-devel] [PATCH v22 03/11] usb-ccid: add CCID bus Alon Levy
2011-03-21 22:07 ` [Qemu-devel] [PATCH v22 04/11] introduce libcacard/vscard_common.h Alon Levy
2011-03-21 22:07 ` [Qemu-devel] [PATCH v22 05/11] ccid: add passthru card device Alon Levy
2011-03-21 22:07 ` [Qemu-devel] [PATCH v22 06/11] libcacard: initial commit Alon Levy
2011-03-22 15:25 ` Stefan Hajnoczi
2011-03-22 15:32 ` Alon Levy
2011-03-23 12:54 ` Alon Levy
2011-03-23 12:59 ` Alon Levy [this message]
2011-03-21 22:07 ` [Qemu-devel] [PATCH v22 07/11] libcacard: add vscclient Alon Levy
2011-03-21 22:07 ` [Qemu-devel] [PATCH v22 08/11] libcacard: add passthru Alon Levy
2011-03-21 22:07 ` [Qemu-devel] [PATCH v22 09/11] libcacard: add docs Alon Levy
2011-03-21 22:07 ` [Qemu-devel] [PATCH v22 10/11] ccid: add ccid-card-emulated device Alon Levy
2011-03-21 22:07 ` [Qemu-devel] [PATCH v22 11/11] ccid: add docs Alon Levy
2011-03-22 8:04 ` [Qemu-devel] [PATCH v22 00/11] usb-ccid Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110323125918.GD11265@playa.tlv.redhat.com \
--to=alevy@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).