Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37721 - Request for dynamic SLOT support
Summary: Request for dynamic SLOT support
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 52416 (view as bug list)
Depends on: 32367 51411
Blocks:
  Show dependency tree
 
Reported: 2004-01-09 11:11 UTC by Joshua Moore-Oliva
Modified: 2006-01-30 04:38 UTC (History)
11 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 Joshua Moore-Oliva 2004-01-09 11:11:42 UTC
It appears that mod_php has forgotten that it is previously installed during an emerge -up world.

In the below example, note that portage is going to install mod_php as if it were new, however mod_php is already installed.

Example

inane root # emerge -up world 
 
 These are the packages that I would merge, in order: 
 
 Calculating world dependencies ...done! 
 [ebuild     U ] dev-php/php-4.3.4-r2 [4.3.3-r2] 
 [ebuild  N    ] dev-php/mod_php-4.3.4-r2 
 
 inane root # emerge -p unmerge mod_php 
 
 >>> These are the packages that I would unmerge: 
 
  dev-php/mod_php 
     selected: 4.3.3-r3 
    protected: none 
      omitted: none 
 
 >>> 'Selected' packages are slated for removal. 
 >>> 'Protected' and 'omitted' packages will not be removed.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-09 16:49:01 UTC
do you have apache 1 or 2 or both installed?
'emerge info' output?
'emerge -upv mod_php' output?
Comment 2 Jason Calabrese 2004-01-09 17:39:18 UTC
I'm having the same issue.  I only have apache2 emerged.

Here's the results the 2 emerge commands:

root@newcastle:0-> emerge info
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-gentoo-r8)
=================================================================
System uname: 2.4.20-gentoo-r8 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
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/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apm arts avi berkdb crypt encode foomaticdb gdbm gif gpm imap imlib java jpeg ldap libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sasl sdl slang spell ssl svga tcpd truetype x86 xml xml2 xmms xv zlib"

root@newcastle:0-> emerge -upv mod_php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] net-libs/c-client-2002e-r1 [2002d-r1] +ssl -pic
[ebuild     U ] dev-java/java-config-1.1.8-r1 [0.2.8-r2]
[ebuild     U ] dev-db/mysql-4.0.16 [4.0.14-r2] -static +readline -innodb +berkdb +tcpd +ssl +perl -debug
[ebuild  N    ] dev-php/mod_php-4.3.4-r2  -apache2 -X +crypt -curl -firebird -flash -freetds -gd -gd-external +gdbm +imap -informix -ipv6 +java +jpeg +ldap -mcal -memlimit +mysql +nls -oci8 -odbc +pam +pdflib +png -postgres -qt -snmp +spell +ssl -tiff +truetype +xml2 -yaz +berkdb
[ebuild  N    ] dev-php/php-4.3.4-r2  -X +crypt -curl -firebird -flash -freetds -gd -gd-external +gdbm +imap -informix -ipv6 +java +jpeg +ldap -mcal -memlimit +mysql +nls -oci8 -odbc +pam +pdflib +png -postgres -qt -snmp +spell +ssl -tiff +truetype +xml2 -yaz +berkdb +ncurses +readline
Comment 3 Joshua Moore-Oliva 2004-01-09 17:39:49 UTC
Just to add, there are a number of other people on the forums who are having the same problem.

In response to your questions..

1) I only have apache2 installed

2) emerge info output

inane root # emerge info
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0)
=================================================================
System uname: 2.6.0 i686 Intel(R) Xeon(TM) CPU 2.40GHz
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
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/env.d"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.noved.org/ ftp://gentoo.noved.org/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo http://adelie.polymtl.ca/ http://mirrors.tds.net/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="apm arts avi berkdb crypt cups curl encode foomaticdb gdbm gif gpm gtk2 imap imlib jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"


3) emerge -upv mod_php output

