Package Details: virtualsmartcard 0.9-1

Git Clone URL: https://aur.archlinux.org/virtualsmartcard.git (read-only, click to copy)
Package Base: virtualsmartcard
Description: Virtual Smart Card emulates a smart card and makes it accessible through PC/SC
Upstream URL: https://github.com/frankmorgner/vsmartcard
Keywords: pcsc smartcard
Licenses: GPLv3
Submitter: nagy
Maintainer: kekonn
Last Packager: kekonn
Votes: 3
Popularity: 0.000000
First Submitted: 2013-08-23 20:30 (UTC)
Last Updated: 2024-01-27 10:15 (UTC)

Latest Comments

zxioper commented on 2024-07-26 08:17 (UTC) (edited on 2024-07-26 08:19 (UTC) by zxioper)

Since imp module was deprecated and finally replaced by importlib in python 12 virtualsmartcard package has to be updated accordingly. Here is a quick fix:

build() {
  cd "$srcdir"/$pkgname-$pkgver
  sed -i "s/import sys, os, py_compile, imp/import sys, os, py_compile, importlib as imp/" ./py-compile
  ./configure --prefix=/
  make PYTHON="/bin/python3"
}

py_compile script still uses imp, which breaks installation phase

dreieck commented on 2024-04-28 12:08 (UTC)

package() fails with missing module imp.
Maybe a missing (make)dependency?:

==> Starting package()...
Making install in src
make[1]: Entering directory '/var/cache/makepkg/build/virtualsmartcard/src/virtualsmartcard-0.9/src'
Making install in vpcd
make[2]: Entering directory '/var/cache/makepkg/build/virtualsmartcard/src/virtualsmartcard-0.9/src/vpcd'
make[3]: Entering directory '/var/cache/makepkg/build/virtualsmartcard/src/virtualsmartcard-0.9/src/vpcd'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/var/cache/makepkg/build/virtualsmartcard/src/virtualsmartcard-0.9/src/vpcd'
make[2]: Leaving directory '/var/cache/makepkg/build/virtualsmartcard/src/virtualsmartcard-0.9/src/vpcd'
Making install in vpicc
make[2]: Entering directory '/var/cache/makepkg/build/virtualsmartcard/src/virtualsmartcard-0.9/src/vpicc'
make[3]: Entering directory '/var/cache/makepkg/build/virtualsmartcard/src/virtualsmartcard-0.9/src/vpicc'
 /usr/bin/mkdir -p '/var/cache/makepkg/build/virtualsmartcard/pkg/virtualsmartcard//bin'
 /usr/bin/mkdir -p '/var/cache/makepkg/build/virtualsmartcard/pkg/virtualsmartcard//lib/python3.12/site-packages/virtualsmartcard'
 /usr/bin/mkdir -p '/var/cache/makepkg/build/virtualsmartcard/pkg/virtualsmartcard//share/man/man1'
 /usr/bin/mkdir -p '/var/cache/makepkg/build/virtualsmartcard/pkg/virtualsmartcard//lib/python3.12/site-packages/virtualsmartcard/cards'
 /usr/bin/install -c vicc '/var/cache/makepkg/build/virtualsmartcard/pkg/virtualsmartcard//bin'
 /usr/bin/install -c -m 644 vicc.1 '/var/cache/makepkg/build/virtualsmartcard/pkg/virtualsmartcard//share/man/man1'
 /usr/bin/install -c -m 644 virtualsmartcard/cards/__init__.py virtualsmartcard/cards/ePass.py virtualsmartcard/cards/nPA.py virtualsmartcard/cards/Relay.py virtualsmartcard/cards/RelayMiddleman.py virtualsmartcard/cards/cryptoflex.py '/var/cache/makepkg/build/virtualsmartcard/pkg/virtualsmartcard//lib/python3.12/site-packages/virtualsmartcard/cards'
 /usr/bin/install -c -m 644 virtualsmartcard/CardGenerator.py virtualsmartcard/SEutils.py virtualsmartcard/TLVutils.py virtualsmartcard/ConstantDefinitions.py virtualsmartcard/SmartcardFilesystem.py virtualsmartcard/utils.py virtualsmartcard/CryptoUtils.py virtualsmartcard/SmartcardSAM.py virtualsmartcard/SWutils.py virtualsmartcard/VirtualSmartcard.py virtualsmartcard/__init__.py '/var/cache/makepkg/build/virtualsmartcard/pkg/virtualsmartcard//lib/python3.12/site-packages/virtualsmartcard'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'imp'
make[3]: *** [Makefile:467: install-vpicccardsPYTHON] Error 1
make[3]: *** Waiting for unfinished jobs....
Traceback (most recent call last):
  File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'imp'
make[3]: *** [Makefile:424: install-vpiccPYTHON] Error 1
make[3]: Leaving directory '/var/cache/makepkg/build/virtualsmartcard/src/virtualsmartcard-0.9/src/vpicc'
make[2]: *** [Makefile:602: install-am] Error 2
make[2]: Leaving directory '/var/cache/makepkg/build/virtualsmartcard/src/virtualsmartcard-0.9/src/vpicc'
make[1]: *** [Makefile:385: install-recursive] Error 1
make[1]: Leaving directory '/var/cache/makepkg/build/virtualsmartcard/src/virtualsmartcard-0.9/src'
make: *** [Makefile:433: install-recursive] Error 1
==> ERROR: A failure occurred in package().

Regards!

abouvier commented on 2023-03-04 21:11 (UTC)

What is the difference with https://aur.archlinux.org/packages/vsmartcard?

citrux commented on 2023-01-11 17:28 (UTC) (edited on 2023-01-12 09:03 (UTC) by citrux)

# Maintainer: Fox Wilson <fwilson at lessbroken.org>

pkgname=virtualsmartcard
pkgver=0.8
pkgrel=2
pkgdesc="Virtual Smart Card emulates a smart card and makes it accessible through PC/SC"
url="https://github.com/frankmorgner/vsmartcard"
arch=( "i686" "x86_64" )
license=( "GPLv3" )
depends=( "pcsclite" "python2" )
makedepends=( "help2man" )
source=( "https://github.com/frankmorgner/vsmartcard/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz" )
sha1sums=('17f21cc4089c589312d38f0f6c5cd8f9bb2cbc02')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  PYTHON="/usr/bin/python2" ./configure --prefix=/usr --enable-serialdropdir=/usr/lib/pcsc/drivers/serial --enable-serialconfdir=/etc/reader.conf.d
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}

Please update PKGBUILD, this one fixes issue with incorrect python module installation path

logisciel commented on 2021-02-12 18:56 (UTC)

$ vicc Traceback (most recent call last): File "/usr/bin/vicc", line 104, in <module> from virtualsmartcard.VirtualSmartcard import VirtualICC ImportError: No module named virtualsmartcard.VirtualSmartcard

===

virtualsmartcard 0.7-2

Distributor ID: ManjaroLinux Description: Manjaro Linux Release: 20.2.1 Codename: Nibia

Linux 5.10.15-1-MANJARO #1 SMP PREEMPT Wed Feb 10 10:42:47 UTC 2021 x86_64 GNU/Linux

Python 3.9.1

bparmentier commented on 2016-04-13 17:07 (UTC)

Config and driver files are installed under /usr, is this wanted? (I can't get the package to work correctly) virtualsmartcard has been configured with following options: Version: 0.7 User binaries: NONE/bin PC/SC configuration: /usr/etc/reader.conf.d Driver directory: /usr/usr/lib/pcsc/drivers/serial Python site-packages: /usr/lib/python3.5/site-packages