Version 3.19 build 15 of sci-mathematics/gimps is available for download (~x86 and ~amd64 only, as it's a binary release). From mersenneforum.org (https://www.mersenneforum.org/showpost.php?p=656146&postcount=881): This fixes yet another bug in choosing optimal B2 when using Pminus1= in worktodo.txt. The algorithm was incorrectly handling cost comparisons of a prime-pairing stage 2 against the new polymult stage 2. This is a release candidate, it will become stable in due time unless new RCs come out in the meantime. Github PR will follow soon.
A newer version has come out in the meantime.