inane root # emerge -upv mod_php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] dev-php/mod_php-4.3.4-r2  -apache2 -X +crypt +curl -firebird -flash -freetds -gd -gd-external +gdbm +imap -informix -ipv6 -java +jpeg -ldap -mcal -memlimit -mysql +nls -oci8 -odbc +pam +pdflib +png +postgres -qt -snmp +spell +ssl -tiff +truetype +xml2 -yaz +berkdb
[ebuild     U ] dev-php/php-4.3.4-r2 [4.3.3-r2] -X +crypt +curl -firebird -flash -freetds -gd -gd-external +gdbm +imap -informix -ipv6 -java +jpeg -ldap -mcal -memlimit -mysql +nls -oci8 -odbc +pam +pdflib +png +postgres -qt -snmp +spell +ssl -tiff +truetype +xml2 -yaz +berkdb +ncurses +readline
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-09 20:49:25 UTC
hmm, ok, now could I get the output of:
USE="apache2" emerge -upv mod_php
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-09 20:51:25 UTC
also, could you see if you have any of these files:
/var/db/pkg/dev-php/mod_php-*/SLOT

and tell me what their contents are?
Comment 6 Jason Calabrese 2004-01-09 21:26:11 UTC
root@newcastle:0-> USE="apache2" emerge -upv mod_php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] net-libs/c-client-2002e-r1 [2002d-r1] +ssl -pic
[ebuild     U ] dev-java/java-config-1.1.8-r1 [0.2.8-r2]
[ebuild     U ] dev-db/mysql-4.0.16 [4.0.14-r2] -static +readline -innodb +berkdb +tcpd +ssl +perl -debug
[ebuild  N    ] dev-php/mod_php-4.3.4-r2  +apache2 -X +crypt -curl -firebird -flash -freetds -gd -gd-external +gdbm +imap -informix -ipv6 +java +jpeg +ldap -mcal -memlimit +mysql +nls -oci8 -odbc +pam +pdflib +png -postgres -qt -snmp +spell +ssl -tiff +truetype +xml2 -yaz +berkdb
[ebuild  N    ] dev-php/php-4.3.4-r2  -X +crypt -curl -firebird -flash -freetds -gd -gd-external +gdbm +imap -informix -ipv6 +java +jpeg +ldap -mcal -memlimit +mysql +nls -oci8 -odbc +pam +pdflib +png -postgres -qt -snmp +spell +ssl -tiff +truetype +xml2 -yaz +berkdb +ncurses +readline

root@newcastle:0-> ls /var/db/pkg/dev-php/mod_php-*/SLOT
/var/db/pkg/dev-php/mod_php-4.3.3-r3/SLOT

root@newcastle:0-> cat /var/db/pkg/dev-php/mod_php-4.3.3-r3/SLOT
2
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-10 00:04:56 UTC
My comment is mainly directed at Joshua, as his output is subletly different from yours, and I'm trying to solve it on a single test case first.

I've added a little helper snippet into the mod_php ebuild so we can try and solve this. 

Wait a while, then update your tree.
Check this file: /usr/portage/dev-php/mod_php/mod_php-4.3.4-r2.ebuild 
for this header to see if it has made it out yet (probably will take about an hour from now)
$Header: /var/cvsroot/gentoo-x86/dev-php/mod_php/mod_php-4.3.4-r2.ebuild,v 1.3 2004/01/10 08:01:42 robbat2 Exp $

Once that is in place, do:
USE=debug ebuild  /usr/portage/dev-php/mod_php/mod_php-4.3.4-r2.ebuild clean setup

and post the output here.

you should see something similar to this:
root@curie-int mod_php # USE=debug ebuild /usr/portage/dev-php/mod_php/mod_php-4.3.4-r2.ebuild clean setup
eutils
flag-o-matic
php-sapi
eutils
debug
 * Installing in SLOT=2

but you might have to run the command twice before you see that output.
I'm interested in the SLOT=... output mainly.
Comment 8 Roy Marples (RETIRED) gentoo-dev 2004-01-10 04:54:38 UTC
I don't know what's changed, but I suspect the new ebuild is broken
I forgot to relink php against the new xml lib that came out today - so I recompiled it. Here's the error

!!! ERROR: dev-php/mod_php-4.3.4-r2 failed.
!!! Function dyn_setup, Line 466, Exitcode 1
!!! pkg_setup function failed; exiting.

Compiled fine yesterday though
Comment 9 Antonio 2004-01-10 06:04:02 UTC
This is my emerge info:

