Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 551078 - www-servers/apache-2.4.12-r1 - You have selected a non-threaded MPM but USE=threads is enabled
Summary: www-servers/apache-2.4.12-r1 - You have selected a non-threaded MPM but USE=t...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on: 511658
Blocks:
  Show dependency tree
 
Reported: 2015-06-03 13:18 UTC by Juergen Rose
Modified: 2021-04-28 19:22 UTC (History)
6 users (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 Juergen Rose 2015-06-03 13:18:28 UTC
'emerge -uvDN world' complains about:

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by gnome-extra/gnome-user-share-3.14.2::gentoo
# required by gnome-base/gnome-extra-apps-3.14.0-r1::gentoo
# required by gnome-base/gnome-3.14.0::gentoo[extras]
# required by @selected
# required by @world (argument)
>=www-servers/apache-2.4.12-r1 apache2_mpms_prefork

I add the USE flag apache2_mpms_prefork to apache in /etc/portage/packages.use. 
The next 'emerge -v1 apache' fails with:

root@impala:/root(15)# emerge -v1 apache

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] www-servers/apache-2.4.12-r1:2::gentoo  USE="doc ldap ssl suexec threads -alpn -debug (-selinux) -static" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias -access_compat -asis -authn_alias -authz_dbd -cache_disk -cern_meta -cgi -charset_lite -dumpio -lbmethod_bybusyness -lbmethod_bytraffic -lbmethod_heartbeat -log_forensic -proxy_fcgi -proxy_ftp -proxy_scgi -proxy_wstunnel -ratelimit -remoteip -reqtimeout -substitute -version" APACHE2_MPMS="prefork* -event -peruser -worker" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) www-servers/apache-2.4.12-r1::gentoo
 * httpd-2.4.12.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                               [ ok ]
 * gentoo-apache-2.4.10-r1-20140731.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                           [ ok ]
 * 
 * Selected MPM: prefork
 * 
 * You have selected a non-threaded MPM but USE=threads is enabled
 * ERROR: www-servers/apache-2.4.12-r1::gentoo failed (setup phase):
 *   invalid use flag combination

root@impala:/root(10)# grep apache /etc/portage/package.use
#www-servers/apache mpm-worker suexec
www-servers/apache suexec apache2_mpms_prefork


