Re: [opensc-devel] Status of the server migration

2012-12-27 Thread Greg Troxel

  All sources, OpenSC and sub-projects, are in github.

A perspective from someone on the outside who is trying to pay
attention:

  It would be helpful if the sourceforge page links to something that is
  part of the future, and points out the github repos, and that there
  are no repos on sourceforge.  If sourceforge is not ok with this then
  a new strategy may be needed :-)

  If the opensc-project.org wiki is going away, it would be good to have
  the front wiki page have a note about that  and pointers to
  sourceforge and github.



pgpcSh48cFLKt.pgp
Description: PGP signature
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Re: [opensc-devel] a few more trivial patches

2012-12-10 Thread Greg Troxel

Anthony Foiani anthony.foi...@gmail.com writes:

 Ludovic, greetings --

 On Sun, Dec 9, 2012 at 7:19 AM, Ludovic Rousseau
 ludovic.rouss...@gmail.com wrote:

 2012/12/8 Anthony Foiani anthony.foi...@gmail.com:
  Greetings --
 
  I have two small patches which you might want to consider integrating.
 
  (And given that I can't get git to do what I want, you probably want
  to just cherry-pick these, as I suspect I've completely destroyed my
  repo history...)

 You should rebase your patches above OpenSC/OpenSC master.

 Ok, but pardon my git ignorance: I thought that one should never
 rebase a tree that will be published and pulled from?  Or only if it's
 published and someone tries to *base a new tree* off of it?

This is somewhat controversial, but from my experience in both open
source and large private projects, the key issue is not to rebase
branches that other people have made commits on top of, or merged into
other branches.  I find that it's helpful to rebase branches proposed
for merging.  The point for me is not so much to have them based off
recent master to avoid a merge commit, but to produce the clean series
of commits that would have appeared had there been no mistakes.

Achieving the goal of not rebasing branches others have derived commits
From can be accomplished by

  not rebasing published branches

or

  having an understanding within the project that branches should not be
  cross-merged, so that rebasing them is still safe.  Even if multitple
  people commit to a branch, with a little coordination this is not a
  big deal.



pgptpvdzhpga8.pgp
Description: PGP signature
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Re: [opensc-devel] OpenSC 0.13.0

2012-12-05 Thread Greg Troxel

  https://github.com/OpenSC/OpenSC/tags
  https://sourceforge.net/projects/opensc/files/OpenSC/
  https://opensc.fr/jenkins/

The source used to be at:

  http://www.opensc-project.org/files/opensc/

Is that no longer the canonical location?

The wiki at

   https://www.opensc-project.org/opensc

still says the latest release is 0.12.2.


pgpnh8V0MRO49.pgp
Description: PGP signature
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

[opensc-devel] getopt_long_only (portability issue)

2012-11-25 Thread Greg Troxel

I'm in the process of updating the pkgsrc (multi-OS multi-cpu packaging
system originated at NetBSD) entry for opensc from 0.11.13 to 0.12.2.
I'm having a few unrelated issues, and will send separate notes.

In src/common/compat_getopt.{h,c}, replacements are provided for getopt,
getopt_long and getopt_long_only unless all three are found at configure
time.  NetBSD has getopt (which is originally from 4.3BSD) and
getopt_long, but not getopt_long_only, which as far as I can tell is
only found on GNU/Linux.   The replacement has a type clash with the
builtin declaration.

I believe that getopt_long_only is not actually used.  So I have created
a packaging patch to drop the test for getopt_long_only, so that the
replacements are not selected if the system has getopt and getopt_long.
(As a hack, I also changed the test program to use getopt_long so that
it would build.

So if opensc doesn't have a good reason to use getopt_long_only, it
would simplify things and improve portability to remove compat support
for it.

Thanks,
Greg

$NetBSD$

--- src/common/compat_getopt.c.orig 2011-07-05 11:28:53.0 +
+++ src/common/compat_getopt.c
@@ -25,7 +25,7 @@
 
 #include config.h
 
-#if ! ( defined(HAVE_GETOPT_H)  defined(HAVE_GETOPT_LONG)  
defined(HAVE_GETOPT_LONG_ONLY) )
+#if ! ( defined(HAVE_GETOPT_H)  defined(HAVE_GETOPT_LONG) )
 
 #include sys/types.h
 #include stdlib.h