gentoonet root # emerge info
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-gentoo-r2)
=================================================================
System uname: 2.4.22-gentoo-r2 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.4.3.10
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/bind /var/lib/jboss /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi apache2 apm arts autofs avi berkdb bonobo cdr clamav crypt cups doc dv dvd dvdr encode esd faad fam ffmpeg flac foomaticdb gd gdbm ggi gif gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml guile imap imlib jabber java jpeg kde ldap libg++ libwww mad mikmod motif mozilla mpeg mpeg4 mysql nas ncurses nls odbc oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline ruby samba scanner sdl slang spell ssl svga tcltk tcpd tetex transcode truetype x86 xine xml2 xmms xv zlib"

This is my error:

gentoonet root # emerge mod_php
Calculating dependencies ...done!
>>> emerge (1 of 2) dev-php/mod_php-4.3.4-r2 to /
>>> md5 src_uri ;-) php-4.3.4.tar.bz2
>>> md5 src_uri ;-) php-4.3.2-fopen-url-secure.patch

!!! ERROR: dev-php/mod_php-4.3.4-r2 failed.
!!! Function dyn_setup, Line 466, Exitcode 1
!!! pkg_setup function failed; exiting.

Comment 10 Jason Calabrese 2004-01-10 08:19:03 UTC
root@newcastle:0-> cat /usr/portage/dev-php/mod_php/mod_php-4.3.4-r2.ebuild | grep Header
# $Header: /home/cvsroot/gentoo-x86/dev-php/mod_php/mod_php-4.3.4-r2.ebuild,v 1.3 2004/01/10 08:01:42 robbat2 Exp $

root@newcastle:0-> USE=debug ebuild  /usr/portage/dev-php/mod_php/mod_php-4.3.4-r2.ebuild clean setup
 * Installing in SLOT=2
Comment 11 Tom P. 2004-01-10 08:28:07 UTC
This may help with the mod_php error.  libphp4.so does exist...

# /etc/init.d/apache start
 * Starting apache...
Syntax error on line 59 of /etc/apache/conf/apache.conf:
Cannot load /etc/apache/extramodules/libphp4.so into server: libxsltbreakpoint.so.1: cannot open shared object file: No such file or directory                [ !! ]

Comment 12 Marius Mauch (RETIRED) gentoo-dev 2004-01-10 11:26:43 UTC
Robin, the N vs. U problem is caused by determining the SLOT at runtime which can collide with the value from the pregenerated metadata cache. Removing /var/cache/edb/dep/dev-php/mod_php* should "fix" this issue, please talk to Nick for a real solution. 
Note: Removing the cache entries will cause a significant delay for the next portage operation involving mod_php.
Comment 13 David Earp 2004-01-10 14:03:27 UTC
Was just going to submit an addition to this when I decided to sync my portage again and found that mod_php was updated about 5 minutes ago. I no longer recieve:

!!! ERROR: dev-php/mod_php-4.3.4-r2 failed.
!!! Function dyn_setup, Line 466, Exitcode 1
!!! pkg_setup function failed; exiting.

Everything is compiling just fine now. Here is the header from the ebuild:

# $Header: /home/cvsroot/gentoo-x86/dev-php/mod_php/mod_php-4.3.4-r2.ebuild,v 1.5 2004/01/10 20:58:12 brad_mssw Exp $
Comment 14 FieldySnuts 2004-01-10 14:59:24 UTC
I am also seeing the problem with portage telling me mod_php is not installed, and I am 100% certain that I do have it installed.

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1-mm2)
=================================================================
System uname: 2.6.1-mm2 i586 AMD-K6(tm) 3D processor
Gentoo Base System version 1.4.3.10
distcc 2.12.1 i486-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i586 -pipe -mmmx -m3dnow"
CHOST="i486-pc-linux-gnu"
COMPILER="gcc3"
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/env.d"
CXXFLAGS="-O3 -march=i586 -pipe -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc notitles sandbox"
GENTOO_MIRRORS="http://gentoo.noved.org/ http://mirrors.tds.net/gentoo http://cudlug.cudenver.edu/gentoo/ http://mirror.tucdemonic.org/gentoo/ http://www.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow apache2 apm arts avi berkdb crypt encode foomaticdb gdbm gpm libg++ libwww mad mikmod mmx motif mysql ncurses oggvorbis pam perl python quicktime readline sdl slang snmp spell ssl tcpd truetype x86 xml2 zlib"
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-10 16:43:33 UTC
Anybody effected by this problem, here is a temporary workaround:
# rm -rf /var/cache/edb/dep/dev-php/mod_php*
# regenworld
Comment 16 Jason Calabrese 2004-01-10 17:46:20 UTC
I excuted the rm and regenworld commands, but portage still wants to emerge php