Reproducible: Always
Comment 1 Jeff Sweeney 2015-06-03 18:14:46 UTC
Might want to check out <https://wiki.gentoo.org/wiki/Project:Apache/Upgrading#Supported_USE_flags_in_2.2.6-r4_and_above> 
Looks like if you dont have an APACHE2_MPMS variable set in your config, it selects the first option in the list (APACHE2_MPMS="prefork* -event -itk -peruser -worker") automatically to add to the config. This is where you're having problems, since the 'prefork' option is the non-threaded worker. You just need to set the APACHE2_MPMS to whatever "mpm-???" you previously used for apache. (worker seems to be the default threaded model - "If you do not enable one, mpm-prefork or mpm-worker will be used, depending on if the threads USE flag is set.")
Comment 2 Mike Gilbert gentoo-dev 2015-06-04 01:23:06 UTC
This should probably be covered by a REQUIRED_USE constraint instead of bailing out in pkg_setup.
Comment 3 Juergen Rose 2015-06-06 21:16:19 UTC
(In reply to Jeff Sweeney from comment #1)
> Might want to check out
> <https://wiki.gentoo.org/wiki/Project:Apache/
> Upgrading#Supported_USE_flags_in_2.2.6-r4_and_above> 
> Looks like if you dont have an APACHE2_MPMS variable set in your config, it
> selects the first option in the list (APACHE2_MPMS="prefork* -event -itk
> -peruser -worker") automatically to add to the config. This is where you're
> having problems, since the 'prefork' option is the non-threaded worker. You
> just need to set the APACHE2_MPMS to whatever "mpm-???" you previously used
> for apache. (worker seems to be the default threaded model - "If you do not
> enable one, mpm-prefork or mpm-worker will be used, depending on if the
> threads USE flag is set.")

I also set "www-servers/apache mpm-worker suexec apache2_mpms_prefork" in /etc/portage/packages.use, but it does not change anything.
Comment 4 Juergen Rose 2015-06-06 21:25:33 UTC
(In reply to Mike Gilbert from comment #2)
> This should probably be covered by a REQUIRED_USE constraint instead of
> bailing out in pkg_setup.

If I set
APACHE2_MPMS="worker -prefork"
in /etc/make.conf, 'emerge -uvDN world' fails with:

root@lynx:/usr/src/smartie-utils-1.1.0(101)# grep APACHE2_MPMS /etc/make.conf
APACHE2_MPMS="worker -prefork"
root@lynx:/usr/src/smartie-utils-1.1.0(102)# emerge -uvDN world
Invalid '-' operator in non-incremental variable 'APACHE2_MPMS': '-prefork'

These are the packages that would be merged, in order:

Calculating dependencies -Invalid '-' operator in non-incremental variable 'APACHE2_MPMS': '-prefork'
Invalid '-' operator in non-incremental variable 'APACHE2_MPMS': '-prefork'
Invalid '-' operator in non-incremental variable 'APACHE2_MPMS': '-prefork'
Invalid '-' operator in non-incremental variable 'APACHE2_MPMS': '-prefork'
 \Invalid '-' operator in non-incremental variable 'APACHE2_MPMS': '-prefork'
Invalid '-' operator in non-incremental variable 'APACHE2_MPMS': '-prefork'
Invalid '-' operator in non-incremental variable 'APACHE2_MPMS': '-prefork'
Invalid '-' operator in non-incremental variable 'APACHE2_MPMS': '-prefork'
...
Comment 5 PhobosK 2015-06-07 20:51:19 UTC
This bug depends on bug #551012

dev-lang/php[apache2] requires www-servers/apache[threads]
gnome-base/gnome-user-share requires www-servers/apache[apache2_mpms_prefork]

And www-servers/apache[threads,apache2_mpms_prefork] are mutually exclusive...

So will someone please remove that www-servers/apache[apache2_mpms_prefork] in gnome-base/gnome-user-share and apply the patch in bug  #551012 .....
Comment 6 Kobboi 2015-06-07 21:14:46 UTC
(In reply to Juergen Rose from comment #4)
> (In reply to Mike Gilbert from comment #2)
> > This should probably be covered by a REQUIRED_USE constraint instead of
> > bailing out in pkg_setup.
> 
> If I set
> APACHE2_MPMS="worker -prefork"
> in /etc/make.conf, 'emerge -uvDN world' fails with:

The messages are clear, no? APACHE2_MPMS is non-incremental, you set one of the options and the other ones are negated automatically. So remove your "-prefork"
Comment 7 Mike Gilbert gentoo-dev 2015-06-07 22:44:46 UTC
(In reply to PhobosK from comment #5)
> This bug depends on bug #551012

That bug is not directly related to this one.
Comment 8 Juergen Rose 2015-06-08 11:50:04 UTC
(In reply to Kobboi from comment #6)
> (In reply to Juergen Rose from comment #4)
> > (In reply to Mike Gilbert from comment #2)
> > > This should probably be covered by a REQUIRED_USE constraint instead of
> > > bailing out in pkg_setup.
> > 
> > If I set
> > APACHE2_MPMS="worker -prefork"
> > in /etc/make.conf, 'emerge -uvDN world' fails with:
> 
> The messages are clear, no? APACHE2_MPMS is non-incremental, you set one of
> the options and the other ones are negated automatically. So remove your
> "-prefork"

OK, I understand this now. But if I set only APACHE2_MPMS="worker" the prefork flag is anyhow generated, probably by the the apache2_mpms_prefork USE flag.  If I also remove the apache2_mpms_prefork USE 'emerge -uvDN world' complains again that gnome-user-share-3.14.2 needs this USE flag and then fails.
Comment 9 Mike Gilbert gentoo-dev 2015-06-08 14:30:33 UTC
If you want gnome-user-share installed, you currently need APACHE2_MPMS="prefork", which means you also need to *disable the threads USE flag* for www-servers/apache2.

gnome-user-share probably should NOT need APACHE2_MPMS="prefork", but that issue is covered in another (unrelated) bug report.
Comment 10 Juergen Rose 2015-06-08 17:33:07 UTC
(In reply to Mike Gilbert from comment #9)
> If you want gnome-user-share installed, you currently need
> APACHE2_MPMS="prefork", which means you also need to *disable the threads
> USE flag* for www-servers/apache2.
> 
> gnome-user-share probably should NOT need APACHE2_MPMS="prefork", but that
> issue is covered in another (unrelated) bug report.

gnome-user-share is installed as dependency of gnome-extra-apps, which again is installed if the extras USE flag is set. 
I add a line 
gnome-base/gnome -extras
to /etc/portage/packages.use .
Then I reemerged gnome. This seems to remove the issue.
Comment 11 PhobosK 2015-06-08 18:16:18 UTC
(In reply to Mike Gilbert from comment #7)
> (In reply to PhobosK from comment #5)
> > This bug depends on bug #551012
> 
> That bug is not directly related to this one.

Not exactly true...
This bug is caused by the fact that the OP has 'threads' flag enabled (probably globally in his make.conf - sadly no 'emerge --info' by the OP) and at the same time a day before this bug report @Pacho Ramos made the www-servers/apache[apache2_mpms_prefork] in gnome-base/gnome-user-share-3.14.2 a hard requirement.... And as stated in my first comment #5 here, you can have only one 'apache2_mpms_XXXX' and if 'threads' flag is enabled that cannot be the apache2_mpms_prefork.....

The same bug will happen with all people that have enabled 'apache2' flag in dev-lang/php (which requires www-servers/apache[threads]) and have/want gnome with 'extras' flag... a situation that is very common.....




(In reply to Mike Gilbert from comment #9)
> If you want gnome-user-share installed, you currently need
> APACHE2_MPMS="prefork", which means you also need to *disable the threads
> USE flag* for www-servers/apache2.
> 
> gnome-user-share probably should NOT need APACHE2_MPMS="prefork", but that
> issue is covered in another (unrelated) bug report.

Again... I do not agree that this is an unrelated bug report!.... The original bug here is caused of the introduction of a requirement for www-servers/apache[apache2_mpms_prefork] in gnome-base/gnome-user-share-3.14.2 


Anyway... apache's ebuilds are ok and quite self explanatory when a wrong config of flags is found.... What's wrong here IMHO, is the commitment to the portage tree of an ebuild that implies requirements that have not been tested.... Comment #10 of the OP proves it...
Comment 12 Mike Gilbert gentoo-dev 2015-06-08 19:02:09 UTC
(In reply to PhobosK from comment #11)
> dev-lang/php (which requires www-servers/apache[threads])

No, it doesn't. It requires this:

www-servers/apache[threads=]

Which is something entirely different from what you have stated.
Comment 13 PhobosK 2015-06-08 19:45:33 UTC
(In reply to Mike Gilbert from comment #12)
> (In reply to PhobosK from comment #11)
> > dev-lang/php (which requires www-servers/apache[threads])
> 
> No, it doesn't. It requires this:
> 
> www-servers/apache[threads=]
> 
> Which is something entirely different from what you have stated.

Right... it is www-servers/apache[threads=] in the ebuild...
Sorry for not being that exact, but what I was trying to explain above is the situation when 'threads' is globally enabled in make.conf and php is with 'apache2' enabled + gnome-base/gnome-user-share-3.14.2 (my exact case which lead me to this bug report).... Sorry if that was not quite clear.


@Juergen Rose,
I think it will help a lot for resolving this bug if you could post us your:
1. emerge --info
2. and your emerge php flags

Thanks
Comment 14 Mike Gilbert gentoo-dev 2015-06-08 20:19:15 UTC
(In reply to PhobosK from comment #13)

We really don't need any additional information in this bug report. It is quite clear the the reporter has conflicting USE=threads and APACHE2_MPMS settings.

Once again, the issue with gnome-user-share is being addressed in a separate bug. It is not going to be resolved here.
Comment 15 Juergen Rose 2015-06-09 06:27:04 UTC
(In reply to PhobosK from comment #13)
.....
> @Juergen Rose,
> I think it will help a lot for resolving this bug if you could post us your:
> 1. emerge --info
> 2. and your emerge php flags
> 
> Thanks

root@impala:/root(7)# emerge --info
Portage 2.2.18 (python 2.7.10-final-0, default/linux/amd64/13.0, gcc-4.9.2, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem:     8163596 total,   2821064 free
KiB Swap:   50331640 total,  50327860 free
Timestamp of repository gentoo: Tue, 09 Jun 2015 05:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.3::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.16.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage_impala
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

g-cpan
    location: /var/lib/cpan
    masters: gentoo
    priority: 1

g-octave
    location: /var/lib/g-octave
    masters: gentoo
    priority: 2

sage-on-gentoo
    location: /var/lib/layman/sage-on-gentoo
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA GIMPS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync 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="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext 64bit R X Xaw3d a52 aac accessibility acl acpi admin afs alsa amd64 ao apache2 apng applet archive armadillo arpack asf aspell assistant atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boost bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli cmake cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples excel exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fuse g3dvl gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3tag ide imagemagick imap inotify introspection ipod ipv6 ithreads jabber jadetex java java6 jbig jit john jpeg jpeg2k kate kde kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack latex lcms ldap lensfun libffi libgda libkms libnotify libsamplerate live lm_sensors lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mpi-threads mplayer mtp multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp openvg pam pango pcre pda pdf pdl2 perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 qt5 quicktime raw readline reiserfs reports rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite sse sse2 sse3 sse4 sse4a ssl stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tcl tcpd tex tex4ht texmacs theora thesaurus threads thunderbird tidy tiff tk tools truetype udev udisks unicode usb utempter v4l v4l2 vaapi vala valgrind vdpau video virt-network virtualbox visio vorbis vpx vtk wav webdav webdav-serf webkit wmf wxwidgets x264 xa xattr xcb xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zvbi" 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev void" KERNEL="linux" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fr ru" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau displaylink" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



root@impala:/root(10)# emerge -pv php

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-lang/php-5.6.9:5.6::gentoo  USE="apache2 berkdb bzip2 calendar cgi cli crypt ctype curl exif fileinfo filter fpm gd gdbm gmp hash iconv imap ipv6 json kerberos ldap mysql mysqli nls odbc opcache pcntl pdo phar posix postgres readline session simplexml snmp soap sockets spell sqlite ssl systemd threads tidy tokenizer truetype unicode vpx xml xmlreader xmlrpc xmlwriter xpm zip zlib -bcmath -cdb -cjk -debug -embed -enchant (-firebird) -flatfile (-frontbase) -ftp -inifile -intl -iodbc -ldap-sasl -libedit -libmysqlclient -mhash -mssql -oci8-instant-client -qdbm -recode (-selinux) -sharedmem (-sybase-ct) -sysvipc -wddx -xslt" 0 KiB
...
Comment 16 John Bowler 2015-06-09 21:09:24 UTC
I've been seeing this problem since www-servers/apache-2.4.12-r1 appeared and I can confirm that changing package.use to include:

>=www-servers/apache-2.4.12-r1 apache2_mpms_prefork -threads

Does allow the build to complete on a system with a global "USE=threads" in make.conf.  I don't believe I actually use apache anywhere, so I haven't tested the result.

I don't have php installed (it I emerge --pretend it suggests it would be installed "-apache" anyway).  My emerge --info follows (there's nothing else following this output!)

pelicone portage # emerge --info
Portage 2.2.20 (python 3.3.5-final-0, default/linux/arm/13.0/desktop/gnome/systemd, gcc-4.9.2, glibc-2.20-r2, 3.18.14-v7+ armv7l)
=================================================================
System uname: Linux-3.18.14-v7+-armv7l-with-gentoo-2.2
KiB Mem:      949304 total,    406472 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Mon, 08 Jun 2015 10:00:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
distcc 3.2rc1 armv7a-hardfloat-linux-gnueabi [enabled]
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.3::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.16.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /home/portage
    sync-type: rsync
    sync-uri: rsync://hippopopus.jbowler.com/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-march=armv7-a -mfpu=vfpv4 -mfloat-abi=hard -Os -g -fexceptions"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=armv7-a -mfpu=vfpv4 -mfloat-abi=hard -Os -g"
DISTDIR="/home/portage/distfiles"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-logs buildpkg compressdebug config-protect-if-modified distcc distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2"
GENTOO_MIRRORS="ftp://hippopopus.jbowler.com/ http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.llarian.net/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="--jobs=8 --load-average=5.5"
PKGDIR="/home/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"
PORTAGE_TMPDIR="/home/tmp"
USE="X a52 aac acl acpi alsa arm berkdb bluetooth branding bzip2 cairo caps cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jack jpeg jpeg2k lcms ldap libnotify libsecret mad mng modules mp3 mp4 mpeg nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session spell ssl startup-notification svg systemd tcpd threads tiff truetype udev udisks unicode upower usb vorbis wxwidgets xcb xml xv xvid zlib" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 17 Juergen Rose 2015-09-11 06:47:51 UTC
I hit the issue again trying to update a system after a long period of inactivity.

I have threads enabled in /etc/make.conf. And I do not want disable threads. I have set APACHE2_MPMS="worker" in /etc/portage/packages.use:

rose@wildcat:/home/rose(4)$ grep APACHE /etc/portage/package.use
www-servers/apache mpm-worker suexec APACHE2_MPMS="worker"

'emerge world' complains:


The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by gnome-extra/gnome-user-share-3.14.2
# required by gnome-base/gnome-extra-apps-3.16.0[share]
# required by gnome-base/gnome-3.16.0[extras]
# required by @selected
# required by @world (argument)
>=www-servers/apache-2.4.16 apache2_mpms_prefork


I want to have APACHE2_MPMS="worker" and not apache2_mpms_prefork.

On my other systems APACHE2_MPMS="worker" , USE=threads and gnome-user-share-3.14.2 seems to coexist now.
Comment 18 Juergen Rose 2015-11-20 06:49:37 UTC
Now I have the same issue upgrading to gnome-3.18. 'emerge -uvDN world' fails with:

root@caiman:/root(14)# emerge -v --update --newuse --deep --with-bdeps=y --backtrack=30  @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] dev-libs/vala-common-0.30.0::gentoo [0.28.1::gentoo] 2,662 KiB
[ebuild     U  ] gnome-base/gnome-common-3.18.0:3::gentoo [3.14.0-r1:3::gentoo] USE="autoconf-archive" 153 KiB
...
[ebuild     U  ] media-video/totem-3.18.1::gentoo [3.16.4::gentoo] USE="introspection nautilus python -debug -lirc {-test} -zeitgeist" PYTHON_TARGETS="python2_7" 3,099 KiB

Total: 143 packages (128 upgrades, 15 reinstalls), Size of downloads: 421,319 KiB
Conflict: 1 block
...
The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by gnome-extra/gnome-user-share-3.18.0::gentoo
# required by gnome-base/gnome-extra-apps-3.16.0::gentoo[share]
# required by gnome-base/gnome-3.16.0::gentoo[extras]
# required by @selected
# required by @world (argument)
>=www-servers/apache-2.4.16 apache2_mpms_prefork
Comment 19 Andrea (Ben) Benini 2015-11-20 08:49:09 UTC
Same problem here. I'm trying to upgrade right now and I'm gettin the same problem, any hints ?