The ebuild wants to check the kernel configuration, which may possibly be included in the package providing virtual/linux-sources. In that case, adding the dependency will pull in the sources+config before trying to do the check. Reproducible: Always
libnfnetlink has inherit linux-info linux-info.eclass has: [ -z "${I_KNOW_WHAT_I_AM_DOING}" ] && \ DEPEND="kernel_linux? ( virtual/linux-sources )" So, this bug report is for something that is already being done.
(In reply to comment #1) > libnfnetlink has inherit linux-info > > linux-info.eclass has: > [ -z "${I_KNOW_WHAT_I_AM_DOING}" ] && \ > DEPEND="kernel_linux? ( virtual/linux-sources )" > > So, this bug report is for something that is already being done. > Correct. I just noticed that emerging libnfnetlink does pull in my kernel package. The issue is that the kernel config check is done in pkg_setup(), which is also executed for binary packages, but virtual/linux-sources is in DEPEND, so my kernel package (including a .config and compilation in src_compile) is not pulled in.
(In reply to comment #2) > Correct. I just noticed that emerging libnfnetlink does pull in my kernel > package. > > The issue is that the kernel config check is done in pkg_setup(), which is also > executed for binary packages, but virtual/linux-sources is in DEPEND, so my > kernel package (including a .config and compilation in src_compile) is not > pulled in. > Ah yes, I see what you mean. Thanks for explaining. Basically, the ebuild is not compatible with binary packages. I faced similar issues when I filed bug 296578, maybe you can use that as inspiration.
per bug 283320, we no longer bring in linux-sources since rev 1.79 of the eclass.