Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178203 - depend.php.eclass - require_php_sapi_from has issues w/ missing USE=apache
Summary: depend.php.eclass - require_php_sapi_from has issues w/ missing USE=apache
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 178215 (view as bug list)
Depends on:
Blocks: apache1-is-dead
  Show dependency tree
 
Reported: 2007-05-12 14:15 UTC by Thomas Beutin
Modified: 2007-05-12 15:16 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 Thomas Beutin 2007-05-12 14:15:42 UTC
When i try to (re)emerge dev-php5/pecl-apc-3.0.13 or dev-php4/pecl-apc-3.0.13 these packages are complaining the missing apache USE flag of dev-lang/php-5.2.2-r1 resp. dev-lang/php-4.4.7

Reproducible: Always

Actual Results:  
!!! ERROR: dev-php5/pecl-apc-3.0.13 failed.
Call stack:
  ebuild.sh, line 1630:   Called dyn_setup
  ebuild.sh, line 702:   Called qa_call 'pkg_setup'
  ebuild.sh, line 38:   Called pkg_setup
  pecl-apc-3.0.13.ebuild, line 26:   Called require_php_sapi_from 'cgi' 'apache' 'apache2'
  depend.php.eclass, line 167:   Called built_with_use '=dev-lang/php-5.2.2-r1' 'apache'
  eutils.eclass, line 1713:   Called die

!!! dev-lang/php-5.2.2-r1 does not actually support the apache USE flag!
 * 
 * Using dev-lang/php-4.4.7
 * 
 * Checking for compatible SAPI(s)
 *   Discovered compatible SAPI cgi

!!! ERROR: dev-php4/pecl-apc-3.0.13 failed.
Call stack:
  ebuild.sh, line 1630:   Called dyn_setup
  ebuild.sh, line 702:   Called qa_call 'pkg_setup'
  ebuild.sh, line 38:   Called pkg_setup
  pecl-apc-3.0.13.ebuild, line 26:   Called require_php_sapi_from 'cgi' 'apache' 'apache2'
  depend.php.eclass, line 167:   Called built_with_use '=dev-lang/php-4.4.7' 'apache'
  eutils.eclass, line 1713:   Called die

!!! dev-lang/php-4.4.7 does not actually support the apache USE flag!
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/dev-php4:pecl-apc-3.0.13:20070512-141303.log'.

 * 
 * Using dev-lang/php-5.2.2-r1
 * 
 * Checking for compatible SAPI(s)
 *   Discovered compatible SAPI cgi

!!! ERROR: dev-php5/pecl-apc-3.0.13 failed.
Call stack:
  ebuild.sh, line 1630:   Called dyn_setup
  ebuild.sh, line 702:   Called qa_call 'pkg_setup'
  ebuild.sh, line 38:   Called pkg_setup
  pecl-apc-3.0.13.ebuild, line 26:   Called require_php_sapi_from 'cgi' 'apache' 'apache2'
  depend.php.eclass, line 167:   Called built_with_use '=dev-lang/php-5.2.2-r1' 'apache'
  eutils.eclass, line 1713:   Called die

!!! dev-lang/php-5.2.2-r1 does not actually support the apache USE flag!
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/dev-php5:pecl-apc-3.0.13:20070512-141048.log'.


# emerge --info
Portage 2.1.2.2 (default-linux/amd64/2006.1/server, gcc-4.1.1, glibc-2.5-r2, 2.6.15-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 12 May 2007 10:20:01 +0000
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php4/ext-active/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg candy digest distlocks metadata-transfer notitles sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.manitu.net/gentoo"
LINGUAS="en de fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=180"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirror.manitu.net/gentoo-portage"
USE="X509 aalib accounting acl adns aim amd64 ansi apache2 authdaemond authfile automount bacula-console bash-completion bcmath berkdb bidi bind-mysql bzip2 calendar caps ccache cdb cgi chipcard chroot command-args courier cpudetection cpulimit cracklib crypt cscope css csv ctype cups curl curlwrappers customlog cvsgraph cyrus dba dbi dbm dbx devmap dhcp dlopen dnsdb ecc exif expat fam fastcgi ffmpeg flac flash flatfile fpx ftp gd gdbm gif gmp graphviz gs gssapi gzip hardened hardenedphp hpn http iconv icq idea idled idn imagemagick imap imlib imlib2 inifile innodb ipalias ipv6 jabber jbig jpeg jpeg2k lcms ldap libwww lm_sensors lmtp logrotate logwatch mailbox maildir maildrop mailwrapper mbox mcal memlimit mgetty mhash milter mime mimencode ming mmap mpeg mpi mpm-prefork mppe-mppc mysql mysqli nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh ncurses netboot network nfs nis nls nntp nptl nptlonly oav odbc ogg oggvorbis openssh openssl pam pam_chroot pam_console pam_timestamp parse-clocks pcntl pcre pdf pdfkit pdflib perl php pic png posix postfix postgres procmail pwdb python qdbm quotas radius readline recode reiserfs rrdtool rss samba sample sasl screen sendfile sensord session sftp sftplogging shaper shared sharedext sharedmem simplexml skey slang slp smartcard smime smp sms smtp snmp snortsam soap sockets socks5 spamassassin spell sql sqlite sqlite3 ssl stream subversion svg sysfs syslog sysvipc tcpd theora tidy tiff tokenizer transparent-proxy truetype truetype-fonts type1-fonts unicode userlocales utf8 vhosts vim vim-pager virtual-users virus-scan wddx withsamplescripts wmf xattr xfs xinetd xml xml2 xmlrpc xpm xsl xslt xvid yahoo yaz zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de fr" USERLAND="GNU" VIDEO_CARDS="vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Thomas Beutin 2007-05-12 14:28:59 UTC
Removing 'apache ' on line 26 of
/usr/portage/dev-php4/pecl-apc/pecl-apc-3.0.13.ebuild and /usr/portage/dev-php5/pecl-apc/pecl-apc-3.0.13.ebuild fixes the problem for me (after regeneration of the digests of course).

Sorry, but i don't know how to create a patch to fix this.
Comment 2 Luca Longinotti (RETIRED) gentoo-dev 2007-05-12 14:39:00 UTC
Apache 1.X support was removed from dev-lang/php and Gentoo, and I forgot to update those lines in the PHP extension ebuilds, sorry.
This was fixed in all affected ebuilds now, thanks for reporting!
Best regards, CHTEKK.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-05-12 15:16:27 UTC
*** Bug 178215 has been marked as a duplicate of this bug. ***