qemu have at least 3 static* USE's in ebuild and setting either one missing at least 2 dependencies, shown in summary. When static-user enabled only, it asks only to set static-libs USE to glib and zlib. When adding static and static-softmmu USE's it asks to set static-libs into bunch of ebuilds, but still 2 missing. Reproducible: Always Steps to Reproduce: 1. USE=static-user emerge qemu. Or set static-user in qemu's package.use 2. USE="static static-user static-softmmu" emerge qemu. Or as above, have the USE's set in package.use 3. Notice a failure with -lgcrypt and -lgpg-error and dev-libs/libgpg-error[static-libs] 4. set static-libs to dev-libs/libgcrypt and dev-libs/libgpg-error. 5. notice a successful installation Actual Results: LC_ALL=C makeinfo --no-headers --no-split --number-sections --html /var/tmp/portage/app-emulation/qemu-2.5.0/work/qemu-2.5.0/qemu-doc.texi -o qemu-doc.html /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcrypt /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgpg-error /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgpg-error collect2: error: ld returned 1 exit status /var/tmp/portage/app-emulation/qemu-2.5.0/work/qemu-2.5.0/rules.mak:123: recipe for target 'tests/qemu-iotests/socket_scm_helper' failed make: *** [tests/qemu-iotests/socket_scm_helper] Error 1
Created attachment 419882 [details] qemu-static-builg.log
we don't want to use libgcrypt in the first place http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64ce86d1757fa73a25cdca0287d5360cca5b531b