Upgrade ccid

Posted:
May 28th, '23, 23:26
by Spinnifex
Hello
I want to use upgrade
- Code: Select all
ccid
and
- Code: Select all
pcsc-lite
to their most recent version.
The reason for this is that I bought a hardware crypto key - nitrokey - which requires
ccid version 1.5+
My question : how can I upgrade both my myself?
Is this possible?
Or when do the package maintainers update them?
Regards
Spinnifex
Re: Upgrade ccid

Posted:
May 29th, '23, 05:22
by benmc
both Fedora and OpenSUSE list a 1.5 version of this.
if you are lucky, just download the .rpm package and it will just install and go.
If not, depending on your capabilities, you should be able to build the required packages from a tarball.
If you feel that your skills are not up to it, you could also put a bug report / update / enhancement request via bugzilla
Re: Upgrade ccid

Posted:
May 29th, '23, 18:02
by Spinnifex
Hello @benmc.
Thx for your answer.
To use some foreign rpm makes me feel afraid.
Is there a chance to damage my system ?
What I have accomplished for now is to install
the
- Code: Select all
pcsc-lite
package.
- Code: Select all
Making install in src
make[1]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/src“ wird betreten
Making install in spy
make[2]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/src/spy“ wird betreten
make[3]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/src/spy“ wird betreten
/usr/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c pcsc-spy '/usr/local/bin'
/usr/bin/mkdir -p '/usr/local/lib'
/bin/sh ../../libtool --mode=install /usr/bin/install -c libpcscspy.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libpcscspy.so.0.0.0 /usr/local/lib/libpcscspy.so.0.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libpcscspy.so.0.0.0 libpcscspy.so.0 || { rm -f libpcscspy.so.0 && ln -s libpcscspy.so.0.0.0 libpcscspy.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libpcscspy.so.0.0.0 libpcscspy.so || { rm -f libpcscspy.so && ln -s libpcscspy.so.0.0.0 libpcscspy.so; }; })
libtool: install: /usr/bin/install -c .libs/libpcscspy.lai /usr/local/lib/libpcscspy.la
libtool: finish: PATH="/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/mkdir -p '/usr/local/share/doc/pcsc-lite'
/usr/bin/install -c -m 644 install_spy.sh uninstall_spy.sh '/usr/local/share/doc/pcsc-lite'
/usr/bin/mkdir -p '/usr/local/share/man/man1'
/usr/bin/install -c -m 644 pcsc-spy.1 '/usr/local/share/man/man1'
make[3]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/src/spy“ wird verlassen
make[2]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/src/spy“ wird verlassen
make[2]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/src“ wird betreten
make[3]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/src“ wird betreten
/usr/bin/mkdir -p '/usr/local/lib'
/bin/sh ../libtool --mode=install /usr/bin/install -c libpcsclite.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libpcsclite.so.1.0.0 /usr/local/lib/libpcsclite.so.1.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libpcsclite.so.1.0.0 libpcsclite.so.1 || { rm -f libpcsclite.so.1 && ln -s libpcsclite.so.1.0.0 libpcsclite.so.1; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libpcsclite.so.1.0.0 libpcsclite.so || { rm -f libpcsclite.so && ln -s libpcsclite.so.1.0.0 libpcsclite.so; }; })
libtool: install: /usr/bin/install -c .libs/libpcsclite.lai /usr/local/lib/libpcsclite.la
libtool: finish: PATH="/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/mkdir -p '/usr/local/sbin'
/bin/sh ../libtool --mode=install /usr/bin/install -c pcscd '/usr/local/sbin'
libtool: install: /usr/bin/install -c pcscd /usr/local/sbin/pcscd
/usr/bin/mkdir -p '/usr/local/include'
/usr/bin/mkdir -p '/usr/local/include/PCSC'
/usr/bin/install -c -m 644 PCSC/debuglog.h PCSC/ifdhandler.h PCSC/reader.h PCSC/winscard.h PCSC/wintypes.h '/usr/local/include/PCSC'
/usr/bin/mkdir -p '/usr/local/include/PCSC'
/usr/bin/install -c -m 644 PCSC/pcsclite.h '/usr/local/include/PCSC'
/usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 libpcsclite.pc '/usr/local/lib/pkgconfig'
make[3]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/src“ wird verlassen
make[2]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/src“ wird verlassen
make[1]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/src“ wird verlassen
Making install in etc
make[1]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/etc“ wird betreten
make[2]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/etc“ wird betreten
make[2]: Für das Ziel „install-exec-am“ ist nichts zu tun.
/usr/bin/mkdir -p '/usr/lib/systemd/system'
/usr/bin/install -c -m 644 pcscd.service pcscd.socket '/usr/lib/systemd/system'
make[2]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/etc“ wird verlassen
make[1]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/etc“ wird verlassen
Making install in doc
make[1]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/doc“ wird betreten
Making install in .
make[2]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/doc“ wird betreten
make[3]: Verzeichnis „/home/gadgadi/J/Bin/pcsc-lite-1.9.9/doc“ wird betreten
make[3]: Für das Ziel „install-exec-am“ ist nichts zu tun.
But anything seems to be missing.
If I try to build
- Code: Select all
ccid
I get this
- Code: Select all
WARNING: libpcsclite not found by pkg-config
/usr/locale/lib
- Code: Select all
libpcsclite.la* libpcsclite.so.1.0.0* libpcscspy.so.0@ pkgconfig/ libpcsclite.so@ libpcscspy.la* libpcscspy.so.0.0.0* printdriver/ libpcsclite.so.1@ libpcscspy.so@ libpython3.10.a* python3.10
I only have
- Code: Select all
pcsc-spy
and
- Code: Select all
pcscd
I used the source from
https://pcsclite.apdu.fr/https://ccid.apdu.fr/Ideas?
Best regards
Re: Upgrade ccid

Posted:
May 30th, '23, 17:37
by doktor5000
Spinnifex wrote:If I try to build
- Code: Select all
ccid
I get this
- Code: Select all
WARNING: libpcsclite not found by pkg-config
/usr/locale/lib
- Code: Select all
libpcsclite.la* libpcsclite.so.1.0.0* libpcscspy.so.0@ pkgconfig/ libpcsclite.so@ libpcscspy.la* libpcscspy.so.0.0.0* printdriver/ libpcsclite.so.1@ libpcscspy.so@ libpython3.10.a* python3.10
pkg-config does not check /usr/local/lib by default - you'd need to specify the path to your libpcsclite with a configure parameter, or change the prefix for ccid also to /usr/local.
See e.g.
https://github.com/LudovicRousseau/CCID ... NSTALL#L16