$NetBSD$

--- src/common/compat_getopt.h.orig 2011-07-05 11:28:53.0 +
+++ src/common/compat_getopt.h
@@ -30,7 +30,7 @@
 #include config.h
 #endif
 
-#if defined(HAVE_GETOPT_H)  defined(HAVE_GETOPT_LONG)  
defined(HAVE_GETOPT_LONG_ONLY)
+#if defined(HAVE_GETOPT_H)  defined(HAVE_GETOPT_LONG)
 #include getopt.h
 #else
 
@@ -43,7 +43,6 @@ extern C {
 
 #define getopt my_getopt
 #define getopt_long my_getopt_long
-#define getopt_long_only my_getopt_long_only
 #define _getopt_internal _my_getopt_internal
 #define opterr my_opterr
 #define optind my_optind
@@ -86,6 +85,6 @@ extern int _my_getopt_internal(int argc,
 }
 #endif
 
-#endif /* HAVE_GETOPT_H  HAVE_GETOPT_LONG  HAVE_GETOPT_LONG_ONLY */
+#endif /* HAVE_GETOPT_H  HAVE_GETOPT_LONG */
 
 #endif /* MY_GETOPT_H_INCLUDED */
$NetBSD$

--- src/common/compat_getopt_main.c.orig2011-07-05 11:28:53.0 
+
+++ src/common/compat_getopt_main.c
@@ -173,6 +173,8 @@ main(int argc, char * argv[])
   progname);
 }
 
+#define getopt_long_only getopt_long
+
   /* parse all options from the command line */
   while ((opt =
   getopt_long_only(argc, argv, shortopts, longopts, longind)) != -1)



pgp9TZVnEqosO.pgp
Description: PGP signature
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

[opensc-devel] significant changes in installed files, 0.11.13 to 0.12.2

2012-11-25 Thread Greg Troxel

In updating from 0.11.13 to 0.12.2, I found significant changes in
installed files.  I think these changes are all intended, but I'd like
to run the packing list diff by the list to make sure I'm not missing
something due to a missing dependency (pkgsrc hides undeclared
dependencies).

Most of the changes seem to be about making libopensc private.

In particular, I am not sure if share/doc/opensc/README being withdrawn
is correct.

Also, is it believed that all programs that depend on opensc are able to
work with 0.12-series versions (in an actuall release)?

Thanks,
Greg

--- PLIST   2010-09-01 11:59:22.0 -0400
+++ PLIST.new   2012-11-25 10:50:06.0 -0500
@@ -1,10 +1,8 @@
 @comment $NetBSD: PLIST,v 1.5 2010/09/01 15:59:22 drochner Exp $
-bin/cardos-info
 bin/cardos-tool
 bin/cryptoflex-tool
 bin/eidenv
 bin/netkey-tool
-bin/opensc-config
 bin/opensc-explorer
 bin/opensc-tool
 bin/piv-tool
@@ -12,113 +10,43 @@
 bin/pkcs15-crypt
 bin/pkcs15-init
 bin/pkcs15-tool
-bin/rutoken-tool
 bin/westcos-tool
-include/opensc/asn1.h
-include/opensc/cardctl.h
-include/opensc/compression.h
-include/opensc/emv.h
-include/opensc/errors.h
-include/opensc/log.h
-include/opensc/opensc.h
-include/opensc/pkcs11-opensc.h
-include/opensc/pkcs11.h
-include/opensc/pkcs15-init.h
-include/opensc/pkcs15.h
-include/opensc/scconf.h
-include/opensc/types.h
-include/opensc/ui.h
 lib/libopensc.la
-lib/libpkcs15init.la
-lib/libscconf.la
 lib/onepin-opensc-pkcs11.la
 lib/opensc-pkcs11.la
 lib/pkcs11-spy.la
 lib/pkcs11/onepin-opensc-pkcs11.so
 lib/pkcs11/opensc-pkcs11.so
 lib/pkcs11/pkcs11-spy.so
