Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 637402

Summary: >=dev-lang/php-5.6[fpm] automagic on libapparmor
Product: Gentoo Linux Reporter: coyote <viking-coyote>
Component: Current packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: dan
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/php/php-src/pull/2989
Whiteboard:
Package list:
Runtime testing required: ---

Description coyote 2017-11-13 20:46:24 UTC
dev-lang/php-5.6.31 has automagic dependency on sys-libs/libapparmor:0, maybe need corresponding USE
Comment 1 Brian Evans (RETIRED) gentoo-dev 2017-11-13 20:55:28 UTC
Confirmed, but only on fpm.

Unfortunately, there is no autotools flag to flip without a patch to sapi/fpm/config.m4
Comment 2 Michael Orlitzky gentoo-dev 2017-12-27 04:01:55 UTC
I opened a pull request upstream that adds the necessary configure flag.
Comment 3 Michael Orlitzky gentoo-dev 2021-07-02 19:33:42 UTC
We can finally fix this in php-8.x:

  https://bugs.php.net/bug.php?id=75519

Something like

  apparmor? ( sys-libs/libapparmor )

in *DEPEND and

  $(use_with apparmor fpm-apparmor)

in econf should do it.
Comment 4 Larry the Git Cow gentoo-dev 2021-07-15 20:22:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cba7f8228328b339b8f6090406c26fc14d4e39d9

commit cba7f8228328b339b8f6090406c26fc14d4e39d9
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2021-07-15 19:06:24 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2021-07-15 20:21:52 +0000

    dev-lang/php: support USE=apparmor in php-8.x.
    
    Earlier versions of dev-lang/php[fpm] have an "automagic" dependency
    on libapparmor when the latter is installed. The 8.x versions of PHP,
    however support a --with-fpm-apparmor flag that determines whether or
    not php-fpm makes use of libapparmor. This commit adds USE=apparmor to
    the php-8.x series to control that behavior.
    
    When USE=fpm is unset, the new USE=apparmor flag is a no-op. That seems
    slightly less annoying for users than forcing them to make the "fpm"
    and "apparmor" USE flags consistent.
    
    Closes: https://bugs.gentoo.org/637402
    Package-Manager: Portage-3.0.20, Repoman-3.0.2
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 dev-lang/php/metadata.xml                                 | 1 +
 dev-lang/php/{php-8.0.8-r1.ebuild => php-8.0.8-r2.ebuild} | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)