Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562010 - net-misc/openconnect-7.06-r1 is missing dependency on sys-apps/pcsc-lite
Summary: net-misc/openconnect-7.06-r1 is missing dependency on sys-apps/pcsc-lite
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-02 02:31 UTC by Laszlo Valko
Modified: 2015-11-02 17:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
openconnect build log (build.log,59.99 KB, text/plain)
2015-10-02 02:32 UTC, Laszlo Valko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laszlo Valko 2015-10-02 02:31:06 UTC
When libpcsclite.so.1 has been installed on the system, compiling net-misc/openconnect-7.06-r1 will automatically produce a binary linked to that shared library, resulting in a hidden dependency. This breaks .tbz2-based installations.

Reproducible: Always

Steps to Reproduce:
1. install sys-apps/pcsc-lite
2. emerge -b net-misc/openconnect-7.06-r1
3. unmerge sys-apps/pcsc-lite, or move the 
Actual Results:  
openconnect fails to run, while emerge/depmod does not show any package problems.
Similarly, when packages are moved another system in binary format, dependency checking does not show that pcsc-lite is missing.

Expected Results:  
Package dependencies should work properly.

Portage 2.2.20.1 (python 2.7.9-final-0, default/linux/x86/13.0, gcc-4.8.4, glibc-2.20-r2, 3.18.9-myhardened i686)
=================================================================
System uname: Linux-3.18.9-myhardened-i686-Intel-R-_Core-TM-_i5-4670_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     8157876 total,   1608296 free
KiB Swap:    8388592 total,   8387216 free
Timestamp of repository gentoo: Thu, 01 Oct 2015 02:00:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.1) 2.25
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.4.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://127.0.0.1:874/gentoo-portage
    priority: -1000

myfixes
    location: /var/lib/layman/myfixes
    masters: gentoo
    priority: 0

myhardened
    location: /var/lib/layman/myhardened
    masters: gentoo
    priority: 1

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -mtune=core2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -mtune=core2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X Xaw3d a52 aac aacplus aacs aalib acl acpi alsa amr amrenc amrnb amrwb apache2 audio berkdb bluetooth bluray browserplugin bzip2 bzlib cairo caps cgi clamdtop cli conntrack cracklib crypt css ctype curl cxx dc1394 dga dirac directfb dkim dri dts dv dvb dvd encode exif faac faad fbcon fdk ffmpeg flac fontconfig fpm ftp gd gdbm ggi gif gpm gtk gtk2 h323 hash iconv ieee1394 imap irda java jce joystick jpeg lame ldap ldapsam libass libcaca libsamplerate libsoxr libv4l linsys live lmtp logrotate loop-aes lzma lzo mad maildir maildrop matroska memlimit mhash mime mjpeg mmap mmx mod modplug modules motif mozilla mp3 mpeg mtp musepack mysql mysqli ncurses no-helper nptl nsplugin oav ogg opengl openmp opus pam pcmcia pcntl pcre perl php png pnm procmail pyzord qt3support quicktime quotas quvi rar razor readline real rtmp rtsp samba schroedinger sdl seccomp session sieve slang smartcard sndfile soap sockets socks5 spamassassin speex sse sse2 ssl suexec svg syslog sysvipc taglib tcl tcltk tcpd tga theora tiff tk truetype twolame udev unicode usb v4l v4l2 vaapi vcd vda vdpau vdr video vidix vorbis vpx wavpack webp win32codecs wmf x264 x265 x86 xanim xcb xine xinerama xml xml2 xmlreader xmlwriter xpm xsl xv xvid zip zlib zvbi" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http reqtimeout rewrite setenvif speling status substitute unique_id userdir usertrack vhost_alias cgi" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US hu" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="mustek_usb2" USERLAND="GNU" VIDEO_CARDS="intel fbdev radeonhd radeon nouveau nv vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Laszlo Valko 2015-10-02 02:32:26 UTC
Created attachment 413478 [details]
openconnect build log
Comment 2 Laszlo Valko 2015-10-02 02:33:49 UTC
The produced binary gets linked to libpcsclite.so.1:
# ldd `which openconnect`
        linux-gate.so.1 (0xb772c000)
        libopenconnect.so.5 => /usr/lib/libopenconnect.so.5 (0xb76d4000)
        libgnutls.so.28 => /usr/lib/libgnutls.so.28 (0xb75b8000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7461000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7447000)
        libc.so.6 => /lib/libc.so.6 (0xb72aa000)
        libz.so.1 => /lib/libz.so.1 (0xb7293000)
        libpcsclite.so.1 => /usr/lib/libpcsclite.so.1 (0xb7287000)
        libtasn1.so.6 => /usr/lib/libtasn1.so.6 (0xb7274000)
        libnettle.so.4 => /usr/lib/libnettle.so.4 (0xb723f000)
        libhogweed.so.2 => /usr/lib/libhogweed.so.2 (0xb720e000)
        libgmp.so.10 => /usr/lib/libgmp.so.10 (0xb719b000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7196000)
        liblzma.so.5 => /lib/liblzma.so.5 (0xb716f000)
        libm.so.6 => /lib/libm.so.6 (0xb7129000)
        /lib/ld-linux.so.2 (0xb772d000)
        librt.so.1 => /lib/librt.so.1 (0xb711f000)
Comment 3 William Hubbs gentoo-dev 2015-11-02 16:26:37 UTC
This is an optional dependency. We have a pcsc-lite use flag, so I would
suggest leveraging that.
Comment 4 Mike Gilbert gentoo-dev 2015-11-02 17:01:31 UTC
commit c937d6f90e60dd0f0eb00467447eaadf7078473b
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Mon Nov 2 12:00:25 2015 -0500

    net-misc/openconnect: Add smartcard USE flag
    
    Resolves automagic dependency on sys-apps/pcsc-lite.
    
    Bug: https://bugs.gentoo.org/562010
    
    Package-Manager: portage-2.2.23_p10

 net-misc/openconnect/openconnect-7.06-r1.ebuild | 6 ++++--
 net-misc/openconnect/openconnect-7.06-r2.ebuild | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)