Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63928 - php ignores package.use file when using binaries
Summary: php ignores package.use file when using binaries
Status: VERIFIED NEEDINFO
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-13 13:23 UTC by meyerm
Modified: 2007-01-11 11:01 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 meyerm 2004-09-13 13:23:25 UTC
Whenever I try to emerge php the script complains about missing or "too much" use-flags. So I added / removed them in my package.use file. The initial compiling works, but the second run (I let portage build binary packages) fails always when the USE flags are not correctly set in make.conf.

Reproducible: Always
Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2004-09-13 15:42:33 UTC
you neglected to provide `emerge info`

also please attach your package.use
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-13 15:51:44 UTC
also attach this error output that you see.
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2004-09-13 16:24:12 UTC
also attach the steps that involve the second run that creates binary packages.
Comment 4 Norberto Bensa 2004-09-13 17:34:02 UTC
I'm not the OP but here is the info I have. 

I want to emerge php/mod_php. It tells me USE:berkdb need USE:dba. No problem, I add dba to /etc/portage/package.use:dev-php/php. Now I can emerge php BUT, since I also have "buildpkg" in FEATURES, when portage wants to merge the binary it says: 

$ sudo emerge -kv {mod_php,php}
Calculating dependencies ...done!
>>> emerge (1 of 2) dev-php/php-5.0.1 to /
>>> extracting info

 * USE flag 'berkdb' needs these additional flag(s) set:
 *    dba
 *
 * You can do this by enabling these flags in /etc/portage/package.use:
 *     =php-5.0.1/php-5.0.1  dba
 *
 * You could disable this flag instead in /etc/portage/package.use:
 *      =php-5.0.1/php-5.0.1 -berkdb


!!! ERROR: php-5.0.1/php-5.0.1 failed.
!!! Function confutils_use_depend_all, Line 117, Exitcode 0
!!! Need missing USE flags

!!! Error running pkg_setup


$ grep php /etc/portage/package.use
dev-php/php             berkdb crypt curl dba gdbm gmp imap kerberos ldap mcal mysql ncurses nls pam pdflib readline spell ssl xml2
dev-php/mod_php         apache2 berkdb crypt curl dba gdbm gmp imap kerberos ldap mcal mysql nls pam pdflib spell ssl xml2


$ emerge --info
Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.6-mm1)
=================================================================
System uname: 2.6.6-mm1 i586 AMD-K6(tm) 3D processor
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium -Os -ffast-math -fomit-frame-pointer -pipe"
CHOST="i586-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb cups nls pam pic readline ssl tcpd unicode x86"

portage (or then php ebuild) ignores /etc/portage/package.use

Thanks,
Norberto
Comment 5 Norberto Bensa 2004-09-13 17:35:05 UTC
BTW, a workaround is:

USE=dba sudo emerge -kv php mod_php

Comment 6 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 11:01:08 UTC
Closing due to old age