On Wed, Jan 30, 2019 at 02:29:18PM -0500, George Koehler wrote:
> To Marc Epsie (x11/qt4 maintainer) and ports list,
> 
> The attached qt4-gcc8.diff is a set of patches for x11/qt4 to build it
> with lang/gcc/8 in OpenBSD ports.  This is the same diff that I mailed
> on 19 Jan, but I got an error from the mailer daemon, and I didn't
> resend qt4-gcc8.diff until now.  My diff is missing the REVISION bump.
> 
> For now, OpenBSD only uses ports-gcc 4.9 or clang, so nothing is
> broken.  If, in the future, OpenBSD would switch ports-gcc from 4.9
> to a newer version, then ports-gcc arches will fail to build qt4.
> The last release of qt4 was in 2015; the code is old; most problems
> are in qt4's old WebKit.
> 
> I am using this diff on powerpc with gcc-8.2.0p0 to package qt4 and
> build ports that depend on qt4.  I use lang/gcc/8 as ports-gcc by
> editing infrastructure/mk/gcc4.port.mk (MODGCC4_VERSION?=8) and
> devel/llvm/Makefile (GCC_VER = 8.2.0).
> 
> I also tested this diff on amd64 with gcc-4.9.4p15, gcc-8.2.0p0, and
> base-clang 6.  (To use ports-gcc, I did something like `make prepare`
> then `make package COMPILER=ports-gcc`.  The package built with gcc is
> probably bad because I'm mixing libestdc++ from ports-gcc with libc++
> from base-clang.)  I didn't try to build qt4 with base-gcc.
> 
> The new chunk in patch-configure allows gcc >= 6 to build QtWebKit.
> The other patches fix compiler errors.  My patch comments mention
> "gcc 6" because I used the patches with lang/gcc/6 before I switched
> to gcc 8.  The only change from gcc 6 to 8 was to edit
> patch*HashSet_h; I didn't try gcc 6 with this edit.
> 
> Other distros (like Debian and NetBSD) probably have qt4 patches for
> newer gcc.  It might be better to use their patches instead of mine.

On that point, debian is planning to remove qt4 from the upcoming
stable:
https://lists.debian.org/debian-devel-announce/2017/08/msg00006.html
https://wiki.debian.org/Qt4Removal

Reply via email to