Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] openssl and preserve_old_lib_notify pitfall
Date: Thu, 30 Sep 2010 19:07:46
Message-Id: 201009301506.55603.vapier@gentoo.org
In Reply to: [gentoo-dev] openssl and preserve_old_lib_notify pitfall by "Andreas K. Huettel"
1 On Thursday, September 30, 2010 12:31:16 Andreas K. Huettel wrote:
2 > Just by accident I noticed during emerge something that may lead to major
3 > confusion: the just stabilized openssl-1.0.0-r3 contains the following
4 > code:
5
6 fix your e-mail client. its line wrapping is broken.
7
8 > pkg_postinst() {
9 > ...
10 > has_version ${CATEGORY}/${PN}:0.9.8 && return 0
11 > preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
12 > }
13 >
14 > However, portage in my case first updated openssl (slot 0) from 0.9.8 to
15 > this version, _printing out the preserve_old_lib_notify message_, and then
16 > afterwards installed openssl-0.9.8o-r2.
17
18 are you sure openssl-1 didnt also take care of preserving the library ? look
19 at the contents of openssl-1.
20
21 > Net result: if I had relied on the elog messages alone, I would have messed
22 > up my system by deleting the required files from openssl:0.9.8...
23
24 you may have broken one or two *binary only* packages, but this hardly
25 classifies as "messed up my system".
26 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature