dev-lang/php: new revisions to fix shared memory and threads support.
authorMichael Orlitzky <mjo@gentoo.org>
Fri, 19 Jan 2018 16:35:41 +0000 (11:35 -0500)
committerMichael Orlitzky <mjo@gentoo.org>
Sat, 20 Jan 2018 05:01:15 +0000 (00:01 -0500)
commitc6fd6c07c3c92aa7d27816749383c77ab025e07d
tree6a5a164734bdcd170e82d11422671a872b94e8c6
parent5c054f0cbc478f9945baf4a987c5b7fbeccd80f9
dev-lang/php: new revisions to fix shared memory and threads support.

Our PHP ebuilds used the "sharedmem" flag to conflate two ./configure
flags, namely --enable-shmop and --with-mm. The former is the "shared
memory" extension, and the latter enables the dev-libs/mm backend for
session storage. This commit separates the two:

  * The old USE=sharedmem enables the shared memory extension
  * The new USE=session-mm enables the dev-libs/mm session backend

The nascent session-mm flag depends on USE=session being set.

Additionally, we had a REQUIRED_USE constraint prohibiting USE=sharedmem
from being set at the same time as USE=threads. This turns out to be due
to an incompatibility between the --with-mm and --enable-maintainer-zts
flags, the latter of which is toggled by USE=threads. So in the new
revisions, we have a REQUIRED_USE constraint that blocks USE=threads
when USE=session-mm is set.

Thanks are due to Xiami who reported and fixed all of these issues in
bug 644922.

Reported-by: Xiami <i@f2light.com>
Closes: https://bugs.gentoo.org/644922
Package-Manager: Portage-2.3.13, Repoman-2.3.3
dev-lang/php/metadata.xml
dev-lang/php/php-7.1.13-r1.ebuild [new file with mode: 0644]
dev-lang/php/php-7.2.1-r1.ebuild [moved from dev-lang/php/php-7.2.1.ebuild with 99% similarity]