Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674102 - www-apps/icingaweb2: conflict when Apache/PHP is used with fpm
Summary: www-apps/icingaweb2: conflict when Apache/PHP is used with fpm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-30 16:50 UTC by thomasb
Modified: 2019-01-09 06:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thomasb 2018-12-30 16:50:35 UTC
There is a conflict if www-apps/icingaweb2/icingaweb2-2.6.2.ebuild shall be used on a system where Apache and PHP are running in FPM mode. In this scenario, dev-lang/php will be compiled with the use flags "fpm" enabled and "apache2" disabled.  PHP is then integrated into Apache via the php-fpm pool and proxy_fcgi_module.

Due to its REQUIRED_USE, either apache2 or nginx use flag have to be specified on www-apps/icingaweb2, which in turn leads to either have dev-lang/php recompiled with the apache2 flag (which conflicts with the FPM integration) or nginx is installed (which is unwanted). The conflict even goes a bit further: If Apache is used with mpm_worker, requesting dev-lang/php to be built with the apache2 use flag also requests a re-compile of apache2, as PHP and mpm_worker conflict.

I built a workaround by simply removing REQUIRED_USE from the ebuild and neither use apache2 nor nginx. So it just doesn't tries to interfere with my Apache/PHP setup. Would be great if this would also be possible in the official ebuild.
Comment 1 thomasb 2018-12-30 17:06:59 UTC
Portage 2.3.51 (python 3.6.5-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.27-r6, 4.14.83-gentoo x86_64)
=================================================================
System uname: Linux-4.14.83-gentoo-x86_64-AMD_GX-412TC_SOC-with-gentoo-2.6
KiB Mem:     4028660 total,   1236424 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 26 Dec 2018 00:45:01 +0000
Head commit of repository gentoo: faef2c808fce93d018a94a6150d65649edc9fb59
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

localrepo
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=btver2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=btver2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.init7.net/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp ssl tcpd unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Larry the Git Cow gentoo-dev 2018-12-30 22:45:07 UTC
The bug has been referenced in the following commit(s):

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

commit 697a3f45907d7dfc72a3d3462f2a742735814f25
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2018-12-30 22:44:33 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2018-12-30 22:44:52 +0000

    www-apps/icingaweb2: simplify depends
    
    Bug: https://bugs.gentoo.org/674102
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 www-apps/icingaweb2/icingaweb2-9999.ebuild | 28 +++++++++-------------------
 www-apps/icingaweb2/metadata.xml           |  1 +
 2 files changed, 10 insertions(+), 19 deletions(-)
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2018-12-30 22:45:50 UTC
Can you see if the deps as defined in the update I just did to 9999 work for you?  If so I'll revbump 2.6.2 with the same change.
Comment 4 thomasb 2018-12-31 08:21:49 UTC
Yes. This works, thanks!
Comment 5 Larry the Git Cow gentoo-dev 2018-12-31 10:56:51 UTC
The bug has been closed via the following commit(s):

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

commit 2ee8042307265454ecdbdf8867fe7791b662796b
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2018-12-31 10:56:14 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2018-12-31 10:56:37 +0000

    www-apps/icingaweb2: 2.6.2-r1 fix up deps
    
    Closes: https://bugs.gentoo.org/674102
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 www-apps/icingaweb2/icingaweb2-2.6.2-r1.ebuild | 71 ++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)
Comment 6 thomasb 2019-01-01 16:34:31 UTC
Found one issue with the new ebuild, when emerging icingaweb2:

-->--<--
The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by www-apps/icingaweb2-2.6.2::gentoo[apache2]
# required by icingaweb2 (argument)
>=dev-lang/php-7.2.10 apache2 threads
# required by dev-lang/php-7.2.10::gentoo
# required by www-apps/icingaweb2-2.6.2::gentoo[apache2]
# required by icingaweb2 (argument)
>=app-eselect/eselect-php-0.9.4-r5 apache2
# required by dev-lang/php-7.2.10::gentoo[apache2]
# required by www-apps/icingaweb2-2.6.2::gentoo[apache2]
# required by icingaweb2 (argument)
>=www-servers/apache-2.4.34-r2 -threads
-->--<--

It seems it does require PHP with apache2 use flag even though it is no longer explicitly mentioned as a dependency?
Comment 7 Larry the Git Cow gentoo-dev 2019-01-01 17:10:11 UTC
The bug has been referenced in the following commit(s):

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

commit 39efcf28f6569cf785a7ff1aedf4390e8c6f4825
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2019-01-01 17:09:17 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2019-01-01 17:09:59 +0000

    www-apps/icingaweb2: serparate usage of apache2 flag
    
    Bug: https://bugs.gentoo.org/674102
    
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 www-apps/icingaweb2/icingaweb2-9999.ebuild | 8 ++++----
 www-apps/icingaweb2/metadata.xml           | 1 +
 2 files changed, 5 insertions(+), 4 deletions(-)
Comment 8 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-01-01 17:10:34 UTC
This should help, let me know if it's good.
Comment 9 thomasb 2019-01-09 06:52:01 UTC
Yes, thanks, that's good.
Comment 10 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-01-09 06:59:31 UTC
ok, closing