Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219423 - Please add 'static' USE flag to app-crypt/gnupg
Summary: Please add 'static' USE flag to app-crypt/gnupg
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-27 07:24 UTC by RB
Modified: 2010-10-19 01:42 UTC (History)
1 user (show)

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


Attachments
patch to ebuild (gnupg-2.0.9-add-static.patch,651 bytes, patch)
2008-04-27 07:25 UTC, RB
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description RB 2008-04-27 07:24:03 UTC
Working on adding GPG functionality to pre-init environment (genkernel et. al.) and a static binary is needed.  Spoke with upstream and alonb, and there isn't a problem w/static, just a misunderstanding about its support.  Attached is a small patch to the gnupg-2.0.9 ebuild that makes a change to link the executables statically.  Compiled, validated, and tested in my small environment to success.
Comment 1 RB 2008-04-27 07:25:04 UTC
Created attachment 151105 [details, diff]
patch to ebuild
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2008-04-29 17:24:31 UTC
Issues:

i686-pc-linux-gnu-gcc   -O3 -march=pentium-m -fomit-frame-pointer -pipe -Wall -Wno-pointer-sign -Wpointer-arith  -static -o gpg2keys_curl gpg2keys_curl-gpgkeys_curl.o gpg2keys_curl-ksutil.o gpg2keys_curl-no-libgcrypt.o gpg2keys_curl-curl-shim.o ../gl/libgnu.a  ../common/libcommon.a ../jnlib/libjnlib.a -lgpg-error  -lresolv
gpg2keys_finger-gpgkeys_finger.o: In function `main':
gpgkeys_finger.c:(.text+0x631): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../common/libcommon.a(libcommon_a-http.o): In function `connect_server':
http.c:(.text+0xb62): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
make[2]: Leaving directory `/var/tmp/portage/app-crypt/gnupg-2.0.9/work/gnupg-2.0.9/keyserver'

i686-pc-linux-gnu-gcc     -O3 -march=pentium-m -fomit-frame-pointer -pipe -Wall -Wno-pointer-sign -Wpointer-arith  -static -o gpgsm gpgsm.o misc.o keydb.o server.o call-agent.o call-dirmngr.o fingerprint.o base64.o certlist.o certdump.o certcheck.o certchain.o keylist.o verify.o sign.o encrypt.o decrypt.o import.o export.o delete.o certreqgen.o certreqgen-ui.o qualified.o ../common/libcommon.a ../kbx/libkeybox.a ../jnlib/libjnlib.a ../gl/libgnu.a ../common/libgpgrl.a -lgcrypt -lgpg-error -lksba -lgpg-error -lassuan -lgpg-error -lreadline -lcurses  -lz -lbz2
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libreadline.a(complete.o): In function `rl_username_completion_function':
(.text+0x1151): warning: Using 'getpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libreadline.a(tilde.o): In function `tilde_expand_word':
(.text+0x1c3): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libreadline.a(shell.o): In function `sh_get_home_dir':
(.text+0x6c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libreadline.a(complete.o): In function `rl_username_completion_function':
(.text+0x114c): warning: Using 'setpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libreadline.a(complete.o): In function `rl_username_completion_function':
(.text+0x11ec): warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

