Opening so that the we don’t loose this discussion from #16041, as this needs following up.
In this PR we identify 4 secondary deps that should be built statically:
- dbus
- expat
- libXext
- xtrans
However, only expat required being built
--with-pic
for depends builds to succeed, which is rather odd. Therefore, the rest of the deps must not be linked in, or are headers-only.Results of my investigation (please verify these as I might be completely wrong):
libXext
The only package that we declare as depending on libXext is qt, and it doesn’t actually… Tested by removing the package definition and references to it, everything seems to compile fine.
xtrans
It seems that xtrans is just code+headers and not a library that needs to be linked in. We can verify this by looking at the build outputs.
Its configure is very confused as to why we supply it with
--disable-{static,shared}
. It is, however, required as a build-time dependency for libX11.dbus
The only reference to dbus is in the configure options for qt:
-dbus-runtime
. Which indicates to qt to dynamically open libdbus-1 at runtime (with dlopen?). I believe this means that we don’t actually use the dbus we build. (This one I’m the least sure about)