wvstreams-4.2.2 doesn't compile with -Wl,--as-needed, because its weird Makefiles system puts some .so libs in the linker arguments, before the objects using them (and thus they are skipped). And also, the way the configure script puts -lqt-mt in LDFLAGS was making Qt detection to silently fail (the coresponding lib was not built despite USE="qt"). The attached "wstreams-4.2.2-as-needed.patch" fixes both this issues.
I will also attach an ebuild patch which applies the previous one, and in addition cleanups a few things:
- "tcltk" USE flag is not useful in this package: it will only add libtcl to the linked libs (for people who don't use --as-needed at least), but nothing uses it because the rules which trigger building the tcl bindings (and other swig-based bindings) are disabled in wvrules.mk. So i have dropped everything related to tcl/swig from the ebuild (i guess nothing in Portage was using it, since obviously it would not have worked). Sure, the other way around would have been to uncomment the said rules in wvrules.mk and see what happens, but i've not tried that.
- removed "gtk" from IUSE, since it is not used
- moved autoconf from src_compile to src_unpack, since i think that's where it belongs (no need to rerun it on every "ebuild ... compile")
Created attachment 86352 [details, diff]
Created attachment 86353 [details, diff]
fixed in 4.2.2-r2.