root@newcastle:0-> emerge -up mod_php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] net-libs/c-client-2002e-r1 [2002d-r1]
[ebuild     U ] dev-libs/libxml2-2.6.3 [2.5.11]
[ebuild     U ] dev-libs/libxslt-1.1.1 [1.0.33]
[ebuild     U ] dev-java/java-config-1.2.1-r1 [0.2.8-r2]
[ebuild    FU ] dev-java/sun-jdk-1.4.2.03 [1.4.2.02]
[ebuild     U ] dev-db/mysql-4.0.16 [4.0.14-r2]
[ebuild     U ] dev-php/mod_php-4.3.4-r2 [4.3.3-r3]
[ebuild  N    ] dev-php/php-4.3.4-r2
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-10 18:33:48 UTC
jason: that isn't the problem, that part is CORRECT.
it's a change we have made so that it is possible to properly install PEAR packages.

the problem was that it was showing that it was going to re-install mod_php sometimes instead of upgrading it. based on your output there, that problem is fixed:
[ebuild     U ] dev-php/mod_php-4.3.4-r2 [4.3.3-r3]
Comment 18 Jay L 2004-01-11 14:16:31 UTC
I followed the instructions in comment 15 and am still seeing the same problem with mod_php not being recognized as already installed.  That is mod_php is installed per emerge -s mod_php and yet when I do an emerge -pv mod_php, I see the following:

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] dev-php/mod_php-4.3.4-r2  -apache2 -X +crypt -curl -firebird -flash -freetds -gd -gd-external +gdbm -imap -informix -ipv6 -java +jpeg -ldap -mcal -memlimit +mysql +nls -oci8 -odbc +pam +pdflib +png -postgres +qt -snmp +spell +ssl -tiff +truetype +xml2 -yaz +berkdb
[ebuild  N    ] dev-php/php-4.3.4-r2  -X +crypt -curl -firebird -flash -freetds -gd -gd-external +gdbm -imap -informix -ipv6 -java +jpeg -ldap -mcal -memlimit +mysql +nls -oci8 -odbc +pam +pdflib +png -postgres +qt -snmp +spell +ssl -tiff +truetype +xml2 -yaz +berkdb +ncurses +readline



Here is the output requested by comment 7:
-r2.ebuild clean setupE=debug ebuild  /usr/portage/dev-php/mod_php/mod_php-4.3.4
 * Installing in SLOT=1
localhost mod_php #

Here is the header of the mod_php file
# $Header: /home/cvsroot/gentoo-x86/dev-php/mod_php/mod_php-4.3.4-r2.ebuild,v 1.7 2004/01/11 04:04:15 mr_bones_ Exp $

Finally here is emerge -info:
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.23_pre8-gss-r2)
=================================================================
System uname: 2.4.23_pre8-gss-r2 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3 -pipe -funroll-loops"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://gentoo.noved.org/ http://gentoo.noved.org/ http://mirror.clarkson.edu/pub/distributions/gentoo/ ftp://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apm arts avi berkdb crypt encode foomaticdb gdbm gif gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"

Any additional thoughts would be appreciated.
Comment 19 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-11 14:21:05 UTC
jayl: you don't list your apache version.

also try to delete
/usr/portage/metadata/cache/dev-php/mod_php* 

and include the output of USE="apache2" emerge -pv mod_php

joshua: i'm still needed your response to comment #4 and comment #5
Comment 20 Nicholas Jones (RETIRED) gentoo-dev 2004-01-11 16:58:11 UTC
Dynamic slots are touchy.
CC/Assign it to dev-portage again if you need to.
Comment 21 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-11 17:05:06 UTC
carpaski: how about FEATURES="noslotcache" ... ?
Comment 22 Joshua Moore-Oliva 2004-01-12 11:01:59 UTC
Sorry for the delay, I was away for the weekend.


