libcacard: move it to a standalone project
RFC PATCH 1/1 libcacard: move it to a standalone project
From: Marc-André Lureau <[email protected]>
As previously discussed in the thread "libcacard: use the library?", make libcacard a standalone library and use it if --enable-smartcard.
I made the following repo out of a qemu filter-branch and added autofoo
build-sys: https://github.com/elmarco/libcacard. Since the original qemu git tags are there, I think the first release version should be v2.5, but there is no need to follow the same versions as qemu later on.
libcacard could use the same infrastructure as the qemu project (mailing list, git server, reviews etc). I have some experience with libcacard, and I would be willing to maintain it, however I don't expect to do more development with it in the near future.
--- .gitignore | 1 - Makefile | 3 - Makefile.objs | 15 - configure | 51 +- docs/libcacard.txt | 483 ---------------- hw/usb/Makefile.objs | 3 +- hw/usb/ccid-card-passthru.c | 2 +- libcacard/Makefile | 45 -- libcacard/cac.c | 414 -------------- libcacard/cac.h | 31 -- libcacard/card_7816.c | 757 ------------------------- libcacard/card_7816.h | 62 --- libcacard/card_7816t.h | 165 ------ libcacard/event.c | 103 ---- libcacard/eventt.h | 29 - libcacard/libcacard.pc.in | 13 - libcacard/libcacard.syms | 77 --- libcacard/link_test.c | 22 - libcacard/vcard.c | 325 ----------- libcacard/vcard.h | 86 --- libcacard/vcard_emul.h | 66 --- libcacard/vcard_emul_nss.c | 1274 ------------------------------------------- libcacard/vcard_emul_type.c | 57 -- libcacard/vcard_emul_type.h | 32 -- libcacard/vcardt.c | 40 -- libcacard/vcardt.h | 59 -- libcacard/vcardt_internal.h | 6 - libcacard/vevent.h | 27 - libcacard/vreader.c | 578 -------------------- libcacard/vreader.h | 55 -- libcacard/vreadert.h | 24 - libcacard/vscard_common.h | 178 ------ libcacard/vscclient.c | 785 -------------------------- 33 files changed, 19 insertions(+), 5849 deletions(-) delete mode 100644 docs/libcacard.txt delete mode 100644 libcacard/Makefile delete mode 100644 libcacard/cac.c delete mode 100644 libcacard/cac.h delete mode 100644 libcacard/card_7816.c delete mode 100644 libcacard/card_7816.h delete mode 100644 libcacard/card_7816t.h delete mode 100644 libcacard/event.c delete mode 100644 libcacard/eventt.h delete mode 100644 libcacard/libcacard.pc.in delete mode 100644 libcacard/libcacard.syms delete mode 100644 libcacard/link_test.c delete mode 100644 libcacard/vcard.c delete mode 100644 libcacard/vcard.h delete mode 100644 libcacard/vcard_emul.h delete mode 100644 libcacard/vcard_emul_nss.c delete mode 100644 libcacard/vcard_emul_type.c delete mode 100644 libcacard/vcard_emul_type.h delete mode 100644 libcacard/vcardt.c delete mode 100644 libcacard/vcardt.h delete mode 100644 libcacard/vcardt_internal.h delete mode 100644 libcacard/vevent.h delete mode 100644 libcacard/vreader.c delete mode 100644 libcacard/vreader.h delete mode 100644 libcacard/vreadert.h delete mode 100644 libcacard/vscard_common.h delete mode 100644 libcacard/vscclient.c
.gitignore +0 -1
@@ -19,7 +19,6 @@ /trace/generated-ust.c /ui/shader/texture-blit-frag.h /ui/shader/texture-blit-vert.h -/libcacard/trace/generated-tracers.c *-timestamp /*-softmmu /*-darwin-user
Makefile +0 -3
@@ -157,9 +157,6 @@ dummy := $(call unnest-vars,, \ ifneq ($(wildcard config-host.mak),) include $(SRC_PATH)/tests/Makefile endif -ifeq ($(CONFIG_SMARTCARD_NSS),y) -include $(SRC_PATH)/libcacard/Makefile -endif all: $(DOCS) $(TOOLS) $(HELPERS-y) recurse-all modules
Makefile.objs +0 -15
@@ -21,19 +21,6 @@ block-obj-y += coroutine-$(CONFIG_COROUTINE_BACKEND).o block-obj-m = block/ - -###################################################################### -# smartcard - -libcacard-y += libcacard/cac.o libcacard/event.o -libcacard-y += libcacard/vcard.o libcacard/vreader.o -libcacard-y += libcacard/vcard_emul_nss.o -libcacard-y += libcacard/vcard_emul_type.o -libcacard-y += libcacard/card_7816.o -libcacard-y += libcacard/vcardt.o -libcacard/vcard_emul_nss.o-cflags := $(NSS_CFLAGS) -libcacard/vcard_emul_nss.o-libs := $(NSS_LIBS) - ###################################################################### # Target independent part of system emulation. The long term path is to # suppress *all* target specific code in case of system emulation, i.e. a
@@ -75,8 +62,6 @@ common-obj-y += backends/ common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o -common-obj-$(CONFIG_SMARTCARD_NSS) += $(libcacard-y) - common-obj-$(CONFIG_FDT) += device_tree.o ######################################################################
configure +17 -34
91 lines not on this page · raw message
docs/libcacard.txt deleted +0 -483
483 lines not on this page · raw message
hw/usb/Makefile.objs +1 -2
@@ -24,8 +24,7 @@ common-obj-$(CONFIG_USB_BLUETOOTH) += dev-bluetooth.o ifeq ($(CONFIG_USB_SMARTCARD),y) common-obj-y += dev-smartcard-reader.o common-obj-y += ccid-card-passthru.o -common-obj-$(CONFIG_SMARTCARD_NSS) += ccid-card-emulated.o -ccid-card-emulated.o-cflags := -I$(SRC_PATH)/libcacard +common-obj-$(CONFIG_SMARTCARD) += ccid-card-emulated.o endif ifeq ($(CONFIG_POSIX),y)
hw/usb/ccid-card-passthru.c +1 -1
@@ -12,7 +12,7 @@#include "qemu/error-report.h" #include "qemu/sockets.h" #include "ccid.h" -#include "libcacard/vscard_common.h" +#include "cacard/vscard_common.h" #define DPRINTF (card, lvl, fmt, ...) \ do { \
libcacard/Makefile deleted +0 -45
45 lines not on this page · raw message
libcacard/cac.c deleted +0 -414
414 lines not on this page · raw message
libcacard/cac.h deleted +0 -31
@@ -1,31 +0,0 @@ -/* -* defines the entry point for the cac card. Only used by cac.c anc -* vcard_emul_type.c -* -* This work is licensed under the terms of the GNU LGPL, version 2.1 or later. -* See the COPYING.LIB file in the top-level directory. -*/ -#ifndef CAC_H -#define CAC_H 1 -#include "vcard.h" -#include "vreader.h" - -#define CAC_GET_PROPERTIES 0x56 -#define CAC_GET_ACR 0x4c -#define CAC_READ_BUFFER 0x52 -#define CAC_UPDATE_BUFFER 0x58 -#define CAC_SIGN_DECRYPT 0x42 -#define CAC_GET_CERTIFICATE 0x36 - -/* -* Initialize the cac card. This is the only public function in this file. All -* the rest are connected through function pointers. -*/ -VCardStatus cac_card_init (VReader *reader,VCard *card,const char *params, -unsigned char *const *cert,int cert_len[], -VCardKey *key[]/* adopt the keys*/ , -int cert_count); - -/* not yet implemented */ -VCardStatus cac_is_cac_card (VReader *reader); -#endif
libcacard/card_7816.c deleted +0 -757
757 lines not on this page · raw message
libcacard/card_7816.h deleted +0 -62
62 lines not on this page · raw message
libcacard/card_7816t.h deleted +0 -165
165 lines not on this page · raw message
libcacard/event.c deleted +0 -103
103 lines not on this page · raw message
libcacard/eventt.h deleted +0 -29
@@ -1,29 +0,0 @@ -/* -* This work is licensed under the terms of the GNU LGPL, version 2.1 or later. -* See the COPYING.LIB file in the top-level directory. -*/ - -#ifndef EVENTT_H -#define EVENTT_H 1 -#include "vreadert.h" -#include "vcardt.h" - -typedef struct VEventStruct VEvent ; - -typedef enum { -VEVENT_READER_INSERT , -VEVENT_READER_REMOVE , -VEVENT_CARD_INSERT , -VEVENT_CARD_REMOVE , -VEVENT_LAST , -}VEventType ; - -struct VEventStruct { -VEvent *next; -VEventType type; -VReader *reader; -VCard *card; -}; -#endif - -
libcacard/libcacard.pc.in deleted +0 -13
@@ -1,13 +0,0 @@ -prefix=@PREFIX@ -exec_prefix=${prefix} -libdir=@LIBDIR@ -includedir=@INCLUDEDIR@ - -Name: cacard -Description: CA Card library -Version: @VERSION@ - -Requires.private: nss glib-2.0 -Libs: -L${libdir} -lcacard -Libs.private: -Cflags: -I${includedir}
libcacard/libcacard.syms deleted +0 -77
77 lines not on this page · raw message
libcacard/link_test.c deleted +0 -22
@@ -1,22 +0,0 @@ -/* -* This work is licensed under the terms of the GNU LGPL, version 2.1 or later. -* See the COPYING.LIB file in the top-level directory. -*/ - -#include <stdio.h> -#include "vcard.h" - -VCardStatus cac_card_init (const char *flags,VCard *card, -const unsigned char *cert[], -int cert_len[],VCardKey *key[]/* adopt the keys*/ , -int cert_count); -/* -* this will crash... just test the linkage right now -*/ - -main(int argc, char **argv) -{ - VCard *card; /* no constructor yet */ -cac_card_init ("" , card,NULL ,0 ,NULL ,0 ); -} -
libcacard/vcard.c deleted +0 -325
325 lines not on this page · raw message
libcacard/vcard.h deleted +0 -86
86 lines not on this page · raw message
libcacard/vcard_emul.h deleted +0 -66
66 lines not on this page · raw message
libcacard/vcard_emul_nss.c deleted +0 -1274
171 lines not on this page · raw message
libcacard/vcard_emul_type.c deleted +0 -57
57 lines not on this page · raw message
libcacard/vcardt.h deleted +0 -59
59 lines not on this page · raw message
libcacard/vreader.c deleted +0 -578
578 lines not on this page · raw message
libcacard/vreader.h deleted +0 -55
55 lines not on this page · raw message
libcacard/vscard_common.h deleted +0 -178
178 lines not on this page · raw message
libcacard/vscclient.c deleted +0 -785
785 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.4.3
Part of the diff is not shown here. View the raw message.
Quoted 10 lines · On 08/30/2015 06:29 AM, [email protected] wrote:
From: Marc-André Lureau <[email protected]>
As previously discussed in the thread "libcacard: use the library?", make libcacard a standalone library and use it if --enable-smartcard.
I made the following repo out of a qemu filter-branch and added autofoo
build-sys: https://github.com/elmarco/libcacard. Since the original qemu git tags are there, I think the first release version should be v2.5, but there is no need to follow the same versions as qemu later on.
Quoted 6 lines
libcacard could use the same infrastructure as the qemu project (mailing list, git server, reviews etc). I have some experience with libcacard, and I would be willing to maintain it, however I don't expect to do more development with it in the near future.
Signed-off-by Marc-André Lureau <[email protected]>
I have reviewed this patch, and the new libcacard module. Modulo a few minor nits (which Marc-André agreed to fix on irc), it all works well. I think this is a sensible change and I'm willing to help with libcacard maintenance, if we were to establish it as a project.
Cheers,
Jeremy
Quoted 62 lines
--- .gitignore | 1 - Makefile | 3 - Makefile.objs | 15 - configure | 51 +- docs/libcacard.txt | 483 ---------------- hw/usb/Makefile.objs | 3 +- hw/usb/ccid-card-passthru.c | 2 +- libcacard/Makefile | 45 -- libcacard/cac.c | 414 -------------- libcacard/cac.h | 31 -- libcacard/card_7816.c | 757 ------------------------- libcacard/card_7816.h | 62 --- libcacard/card_7816t.h | 165 ------ libcacard/event.c | 103 ---- libcacard/eventt.h | 29 - libcacard/libcacard.pc.in | 13 - libcacard/libcacard.syms | 77 --- libcacard/link_test.c | 22 - libcacard/vcard.c | 325 ----------- libcacard/vcard.h | 86 --- libcacard/vcard_emul.h | 66 --- libcacard/vcard_emul_nss.c | 1274 ------------------------------------------- libcacard/vcard_emul_type.c | 57 -- libcacard/vcard_emul_type.h | 32 -- libcacard/vcardt.c | 40 -- libcacard/vcardt.h | 59 -- libcacard/vcardt_internal.h | 6 - libcacard/vevent.h | 27 - libcacard/vreader.c | 578 -------------------- libcacard/vreader.h | 55 -- libcacard/vreadert.h | 24 - libcacard/vscard_common.h | 178 ------ libcacard/vscclient.c | 785 -------------------------- 33 files changed, 19 insertions(+), 5849 deletions(-) delete mode 100644 docs/libcacard.txt delete mode 100644 libcacard/Makefile delete mode 100644 libcacard/cac.c delete mode 100644 libcacard/cac.h delete mode 100644 libcacard/card_7816.c delete mode 100644 libcacard/card_7816.h delete mode 100644 libcacard/card_7816t.h delete mode 100644 libcacard/event.c delete mode 100644 libcacard/eventt.h delete mode 100644 libcacard/libcacard.pc.in delete mode 100644 libcacard/libcacard.syms delete mode 100644 libcacard/link_test.c delete mode 100644 libcacard/vcard.c delete mode 100644 libcacard/vcard.h delete mode 100644 libcacard/vcard_emul.h delete mode 100644 libcacard/vcard_emul_nss.c delete mode 100644 libcacard/vcard_emul_type.c delete mode 100644 libcacard/vcard_emul_type.h delete mode 100644 libcacard/vcardt.c delete mode 100644 libcacard/vcardt.h delete mode 100644 libcacard/vcardt_internal.h delete mode 100644 libcacard/vevent.h delete mode 100644 libcacard/vreader.c delete mode 100644 libcacard/vreader.h delete mode 100644 libcacard/vreadert.h delete mode 100644 libcacard/vscard_common.h delete mode 100644 libcacard/vscclient.c
Hi
(added in CC people from the "libcacard: use the library?" thread)
Quoted 16 lines · Jeremy White
Quoted 15 lines · On 08/30/2015 06:29 AM, [email protected] wrote:
From: Marc-André Lureau <[email protected]>
As previously discussed in the thread "libcacard: use the library?", make libcacard a standalone library and use it if --enable-smartcard.
I made the following repo out of a qemu filter-branch and added autofoo
build-sys: https://github.com/elmarco/libcacard. Since the original qemu git tags are there, I think the first release version should be v2.5, but there is no need to follow the same versions as qemu later on.libcacard could use the same infrastructure as the qemu project (mailing list, git server, reviews etc). I have some experience with libcacard, and I would be willing to maintain it, however I don't expect to do more development with it in the near future.
Quoted 8 lines
Quoted 1 line
Signed-off-by Marc-André Lureau <[email protected]>I have reviewed this patch, and the new libcacard module. Modulo a few minor nits (which Marc-André agreed to fix on irc), it all works well. I think this is a sensible change and I'm willing to help with libcacard maintenance, if we were to establish it as a project.
Reviewed-by Jeremy White <[email protected]>
In order to progress with this removal, I propose we move
https://github.com/elmarco/libcacard master to git.qemu.org. Then make a 2.4.1 release (ie same as 2.4 but standalone), make a wiki page about libcacard etc. Then I can send a non-RFC patch to qemu, and we can keep maintaining libcacard within qemu project. I have pending patches in the next tree that I can send on the ML for review etc.
What do you think?
thanks
Quoted 64 lines
Quoted 62 lines
--- .gitignore | 1 - Makefile | 3 - Makefile.objs | 15 - configure | 51 +- docs/libcacard.txt | 483 ---------------- hw/usb/Makefile.objs | 3 +- hw/usb/ccid-card-passthru.c | 2 +- libcacard/Makefile | 45 -- libcacard/cac.c | 414 -------------- libcacard/cac.h | 31 -- libcacard/card_7816.c | 757 ------------------------- libcacard/card_7816.h | 62 --- libcacard/card_7816t.h | 165 ------ libcacard/event.c | 103 ---- libcacard/eventt.h | 29 - libcacard/libcacard.pc.in | 13 - libcacard/libcacard.syms | 77 --- libcacard/link_test.c | 22 - libcacard/vcard.c | 325 ----------- libcacard/vcard.h | 86 --- libcacard/vcard_emul.h | 66 --- libcacard/vcard_emul_nss.c | 1274 ------------------------------------------- libcacard/vcard_emul_type.c | 57 -- libcacard/vcard_emul_type.h | 32 -- libcacard/vcardt.c | 40 -- libcacard/vcardt.h | 59 -- libcacard/vcardt_internal.h | 6 - libcacard/vevent.h | 27 - libcacard/vreader.c | 578 -------------------- libcacard/vreader.h | 55 -- libcacard/vreadert.h | 24 - libcacard/vscard_common.h | 178 ------ libcacard/vscclient.c | 785 -------------------------- 33 files changed, 19 insertions(+), 5849 deletions(-) delete mode 100644 docs/libcacard.txt delete mode 100644 libcacard/Makefile delete mode 100644 libcacard/cac.c delete mode 100644 libcacard/cac.h delete mode 100644 libcacard/card_7816.c delete mode 100644 libcacard/card_7816.h delete mode 100644 libcacard/card_7816t.h delete mode 100644 libcacard/event.c delete mode 100644 libcacard/eventt.h delete mode 100644 libcacard/libcacard.pc.in delete mode 100644 libcacard/libcacard.syms delete mode 100644 libcacard/link_test.c delete mode 100644 libcacard/vcard.c delete mode 100644 libcacard/vcard.h delete mode 100644 libcacard/vcard_emul.h delete mode 100644 libcacard/vcard_emul_nss.c delete mode 100644 libcacard/vcard_emul_type.c delete mode 100644 libcacard/vcard_emul_type.h delete mode 100644 libcacard/vcardt.c delete mode 100644 libcacard/vcardt.h delete mode 100644 libcacard/vcardt_internal.h delete mode 100644 libcacard/vevent.h delete mode 100644 libcacard/vreader.c delete mode 100644 libcacard/vreader.h delete mode 100644 libcacard/vreadert.h delete mode 100644 libcacard/vscard_common.h delete mode 100644 libcacard/vscclient.c
Signature · 1 line
Marc-André Lureau
Daniel P. Berrange
Reviewed-byQuoted 30 lines · Marc-André Lureau
Hi
(added in CC people from the "libcacard: use the library?" thread)
Quoted 16 lines · Jeremy White
Quoted 15 lines · On 08/30/2015 06:29 AM, [email protected] wrote:
From: Marc-André Lureau <[email protected]>
As previously discussed in the thread "libcacard: use the library?", make libcacard a standalone library and use it if --enable-smartcard.
I made the following repo out of a qemu filter-branch and added autofoo
build-sys: https://github.com/elmarco/libcacard. Since the original qemu git tags are there, I think the first release version should be v2.5, but there is no need to follow the same versions as qemu later on.libcacard could use the same infrastructure as the qemu project (mailing list, git server, reviews etc). I have some experience with libcacard, and I would be willing to maintain it, however I don't expect to do more development with it in the near future.
Quoted 8 lines
Quoted 1 line
Signed-off-by Marc-André Lureau <[email protected]>I have reviewed this patch, and the new libcacard module. Modulo a few minor nits (which Marc-André agreed to fix on irc), it all works well. I think this is a sensible change and I'm willing to help with libcacard maintenance, if we were to establish it as a project.
Reviewed-by Jeremy White <[email protected]>
Quoted 8 lines
In order to progress with this removal, I propose we move
https://github.com/elmarco/libcacard master to git.qemu.org. Then make a 2.4.1 release (ie same as 2.4 but standalone), make a wiki page about libcacard etc. Then I can send a non-RFC patch to qemu, and we can keep maintaining libcacard within qemu project. I have pending patches in the next tree that I can send on the ML for review etc.What do you think?
I have looked through the new libcacard git repository you created from QEMU history, and reviewed the extra patches you added on top for the build system and it all looks sane to me. So this this a
for both the new GIT repo and also your proposed patch to switch QEMU to use the new lib.
I agree that it could make sense to host libcacard.git on git.qemu.org if we're going to continue to use qemu-devel and a QEMU-like workflow, but equally don't see any problem with it being a totally standalone project with its own infra & practices.
Regards,
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Quoted 4 lines · Daniel P. Berrange
I agree that it could make sense to host libcacard.git on git.qemu.org if we're going to continue to use qemu-devel and a QEMU-like workflow, but equally don't see any problem with it being a totally standalone project with its own infra & practices.
Standalone repo which we have a cloned auto-updated copy of on git.qemu.org would fit the way we deal with other independent projects.
(I'm not sure if we have the appropriate access control to allow other repos on git.qemu.org with different access rights to the main one. Stefan?)
thanks
-- PMM
Quoted 6 lines · Daniel P. Berrange
I have looked through the new libcacard git repository you created from QEMU history, and reviewed the extra patches you added on top for the build system and it all looks sane to me. So this this a
Reviewed-by Daniel P. Berrange <[email protected]>
Quoted 7 lines
for both the new GIT repo and also your proposed patch to switch QEMU to use the new lib.
I agree that it could make sense to host libcacard.git on git.qemu.org if we're going to continue to use qemu-devel and a QEMU-like workflow, but equally don't see any problem with it being a totally standalone project with its own infra & practices.
Where are we going to host virglrenderer? Whatever we do for libcacard, we should probably also do for virglrenderer.
Paolo
Quoted 10 lines · Paolo Bonzini
Quoted 9 lines · Daniel P. Berrange
I have looked through the new libcacard git repository you created from QEMU history, and reviewed the extra patches you added on top for the build system and it all looks sane to me. So this this a
Reviewed-by Daniel P. Berrange <[email protected]>for both the new GIT repo and also your proposed patch to switch QEMU to use the new lib.
Quoted 7 lines
Quoted 4 lines
I agree that it could make sense to host libcacard.git on git.qemu.org if we're going to continue to use qemu-devel and a QEMU-like workflow, but equally don't see any problem with it being a totally standalone project with its own infra & practices.
Where are we going to host virglrenderer? Whatever we do for libcacard, we should probably also do for virglrenderer.
I guess ultimately things like libcacard / virglrenderer are similar to other projects we use like libiscsi, ibnfs, etcs. A reason for splitting libcacard in particular is that it is used by more things that just QEMU, so from that POV there's no clear compelling reason for it to need to be hosted by QEMU. Probably the main reason for keeping it hosted by QEMU would be to have some sense of shared responsibility by the QEMU community in case Marc-Andre does not want to be a single point person owning it long term.
Regards,
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Quoted 10 lines · Paolo Bonzini
Quoted 9 lines · Daniel P. Berrange
I have looked through the new libcacard git repository you created from QEMU history, and reviewed the extra patches you added on top for the build system and it all looks sane to me. So this this a
Reviewed-by Daniel P. Berrange <[email protected]>for both the new GIT repo and also your proposed patch to switch QEMU to use the new lib.
Quoted 7 lines
Quoted 4 lines
I agree that it could make sense to host libcacard.git on git.qemu.org if we're going to continue to use qemu-devel and a QEMU-like workflow, but equally don't see any problem with it being a totally standalone project with its own infra & practices.
Where are we going to host virglrenderer? Whatever we do for libcacard, we should probably also do for virglrenderer.
I hadn't considered where to host virglrenderer yet, I was initially considering shipping it with mesa but gave up that idea, so I was contemplating just getting freedesktop to host it since I've already got a/cs etc there, but I suppose
I could get setup on qemu infrastructure.
I'm not even sure whether we should have its own mailing list, I'm hoping it will be useful to non-qemu projects, but that may be some time down the road.
Dave.
Hi,
Quoted 11 lines
Quoted 2 lines
Where are we going to host virglrenderer? Whatever we do for libcacard, we should probably also do for virglrenderer.
I hadn't considered where to host virglrenderer yet, I was initially considering shipping it with mesa but gave up that idea, so I was contemplating just getting freedesktop to host it since I've already got a/cs etc there, but I suppose
I could get setup on qemu infrastructure.I'm not even sure whether we should have its own mailing list, I'm hoping it will be useful to non-qemu projects, but that may be some time down the road.
I think freedesktop.org makes sense. mesa is there, spice is there too, and people working on gfx stuff tend to have an account there already.
cheers,
Gerd
Quoted 10 lines · On 30/08/2015 13:29, [email protected] wrote:
From: Marc-André Lureau <[email protected]>
As previously discussed in the thread "libcacard: use the library?", make libcacard a standalone library and use it if --enable-smartcard.
I made the following repo out of a qemu filter-branch and added autofoo
build-sys: https://github.com/elmarco/libcacard. Since the original qemu git tags are there, I think the first release version should be v2.5, but there is no need to follow the same versions as qemu later on.
Quoted 6 lines
libcacard could use the same infrastructure as the qemu project (mailing list, git server, reviews etc). I have some experience with libcacard, and I would be willing to maintain it, however I don't expect to do more development with it in the near future.
Signed-off-by Marc-André Lureau <[email protected]>
I tested I could build QEMU with smartcard support after installing Fedora's libcacard-devel from QEMU 2.4, and "ldd" points to /lib64/libcacard.so.0.
So, at least for Fedora users, there is no dependency on the distro packaging the new standalone libcacard.
Just a small nit:
configure +4 -3
@@ -3863,11 +3863,12 @@ if test "$smartcard" != "no"; then libcacard_libs=$($pkg_config --libs libcacard) QEMU_CFLAGS="$QEMU_CFLAGS $libcacard_cflags" libs_softmmu="$libs_softmmu $libcacard_libs" + smartcard="yes" else - if test "$libcacard" = "yes"; then - feature_not_found "libcacard" "Install libcacard devel" + if test "$smartcard" = "yes"; then + feature_not_found "smartcard" "Install libcacard-devel" fi - libcacard="no" + smartcard="no" fi fi
Paolo
Hi
Quoted 39 lines · Paolo Bonzini
Quoted 10 lines · On 30/08/2015 13:29, [email protected] wrote:
From: Marc-André Lureau <[email protected]>
As previously discussed in the thread "libcacard: use the library?", make libcacard a standalone library and use it if --enable-smartcard.
I made the following repo out of a qemu filter-branch and added autofoo
build-sys: https://github.com/elmarco/libcacard. Since the original qemu git tags are there, I think the first release version should be v2.5, but there is no need to follow the same versions as qemu later on.Quoted 6 lines
libcacard could use the same infrastructure as the qemu project (mailing list, git server, reviews etc). I have some experience with libcacard, and I would be willing to maintain it, however I don't expect to do more development with it in the near future.
Signed-off-by Marc-André Lureau <[email protected]>I tested I could build QEMU with smartcard support after installing Fedora's libcacard-devel from QEMU 2.4, and "ldd" points to
/lib64/libcacard.so.0.So, at least for Fedora users, there is no dependency on the distro packaging the new standalone libcacard.
Just a small nit:
configure +1
-0@@ -3863,11 +3863,12 @@ if test "$smartcard" != "no"; then libcacard_libs=$($pkg_config --libs libcacard) QEMU_CFLAGS="$QEMU_CFLAGS $libcacard_cflags" libs_softmmu="$libs_softmmu $libcacard_libs" + smartcard="yes" else
configure if test "$smartcard" != "no"; then · line 3874
Quoted 10 lines
configure +3
-3- if test "$libcacard" = "yes"; then - feature_not_found "libcacard" "Install libcacard devel" + if test "$smartcard" = "yes"; then + feature_not_found "smartcard" "Install libcacard-devel" fi - libcacard="no" + smartcard="no" fi fi
Oops, thanks for checking! I am sending a non-RFC version with this fixed.
Signature · 1 line
Marc-André Lureau