Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572574 - app-crypt/gnupg metadata.xml causes misleading equery output
Summary: app-crypt/gnupg metadata.xml causes misleading equery output
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-22 08:13 UTC by John Harlan
Modified: 2016-01-22 13:30 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Harlan 2016-01-22 08:13:23 UTC
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='&lt;app-crypt/gnupg-2.0.17-r1'>
      Bring in <pkg>dev-libs/libusb</pkg> as a dependency; enable
      scdaemon.
    </flag>
    <flag name='smartcard' restrict='&gt;=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='&gt;=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>
Comment 1 Kristian Fiskerstrand (RETIRED) gentoo-dev 2016-01-22 13:30:39 UTC
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