Comment #4
inane root # USE="apache2" emerge -upv mod_php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] dev-php/mod_php-4.3.4-r2  +apache2 -X +crypt +curl -firebird -flash -freetds -gd -gd-external +gdbm +imap -informix -ipv6 -java +jpeg -ldap -mcal -memlimit -mysql +nls -oci8 -odbc +pam +pdflib +png +postgres -qt -snmp +spell +ssl -tiff +truetype +xml2 -yaz +berkdb
[ebuild     U ] dev-php/php-4.3.4-r2 [4.3.3-r2] -X +crypt +curl -firebird -flash -freetds -gd -gd-external +gdbm +imap -informix -ipv6 -java +jpeg -ldap -mcal -memlimit -mysql +nls -oci8 -odbc +pam +pdflib +png +postgres -qt -snmp +spell +ssl -tiff +truetype +xml2 -yaz +berkdb +ncurses +readline

Comment #5

inane root # cat /var/db/pkg/dev-php/mod_php-*/SLOT
2
inane root # ls /var/db/pkg/dev-php/mod_php-*/SLOT
/var/db/pkg/dev-php/mod_php-4.3.3-r3/SLOT

Comment 23 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-12 15:12:46 UTC
yeah, it's dynamic slots and the pregenerated metadata not being the same as what it should be for you...

This is how to fix it:
# rm -rf /var/cache/edb/dep/dev-php/mod_php* /usr/portage/metadata/cache/dev-php/mod_php* 
# regenworld

just running the emerge directly should have the correct behavior anyway, despite the output on pretend.

try it after emerge sync, with USE="debug" and it should display what slot it is actually installing into.
Comment 24 Joshua Moore-Oliva 2004-01-12 15:36:45 UTC
I ran the regenworld and it fixed the problem.

However, after an emerge sync the problem came right back exactly the same.

However, running regenworld again fixes it, so I guess I'll stick with that and hope it fixes itself down the line unless there are any other fixes you can think of.

Thanks for your help, Josh.
Comment 25 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-12 15:57:35 UTC
josh: can you please confirm that it is just the emerge -p output that is wrong, and it does actually install in the correct slot as I noted in my previous comment?
Comment 26 Joshua Moore-Oliva 2004-01-12 16:12:27 UTC
USE=debug ebuild  /usr/portage/dev-php/mod_php/mod_php-4.3.4-r2.ebuild clean setup
 * Installing in SLOT=2
Comment 27 Jay L 2004-01-14 16:42:17 UTC
Okay,

I just had a chance to follow up on your suggestions.  Here is additional output:

localhost mod_php-4.3.3-r3 # rm -rf /var/cache/edb/dep/dev-php/mod_php*
localhost mod_php-4.3.3-r3 # rm -rf /usr/portage/metadata/cache/dev-php/mod_php*
localhost mod_php-4.3.3-r3 # USE="apache2" emerge -pv mod_php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] dev-php/mod_php-4.3.4-r2  +apache2 -X +crypt -curl -firebird -fl
ash -freetds -gd -gd-external +gdbm -imap -informix -ipv6 -java +jpeg -ldap -mca
l -memlimit +mysql +nls -oci8 -odbc +pam +pdflib +png -postgres +qt -snmp +spell
 +ssl -tiff +truetype +xml2 -yaz +berkdb
[ebuild  N    ] dev-php/php-4.3.4-r2  -X +crypt -curl -firebird -flash -freetds
-gd -gd-external +gdbm -imap -informix -ipv6 -java +jpeg -ldap -mcal -memlimit +
mysql +nls -oci8 -odbc +pam +pdflib +png -postgres +qt -snmp +spell +ssl -tiff +
truetype +xml2 -yaz +berkdb +ncurses +readline

localhost mod_php-4.3.3-r3 #

Also my apache version is 2.0.48-r1

Any additional thoughts?
Comment 28 Jay L 2004-01-14 16:51:08 UTC
Good news!  It seems to be working now.  Sorry to be a bother.

