This patch fixes building Bitcoin Core on apt based systems. It also now prefers Qt5, since it is the first one that is looked for by the configure script.
The comments in contrib/debian/gbp.conf are there for reference, and a hint for any distro maintainer that might need it.