Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 95938

Summary: gnupg 1.9.15 won't emerge with USE=smartcard
Product: Gentoo Linux Reporter: Benjamin Smee (strerror) (RETIRED) <strerror>
Component: New packagesAssignee: Crypto team [DISABLED] <crypto+disabled>
Status: RESOLVED DUPLICATE    
Severity: major CC: stian
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gnupg-1.9.15-r1.ebuild.patch

Description Benjamin Smee (strerror) (RETIRED) gentoo-dev 2005-06-13 02:24:35 UTC
When I try to emerge gnupg 1.9.15 it fails with the following error:

then mv -f ".deps/pcsc_wrapper-pcsc-wrapper.Tpo" ".deps/pcsc_wrapper-pcsc-wrapper.Po"; else rm -f ".deps/pcsc_wrapper-pcsc-wrapper.Tpo"; exit 1; fi
i686-pc-linux-gnu-gcc     -I/usr/include -march=pentium-m -fomit-frame-pointer -pipe -O3 -Wall  -Wl,-z,now -o scdaemon  scdaemon.o command.o card.o card-p15.o apdu.o ccid-driver.o iso7816.o tlv.o app.o app-help.o app-openpgp.o app-nks.o app-dinsig.o ../jnlib/libjnlib.a ../common/libcommon.a -lgcrypt -lgpg-error -lksba -lgpg-error  -lassuan -lusb -L/usr/lib -lopensc -lpcsclite -lpthread -lgpg-error  -ldl  -ldl  -lz
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lpcsclite
collect2: ld returned 1 exit status
make[2]: *** [scdaemon] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gnupg-1.9.15-r1/work/gnupg-1.9.15/scd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnupg-1.9.15-r1/work/gnupg-1.9.15'
make: *** [all] Error 2

A quick google showed that this was a smartcard lib and when removed from USE gnupg compiles fine.
Comment 1 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2005-06-13 02:25:24 UTC
[~]# emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.4.20041102-r1,
2.6.12-rc5-suspend2-r4disciplina i686)
=================================================================
System uname: 2.6.12-rc5-suspend2-r4disciplina i686 Intel(R) Pentium(R) M
processor 1.20GHz
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 24 2005, 14:28:33)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium-m -fomit-frame-pointer -pipe -O3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -fomit-frame-pointer -pipe -O3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache collision-protect cvs digest
distlocks sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/gentoo
http://gentoo.osuosl.org http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/gentoo/gentoo-x86 /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X X509 aac accounting acl acpi alsa apache2 async avi bash-completion
bdf berkdb bidi bigger-fonts bindist bzip2 bzlib cap caps ccache cdda cddb
cdinstall cdio cdparanoia cdr chroot cjk cracklib crypt cscope css cups curl dbm
dbus directfb divx4linux dts dv dvb dvd dvdr dvdread ecc edl elf encode ethereal
fam fb fbcon ffmpeg flac flash foomaticdb fortran fping freetype gd gdbm gif gmp
gpgme gpm gps gtk gtk2 hal icq idea ieee1394 imagemagick imap imlib ipv6 jabber
java javascript jce jpeg kde lame latex lcd ldap libg++ libwww lm_sensors lmtp
logitech-mouse logrotate mad maildir memlimit messages mha mhash mikmod mime
mmap mmx mng mp3 mp4live mpeg mpeg2 mpeg4 mplayer mysql mysqli mythtv ncurses
nls no-old-linux nocd nptl offensive ogg openal opengl openssl pam parse-clocks
pcap pcapnav pcmcia pcre pda pdf pdflib perforce perl png pnp posix pwdb python
qt quicktime quotas rar readline real recode reiserfs sasl sdl sftp sftplogging
sguil skey smartcard smime snmp spell sql sse ssl subversion svga tcltk tcpd
threads tiff transcode truetype truetype-fonts ttcp type1-fonts ucs2 unicode usb
utf8 vcd vim-pager vim-with-x xchattext xine xml xml2 xmms xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, LINGUAS
Comment 2 Chris White (RETIRED) gentoo-dev 2005-06-13 04:51:49 UTC
Created attachment 61145 [details, diff]
gnupg-1.9.15-r1.ebuild.patch

Here's the patch for the current -r1 ebuild.  This basically adds a sed and
does some autoregen.sh voodoo.	However, since it's using openct instead of
pcsc-lite, you'll have to do something like this:

scdaemon --ctapi-driver libopenct.so --other-options

to choose the ctapi driver over the pcsc driver.  That should be the only place
it will effect.  I've tested it a little and appears to work ok.. might need
more testing.
Comment 3 Stian Skjelstad 2005-06-27 05:14:20 UTC
this is a dupe btw (original bug-report not closed yet as of time of writing)

http://bugs.gentoo.org/show_bug.cgi?id=67656
Comment 4 Daniel Black (RETIRED) gentoo-dev 2005-07-21 06:05:25 UTC
please commit if confortable with solution. 
Comment 5 Daniel Black (RETIRED) gentoo-dev 2005-08-05 20:43:06 UTC
applying patch in gnupg-1.9.18 

*** This bug has been marked as a duplicate of 67656 ***