i686-pc-linux-gnu-gcc    -O3 -march=pentium-m -fomit-frame-pointer -pipe -Wall -Wno-pointer-sign -Wpointer-arith  -static -o gpgconf gpgconf.o gpgconf-comp.o no-libgcrypt.o ../common/libcommon.a ../jnlib/libjnlib.a ../gl/libgnu.a  -lgpg-error
gpgconf-comp.o: In function `gc_process_gpgconf_conf':
gpgconf-comp.c:(.text+0x4114): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
gpgconf-comp.c:(.text+0x4201): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
i686-pc-linux-gnu-gcc    -O3 -march=pentium-m -fomit-frame-pointer -pipe -Wall -Wno-pointer-sign -Wpointer-arith  -static -o gpg-connect-agent gpg-connect-agent.o no-libgcrypt.o ../common/libgpgrl.a ../common/libcommon.a ../jnlib/libjnlib.a ../gl/libgnu.a -lassuan -L/usr/lib -lpth -ldl -lnsl -lgpg-error -lreadline -lcurses
mv -f .deps/gpgsplit.Tpo .deps/gpgsplit.Po
i686-pc-linux-gnu-gcc   -O3 -march=pentium-m -fomit-frame-pointer -pipe -Wall -Wno-pointer-sign -Wpointer-arith  -static -o gpgkey2ssh gpgkey2ssh-gpgkey2ssh.o ../common/libcommon.a ../jnlib/libjnlib.a ../gl/libgnu.a -lgcrypt -lgpg-error -lgpg-error
/usr/lib/libreadline.a(complete.o): In function `rl_username_completion_function':
(.text+0x1151): warning: Using 'getpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libreadline.a(tilde.o): In function `tilde_expand_word':
(.text+0x1c3): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libreadline.a(shell.o): In function `sh_get_home_dir':
(.text+0x6c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libreadline.a(complete.o): In function `rl_username_completion_function':
(.text+0x114c): warning: Using 'setpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libreadline.a(complete.o): In function `rl_username_completion_function':
(.text+0x11ec): warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

$ /var/tmp/portage/app-crypt/gnupg-2.0.9/image/usr/libexec/gnupg-pcsc-wrapper 1 /usr/lib/libpcsclite.so
Segmentation fault

And I guess more.
Comment 3 RB 2008-04-29 18:34:39 UTC
I would like to know what USE flags are being enabled for your test; my default ones do not include any of the smartcard bits.
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2008-04-29 18:36:10 UTC
Enable all of them when you test.
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2008-05-08 07:43:04 UTC
Please reopen if you got solutions.
Comment 6 RB 2008-05-08 12:18:46 UTC
Still working on it, just been extra busy the past couple of weeks.

I'm not sure I have a good clean solution, but will reopen if it turns out to be and this is the only way.
Comment 7 Wolfram Schlich (RETIRED) gentoo-dev 2010-08-16 20:36:00 UTC
gnupg-pcsc-wrapper still segfaults with USE=static and works fine with USE=-static.

