FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 11-17-2008, 03:55 PM
"Carl Fürstenberg"
 
Default regarding poilicy section 6.6 point 4

In the php5 package, the current situation is that /etc/php5/cgi/conf.d
is a symlink to /etc/php5/conf.d; By failing to know that, we in a local
package installed a file under /etc/php5/cgi/conf.d/admin.ini, which
went on without any problem. But due that the php5 package had been
updated, a problem arised, which resulted in following error:

(Reading database ... 28064 files and directories currently installed.)
Preparing to replace php5-cgi 5.2.0-8+etch11 (using
.../php5-cgi_5.2.0-8+etch13_powerpc.deb) ...
Unpacking replacement php5-cgi ...
dpkg: error processing
/var/cache/apt/archives/php5-cgi_5.2.0-8+etch13_powerpc.deb
(--unpack):
trying to overwrite `/etc/php5/cgi/conf.d', which is also in
package bubba-frontend
Errors were encountered while processing:
/var/cache/apt/archives/php5-cgi_5.2.0-8+etch13_powerpc.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

After some discussion at #debian-devel, a pinter to section 6.6 point 4
in the policy where given, and that the point in particular was in
effect for etch as well, which states:

A directory will never be replaced by a symbolic link to a directory
or vice versa;
instead, the existing state (symlink or not) will be left alone and
dpkg will follow
the symlink if there is one.

My interpreation of the policy is that the above error shouln't arise,
even though we should have installed the config file under
/etc/php5/conf.d anyway, as it wouldn't make any runtime difference
(somewhat a bug in the php5 packages). So I ask you if this is an bug,
or that out interpreation of the poliy is lousy at best.

/Carl

--
/Carl Fürstenberg <azatoth@gmail.com>
 
Old 11-20-2008, 01:02 AM
Guillem Jover
 
Default regarding poilicy section 6.6 point 4

Hi,

On Mon, 2008-11-17 at 17:55:12 +0100, Carl Fürstenberg wrote:
> In the php5 package, the current situation is that /etc/php5/cgi/conf.d
> is a symlink to /etc/php5/conf.d; By failing to know that, we in a local
> package installed a file under /etc/php5/cgi/conf.d/admin.ini, which
> went on without any problem. But due that the php5 package had been
> updated, a problem arised, which resulted in following error:

Just as a note for other people that might not be following dpkg bugs,
I've already replied (and closed) to Carl's bug report (#506258) as
valid but already fixed.

thanks,
guillem


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 07:46 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org