-lib/pkgconfig/libopensc.pc
-lib/pkgconfig/libpkcs15init.pc
-lib/pkgconfig/libscconf.pc
 man/man1/cardos-tool.1
 man/man1/cryptoflex-tool.1
+man/man1/eidenv.1
 man/man1/netkey-tool.1
-man/man1/opensc-config.1
 man/man1/opensc-explorer.1
 man/man1/opensc-tool.1
+man/man1/piv-tool.1
 man/man1/pkcs11-tool.1
 man/man1/pkcs15-crypt.1
 man/man1/pkcs15-init.1
 man/man1/pkcs15-tool.1
 man/man1/westcos-tool.1
-man/man3/sc_app_info_t.3
-man/man3/sc_append_record.3
-man/man3/sc_asn1_decode.3
-man/man3/sc_asn1_encode.3
-man/man3/sc_asn1_entry.3
-man/man3/sc_asn1_find_tag.3
-man/man3/sc_asn1_print_tags.3
-man/man3/sc_asn1_put_tag.3
-man/man3/sc_asn1_read_tag.3
-man/man3/sc_asn1_skip_tag.3
-man/man3/sc_asn1_verify_tag.3
-man/man3/sc_base64_decode.3
-man/man3/sc_base64_encode.3
-man/man3/sc_card_ctl.3
-man/man3/sc_card_t.3
-man/man3/sc_card_valid.3
-man/man3/sc_check_sw.3
-man/man3/sc_connect_card.3
-man/man3/sc_copy_asn1_entry.3
-man/man3/sc_create_file.3
-man/man3/sc_delete_file.3
-man/man3/sc_delete_record.3
-man/man3/sc_der_clear.3
-man/man3/sc_der_copy.3
-man/man3/sc_detect_card_presence.3
-man/man3/sc_disconnect_card.3
-man/man3/sc_enum_apps.3
-man/man3/sc_establish_context.3
-man/man3/sc_file_dup.3
-man/man3/sc_file_free.3
-man/man3/sc_file_new.3
-man/man3/sc_file_t.3
-man/man3/sc_find_app_by_aid.3
-man/man3/sc_find_pkcs15_app.3
-man/man3/sc_format_apdu.3
-man/man3/sc_format_asn1_entry.3
-man/man3/sc_free_apps.3
-man/man3/sc_get_cache_dir.3
-man/man3/sc_get_challenge.3
-man/man3/sc_get_data.3
-man/man3/sc_list_files.3
-man/man3/sc_lock.3
-man/man3/sc_make_cache_dir.3
-man/man3/sc_put_data.3
-man/man3/sc_read_binary.3
-man/man3/sc_read_record.3
-man/man3/sc_release_context.3
-man/man3/sc_select_file.3
-man/man3/sc_set_card_driver.3
-man/man3/sc_strerror.3
-man/man3/sc_transmit_apdu.3
-man/man3/sc_unlock.3
-man/man3/sc_update_binary.3
-man/man3/sc_update_dir.3
-man/man3/sc_update_record.3
-man/man3/sc_wait_for_event.3
-man/man3/sc_write_binary.3
-man/man3/sc_write_record.3
 man/man5/pkcs15-profile.5
 share/doc/opensc/NEWS
-share/doc/opensc/README
 share/examples/opensc/opensc.conf
 share/opensc/asepcos.profile
+share/opensc/authentic.profile
 share/opensc/cardos.profile
 share/opensc/cyberflex.profile
 share/opensc/entersafe.profile
 share/opensc/flex.profile
 share/opensc/gpk.profile
+share/opensc/ias_adele_admin1.profile
+share/opensc/ias_adele_admin2.profile
+share/opensc/ias_adele_common.profile
+share/opensc/iasecc.profile
+share/opensc/iasecc_admin_eid.profile
+share/opensc/iasecc_generic_oberthur.profile
+share/opensc/iasecc_generic_pki.profile
 share/opensc/incrypto34.profile
 share/opensc/jcop.profile
 share/opensc/miocos.profile


pgplMJykwbyLN.pgp
Description: PGP signature
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel