equery u output for gnupg states that the smartcard use flag is restricted to package versions less than 2.0.17-r1; while in fact the smartcard use flag is observed by version 2.0.28 and required for smartcard support. Because I observed the misleading equery output and did not set the smartcard use flag (since it states it will be ignored), I wasteed ~15 hrs troubleshooting problems w/ my smartcard and GnuPG and even filed a bug report wasting valuable dev time (sorry about that!). Please update the metadata.xml file such that equery output will more accurately reflect current use flag uses and restrictions. Thank you. Reproducible: Always Steps to Reproduce: 1. Execute 'equery u app-crypt/gnupg' 2. Read output for smartcard and USB useflags 3. Execute 'USE="smartcard" emerge -p ">=app-crypt/gnupg-2.0.17-r1"' 4. Notice how the use flag is observed, even though equery says it's not allowed for the version selected for emerge. Actual Results: https://bpaste.net/show/f086a970224d I have tested this on a VM booting the latest Gentoo Live DVD (livedvd-amd64-multilib-20140826.iso) to confirm that the problem is not unique to my system. $ cat /usr/portage/app-crypt/gnupg/metadata.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>crypto</herd> <longdescription> GnuPG is a complete and free implementation of the OpenPGP standard as defined by RFC4880. </longdescription> <use> <flag name='smartcard' restrict='<app-crypt/gnupg-2.0.17-r1'> Bring in <pkg>dev-libs/libusb</pkg> as a dependency; enable scdaemon. </flag> <flag name='smartcard' restrict='>=app-crypt/gnupg-2.0.17-r1'> Build scdaemon software. Enables usage of OpenPGP cards. For other type of smartcards, try <pkg>app-crypt/gnupg-pkcs11-scd</pkg>. </flag> <flag name='usb' restrict='>=app-crypt/gnupg-2.0.17-r1'> Build direct CCID access for scdaemon; requires <pkg>dev-libs/libusb</pkg>. </flag> <flag name='mta'> Build mta support using <pkg>virtual/mta</pkg>. </flag> <flag name='tofu'> Enable support for Trust of First use trust model; requires <pkg>dev-db/sqlite</pkg>. </flag> <flag name='tools'> Install extra tools. </flag> </use> </pkgmetadata>
commit 2436570860b6c2da6657d39168bb6894cee3277c Author: Kristian Fiskerstrand <k_f@gentoo.org> Date: Fri Jan 22 14:28:54 2016 +0100 app-crypt/gnupg: Update metadata.xml Remove restricts as smartcard and usb flags are used all over the place Bug: 572574 Package-Manager: portage-2.2.26