Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24671 - unmerging mod_php4 removes files shared with php (cli)
Summary: unmerging mod_php4 removes files shared with php (cli)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-17 07:45 UTC by Mitchel Sahertian
Modified: 2003-11-16 04:27 UTC (History)
0 users

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 Mitchel Sahertian 2003-07-17 07:45:52 UTC
When php (cli) and mod_php4 are both emerged (because the ebuild said php (cli)
could not be used with a webserver), unmerging mod_php4 (and probably vice
versa) leads to removal of the files shared between both (Them sharing the same
files could be an actualy problem maybe? As you could have different versions of
the 2 types of php).
/usr/include/php and things like that were fully removed.

Reproducible: Always
Steps to Reproduce:
1. Emerge php and mod_php
2. Unemerge mod_php (or probably php)
Actual Results:  
After 1. php and mod_php shared files that could be different
After 2. shared files got deleted (ie. /usr/include/php/*)

Expected Results:  
Fix for 1 and 2. Different locations for the include files and other of mod_php
and php.
Fix for 2. Leave the shared files there if one is still "merged".

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.21-rc3 i586 Pentium 75 - 200
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/
http://ftp.easynet.nl/mirror/gentoo/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo/  http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm arts avi encode gpm gtk libg++ mad mikmod motif mpeg nls
oggvorbis opengl quicktime sdl spell svga xmms xv gdbm berkdb slang readline pam
python -X -gnome -kde -java -mmx -3dnow -qt -apache2 crypt cups gif innodb imlib
jpeg libwww maildir memlimit mysql ncurses oav pdflib portage php png plotutils
perl samba ssl tcpd tiff truetype xml xml2 zlib gd"
COMPILER="gcc3"
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=pentium -O3 -pipe  -fomit-frame-pointer"
CXXFLAGS="-march=pentium -O3 -pipe  -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-17 11:32:44 UTC
We need a php-common ebuild, that provides this stuff.
Comment 2 SpanKY gentoo-dev 2003-07-17 15:05:44 UTC
actually i'd mark this as a duplicate of a portage bug ... 
 
portage doesnt properly detect when you emerge something new and then 
emerge the older version ... 
 
happens with CD installs and with empty directories ... 
 
for now i'd suggest kludging it with a `touch <files>` in pkg_postinst and mark 
this as a dup of portage 
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-11-16 04:27:09 UTC
fixed as of the 4.3.4-r1 series.