Currently the various gcc-libs subpackages (gcc-libs-4.9.4p18 and 
gcc-libs-8.3.0)
are not set as conflicting with each other:

$ grep @conflict.*gcc-libs */pkg/PLIST-libs
4.9/pkg/PLIST-libs:@conflict gcc-libs->=4.9,<4.10
6/pkg/PLIST-libs:@conflict gcc-libs->=6,<7
8/pkg/PLIST-libs:@conflict gcc-libs->=8,<9

But these contain .la files which conflict with each other - this was
done because a port linking against those libraries (via a LIB_DEPENDS
chain) needs the .la files but might not itself be built with ports-gcc.

$ (cd 4.9; SUBPACKAGE=-libs make print-plist | fgrep .la)
lib/libatomic.la
lib/libestdc++.la
lib/libgfortran.la
lib/libobjc.la
lib/libcilkrts.la
lib/libitm.la
lib/libquadmath.la
$ (cd 8; SUBPACKAGE=-libs make print-plist | fgrep .la)
lib/libatomic.la
lib/libestdc++.la
lib/libgfortran.la
lib/libobjc.la
lib/libcc1.la
lib/libitm.la
lib/libquadmath.la

Any thoughts on how to properly handle this?

We'll need to handle this before switching gcc default to 8.x
otherwise pkg_add -u will run into the conflict.

Reply via email to