JL
Comment 29 m4chine 2004-01-16 14:56:05 UTC
i resolved this by running #revdep-rebuild
simple.
Comment 30 FieldySnuts 2004-01-25 17:08:42 UTC
I tried revdep-rebuild and it did not solve my problem.

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1-mm5)
=================================================================
System uname: 2.6.1-mm5 i586 AMD-K6(tm) 3D processor
Gentoo Base System version 1.4.3.10
distcc 2.12.1 i486-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-fstack-protector -O3 -march=i586 -pipe -mmmx -m3dnow"
CHOST="i486-pc-linux-gnu"
COMPILER="gcc3"
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/env.d"
CXXFLAGS="-fstack-protector -O3 -march=i586 -pipe -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc notitles sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.noved.org/ http://mirror.tucdemonic.org/gentoo/ http://mirror.clarkson.edu/pub/distributions/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow apache2 apm arts avi berkdb crypt encode foomaticdb gdbm gpm libg++ libwww mad mikmod mmx motif mysql ncurses oggvorbis pam perl python quicktime readline sdl slang snmp spell ssl tcpd truetype x86 xml2 zlib"
Comment 31 Stuart Herbert (RETIRED) gentoo-dev 2004-03-28 14:38:36 UTC
Just cleaning up the old bugs.  If you're still having problems with mod_php-4.3.4-r4, please reply to this bug.  Otherwise I'll close this shortly.

Best regards,
Stu
Comment 32 Marius Mauch (RETIRED) gentoo-dev 2004-03-28 14:50:37 UTC
The SLOT problem still remains.
Comment 33 Stuart Herbert (RETIRED) gentoo-dev 2004-03-28 16:21:18 UTC
Explain to me the SLOT problem again.  Trying to untangle the different problems in this bug is making my brain hurt.

Best regards,
Stu
Comment 34 MrSpock 2004-03-30 07:52:28 UTC
> This is how to fix it:
> # rm -rf /var/cache/edb/dep/dev-php/mod_php* /usr/portage/metadata/cache/dev-php/mod_php* 
> # regenworld

That works for me until the next 'emerge sync'. After that it shows mod_php again as new. I'm trying to upgrade from 4.3.4-r4 to 4.3.5.
Comment 35 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-03-30 10:30:46 UTC
I've changed the summary, to better explain it for everybody.
'emerge -p mod_php' shows one thing that will happen, but what it shows is NOT correct due to the use of dynamic slots in the mod_php ebuilds to support parallel installs for apache1+ apache2.

however the main emerge mod_php DOES behave correctly and upgrade.
Comment 36 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2004-05-14 10:38:42 UTC
I just ran into this as well when playing with adding my own functionality to portage. Dynamic SLOTs do not work when calculating dependencies and which version to install, however when the ebuild is ran to install it they work fine. The issue is because of the metadata and dependency cache. I tried to hack the ebuild to see if there was a way to get it working for both apache 1 and apache 2 without using the SLOT and I don't see any way that it can.

To me it seems the only possible solution to get this to just work without having users have to delete the cache and then regenerate the cache every time is to change portage: Add a new ebuild flag that when set would disable the metadata cache being created for that ebuild. Then the SLOT information should be correct as it would be calculated every time dependencies are calculated.

I believe I am familiar enough with portage that I can work on a patch that would implement this.
Comment 37 FieldySnuts 2004-05-14 10:42:28 UTC
Is this bug being worked on? I still have this problem myself and it's been quite a while, and seems to have caught a lot of people.
Comment 38 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-04 15:24:22 UTC
*** Bug 52416 has been marked as a duplicate of this bug. ***
Comment 39 FieldySnuts 2004-06-14 04:54:21 UTC
Any answer to comment #37? I still see this issue today.
Comment 40 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-14 09:50:38 UTC
it's mainly a cosmetic portage bug that won't be fixed very soon i think.
Comment 41 Lance Albertson (RETIRED) gentoo-dev 2004-10-11 11:02:21 UTC
Any progress on this, or whats the status? If its not going to be updated soon, I'd suggest adding some einfo in the mod_php ebuild stating this issue is known or something.

Just curious!
Comment 42 Sebastian Bergmann (RETIRED) gentoo-dev 2006-01-30 04:37:56 UTC
Closing, dev-php/php and dev-php/mod_php have been superseded by dev-lang/php.