2010-08-16 22:30:50 +02:00; zephyr; kern.info; kernel: gnupg-pcsc-wrap[6700]: segfault at 0 ip (null) sp 00007fff905da368 error 14 in gnupg-pcsc-wrapper[400000+91000]
Comment 8 Wolfram Schlich (RETIRED) gentoo-dev 2010-08-16 20:39:06 UTC
emerge --info:

Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.31-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9400_@_2.53GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 08 Aug 2010 12:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 1.3.7-r1, 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ABI="amd64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* PUEL"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="seq-dummy dummy mpu401 loopback hda-intel"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol"
ANT_HOME="/usr/share/ant"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
BUILD_PREFIX="/var/tmp/portage"
CBUILD="x86_64-pc-linux-gnu"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-O2 -march=nocona -pipe"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="3"
COLLISION_IGNORE="/lib/modules"
COLORTERM="1"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CVS_RSH="ssh"
CXXFLAGS="-O2 -march=nocona -pipe"
DEFAULT_ABI="amd64"
DISPLAY=":0.0"
DISTDIR="/local/portage/distfiles"
DVB_CARDS="usb-dib0700"
EDITOR="vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="-v --alphabetical --keep-going --jobs=2 --load-average=2"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FEATURES="assume-digests buildpkg ccache collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo http://distfiles.gentoo.org"
HG="/usr/bin/hg"
HISTFILESIZE="20000"
HISTSIZE="20000"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/info"
INPUT_DEVICES="evdev joystick keyboard mouse synaptics vmmouse void"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LANG="en_US.utf8"
LANGUAGE="en_US.utf8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ADDRESS="de_DE.utf8"
LC_COLLATE="en_US.utf8"
LC_CTYPE="en_US.utf8"
LC_IDENTIFICATION="de_DE.utf8"
LC_MEASUREMENT="de_DE.utf8"
LC_MESSAGES="en_US.utf8"
LC_MONETARY="de_DE.utf8"
LC_NAME="de_DE.utf8"
LC_NUMERIC="C"
LC_PAPER="de_DE.utf8"
LC_TELEPHONE="de_DE.utf8"
LC_TIME="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LINGUAS="en de fr"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAKEOPTS="-j3 --load-average=2"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/man:/etc/java-config/system-vm/man/:/opt/cuda/man"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
NOCOLOR="true"
OPENGL_PROFILE="nvidia"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.3:/opt/vmware/bin:/opt/cuda/bin"
PKGDIR="/local/portage/packages"
PKG_TMPDIR="/var/tmp/portage-pkg"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="info warn error log"
PORTAGE_ELOG_MAILFROM="portage@${HOST}"
PORTAGE_ELOG_MAILSUBJECT="Portage: ${PACKAGE} merged on ${HOST} with notice"
PORTAGE_ELOG_MAILURI="wschlich@gentoo.org localhost:25"
PORTAGE_ELOG_SYSTEM="save:* echo:* mail_summary:*"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_IONICE_COMMAND="ionice -c 3 -p ${PID}"
PORTAGE_NICENESS="5"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=30"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_SYNC_STALE="7"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/local/portage/layman/wschlich /local/portage/layman/wschlich-testing /local/portage/layman/otih /local/portage/layman/mozilla /local/portage/layman/vmware /local/portage/layman/kde /usr/local/portage"
PORT_LOGDIR="/var/log/portage"
PRELINK_PATH_MASK="/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
QEMU_SOFTMMU_TARGETS="i386 x86_64"
QEMU_USER_TARGETS="i386 x86_64"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.3:/opt/vmware/bin:/opt/cuda/bin"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby18"
SANE_CONFIG_DIR="/etc/sane.d"
SGML_CATALOG_FILES="/etc/sgml/sgml-docbook.cat:/etc/sgml/openjade-1.3.2.cat:/etc/sgml/dsssl-docbook-stylesheets.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-lite.cat:/etc/sgml/sgml-docbook-4.4.cat:/etc/sgml/xml-docbook-4.4.cat:/etc/sgml/xml-docbook-4.1.2.cat:/etc/sgml/xml-docbook-4.2.cat:/etc/sgml/xml-docbook-4.5.cat:/etc/sgml/xml-docbook-4.3.cat:/etc/sgml/sgml-ent.cat"
SHELL="/bin/bash"
SHLVL="1"
STAGE1_USE="multilib nptl nptlonly unicode"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
TERM="screen"
USB_DEVFS_PATH="/dev/bus/usb"
USE="X X509 Xaw3d a52 aac aalib accounting acl acpi aim aliaschain alsa amd64 async atm audiofile avahi avi bash-completion bcmath bitmap-fonts bluetooth branding bzip2 bzlib cairo calendar cap caps cddb cdinstall cdr cdrom cgi chipcard chroot cjk clamav cli client cnamefix codecs consolekit cpdflib cracklib crypt cscope css ctype cups curl curlwrappers cxx cyrus dbus dedicated devmap dga dhcp distcache divx4linux djbfft dmi dri droproot dts dumb-allegro dv dvby dvd dvdr dvdread dynamic editor emboss encode escreen ethereal evo exif expat extensions fam fastcgi fax fb fbcon fbdev festival ffmpeg firefox flac flash flatfile flood font-server fontconfig foomaticdb freetype ftp fusion fwdzone gatos gb gcj gd gdbm gif gimp gimpprint glep gnuplot gpg2-experimental gphoto2 gpm gps graphviz gs gstreamer hal hbciiconv iconv icq idea idled ieee1394 image imagemagick imap imlib imlib2 inifile innodb inotify ipalias ipv6 irc irda isdn isdnlog j2ee jabber java javacomm javadoc javascript jikes jp2 jpeg jpeg2k kde ladcca largeterminal lcd lcms ldap libgda libwww live lmtp logrotate ltsp lufsusermount lzma mad mailbox maildir maildrop mbox mcal md5sum mdb memlimit messages mew mhash midi mikmod milter mime mimencode ming mixer mjpeg mmap mmx mmx2 mmxext mng mnogosearch modules monkey mozcalendar mozilla moznocompose moznoirc mozp3p mozsvg mozxmlterm mp3 mp4 mpeg mplayer mppe-mppc msn mudflap multi-tty multicall multilib multipleip music mysql mysqli nagios-dns nagios-ntp nagios-ping nagios-ssh nas ncurses net netboot nethack network networkmanager neural nis nls nntp nptl nptlonly nsplugin ntlm oav objcocaml offensive ofx ogg oggvorbis openal opengl openntpd openssh operanom2 oscar ospfapi otr pam pango parse-clocks passfile pcap pcmcia pcntl pcre pda pdf pdfkit pdflib pear-db perl pic pie plasma png pnp posix ppds pppd prelude print procmail profile pthreads pwdb python qt3support qt4 quicktime quotas radius rar rdesktop readline reflection remote resolvconf roundrobin rrdcgi rrdtool rss rtc samba sample sasl scanner screenshot sdk sdl semantic-desktop semanticfix sendfile serial server session sftplogging shaper shorten silc simplexml skey slp smartcard smime smp sms smtp sndfile snmp soap sockets socks5 softquota sox spell spl sqlite sqlite3 sse sse2 ssl ssse3 startup-notification stats subtitles svg sysfs syslog sysvipc szip tcltk tcpd tcpmd5 tcsim tetex theora threads thumbnail tiff tokenizer transcode transparent-proxy truetype truetype-fonts trusted type1 type1-fonts udev unicode usb userlocales uudeview v4l v4l2 vcd vda vhosts videos vim vim-pager vim-syntax vim-with-x virus-scan vnc vorbis wddx webkit wifi winbind withsamplescripts wma123 wmf wxwindows x264 xanim xattr xcb xcomposite xface xforms xfs xine xinerama xinetd xml xml2 xmlrpc xorg xosd xpm xprint xrandr xscreensaver xsl xulrunner xv xvid yahoo yv12 zip zlib" ALSA_CARDS="seq-dummy dummy mpu401 loopback hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="usb-dib0700" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse synaptics vmmouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de fr" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia dummy fbdev nv vesa vga vmware" 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" 
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VBOX_APP_HOME="/opt/VirtualBox"
VIDEO_CARDS="nvidia dummy fbdev nv vesa vga vmware"
XAUTHORITY="/root/.xauthlFgWwW"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
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"
XZ_OPT="--memory=max"
_="/usr/bin/emerge"
bash4="4.0.37(2)-release"
Comment 9 Wolfram Schlich (RETIRED) gentoo-dev 2010-08-16 20:40:27 UTC
Using:
app-crypt/gnupg-2.0.16
sys-apps/pcsc-lite-1.6.1
Comment 10 Wolfram Schlich (RETIRED) gentoo-dev 2010-08-16 20:42:38 UTC
See this thread: http://www.mail-archive.com/gnupg-users@gnupg.org/msg10851.html
Comment 11 Wolfram Schlich (RETIRED) gentoo-dev 2010-08-16 20:45:33 UTC
Especially http://www.mail-archive.com/gnupg-users@gnupg.org/msg10873.html

--8<--
What do you mean by a static build?  No shared libraries?  That makes
dlopen a bit questionable.  I have never tried to build gnupg2
statically, at some points we use weak binding semantics and all kind of
problems may happen with a static link.
--8<--

So we should at least bail out on USE=smartcard *and* USE=static.
Please please keep USE=static itself, it's really import for initramfs
builds (for luks + gpg).
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-10-19 01:42:13 UTC
mutual exclusion fixed in 2.0.16-r2.