Bug#445095: Processed: Re: [Pkg-openssl-devel] Bug#445095: openssl: Package upgrade removes /etc/ssl if it is a symbolic link

2007-10-04 Thread Kurt Roeckx
On Thu, Oct 04, 2007 at 02:14:58AM +0200, Frank Lichtenheld wrote:
 reassign 445095 openssl
 thanks
 
 On Wed, Oct 03, 2007 at 05:36:04PM +, Debian Bug Tracking System wrote:
   reassign 445095 dpkg
  Bug#445095: openssl: Package upgrade removes /etc/ssl if it is a symbolic 
  link
  Bug reassigned from package `openssl' to `dpkg'.
 
 Just a wild guess, but the following code in openssl.preinst
 
 if [ -L /etc/ssl ]
 then
   echo Removing obsolete link /etc/ssl
   rm /etc/ssl
 fi
 
 _might_ have something to do with that behaviour...

I didn't know that the preinst script did something like this.  This is
probably about upgrades from very old versions.  At first look this
seems to be the fix for from version 0.9.2b-3 for a bug that doesn't
exist anymore.  I think it should be safe to just remove the preinst
script.


Kurt




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#445095: openssl: Package upgrade removes /etc/ssl if it is a symbolic link

2007-10-03 Thread Antonios Christofides
Package: openssl
Version: 0.9.8c-4etch1
Severity: normal

The recent security update broke my installation, where /etc/ssl is a
symbolic link. The upgrade removed the link and installed a /etc/ssl
directory containing only two empty directories (certs and private).

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-686
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages openssl depends on:
ii  libc6  2.3.6.ds1-13etch2 GNU C Library: Shared libraries
ii  libssl0.9.80.9.8c-4etch1 SSL shared libraries
ii  zlib1g 1:1.2.3-13compression library - runtime

openssl recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#445095: [Pkg-openssl-devel] Bug#445095: openssl: Package upgrade removes /etc/ssl if it is a symbolic link

2007-10-03 Thread Kurt Roeckx
reassign 445095 dpkg
retitle 445095 Upgrade changes symlink to directory.
thanks

On Wed, Oct 03, 2007 at 10:52:05AM +0300, Antonios Christofides wrote:
 Package: openssl
 Version: 0.9.8c-4etch1
 Severity: normal
 
 The recent security update broke my installation, where /etc/ssl is a
 symbolic link. The upgrade removed the link and installed a /etc/ssl
 directory containing only two empty directories (certs and private).

The openssl package has a few files/dirs in /etc:
/etc/ssl
/etc/ssl/openssl.cnf
/etc/ssl/private
/etc/ssl/certs

/etc/ssl/openssl.cnf is also marked as a conffile.  The later 2 are just
empty directories the openssl package might use.  The ca-certificates
package for instance also puts it's files there.

If you just replace /etc/ssl by a symlink, dpkg gets confused when you
try to upgrade it to a newer version, and I think it just removes the
symlink and creates the files and directories again.

You could argue that this is a bug in dpkg, but it might also be
documented behaviour, I don't know.  I'm just going to reassign it to
the dpkg package.


Kurt




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#445095: Processed: Re: [Pkg-openssl-devel] Bug#445095: openssl: Package upgrade removes /etc/ssl if it is a symbolic link

2007-10-03 Thread Frank Lichtenheld
reassign 445095 openssl
thanks

On Wed, Oct 03, 2007 at 05:36:04PM +, Debian Bug Tracking System wrote:
  reassign 445095 dpkg
 Bug#445095: openssl: Package upgrade removes /etc/ssl if it is a symbolic link
 Bug reassigned from package `openssl' to `dpkg'.

Just a wild guess, but the following code in openssl.preinst

if [ -L /etc/ssl ]
then
  echo Removing obsolete link /etc/ssl
  rm /etc/ssl
fi

_might_ have something to do with that behaviour...

Gruesse,
-- 
Frank Lichtenheld [EMAIL PROTECTED]
www: http://www.djpig.de/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]