Received: from [140.186.70.92] (port=55060 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzU58-0005VV-OX for qemu-devel@nongnu.org; Tue, 15 Mar 2011 09:14:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzU57-0005ds-A6 for qemu-devel@nongnu.org; Tue, 15 Mar 2011 09:14:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzU57-0005dd-0M for qemu-devel@nongnu.org; Tue, 15 Mar 2011 09:14:37 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p2FDEauC018328 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 15 Mar 2011 09:14:36 -0400 Date: Tue, 15 Mar 2011 15:14:09 +0200 From: Alon Levy Subject: Re: [Qemu-devel] [PATCH 4/7] libcacard: initial commit Message-ID: <20110315131409.GW31372@playa.tlv.redhat.com> References: <1298460024-23591-1-git-send-email-alevy@redhat.com> <1298460024-23591-5-git-send-email-alevy@redhat.com> <4D7E3236.8050507@redhat.com> <20110314164010.GL31372@playa.tlv.redhat.com> <4D7F5ED0.70401@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D7F5ED0.70401@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jes Sorensen Cc: qemu-devel@nongnu.org On Tue, Mar 15, 2011 at 01:42:56PM +0100, Jes Sorensen wrote: > On 03/14/11 17:40, Alon Levy wrote: > > On Mon, Mar 14, 2011 at 04:20:22PM +0100, Jes Sorensen wrote: > > > > ok, here is a note where I kinda ignored my own wishes but I want > > to be very clear on them: > > libcacard should not be part of qemu. > > it is here because I once thought it would speed things up. > > > > So I'm not taking it out or anything - it's fine with me that it > > goes into qemu, just as long as it's understood that I'm now maintaining > > another copy of it for usage outside of qemu, in the spice client (or > > any other client for that matter - it will be the same when we do vnc > > support for this). > > Hi Alon, > > This bit is somewhat problematic. If QEMU is maintaining a copy of > libcacard, then that has to comply with the QEMU way of doing things. > QEMU cannot rely on various portions in the tree behaving in different > ways. Otherwise it really should be an external library requirement > pulled in by the build. > > I am not sure what is the best way, if it stays in QEMU people will > eventually start making modifications to it, without looking at the > other copy that is being maintained. > Yeah, I've already decided (actually minutes after sending this email) to go the route of keeping a copy of qemu-thread* in the external library, since the api is basically just a mirror of pthreads it was nothing but a few renames. > Alternatively the external apps that build against it should be taught > to link with the QEMU version. > That would require me to teach qemu's configure to build libcacard, possibly only libcacard (even though qemu doesn't need a lot of packages by itself, I still wouldn't want apt-get install spice-client to drag in qemu-kvm). > Cheers, > Jes