Gentoo Archives: gentoo-dev

From: Per Wigren <wigren@××××.se>
To: gentoo-dev@g.o
Subject: [gentoo-dev] Destroying dependancies...
Date: Wed, 26 Mar 2003 00:48:35
Message-Id: 200303260139.33248.wigren@home.se
1 Yesterday, for about 30 hours all my newly recieved mail went to /dev/null
2 because of a portage limitation...
3 I have an old computes which acts as a firewall/router, ftpserver webserver
4 and mailserver with IMAP and spamassassin... I have "mysql" in my USE-flags
5 on said server.. Yesterday portage upgraded MySQL from 3.23.56 to 4.0.12..
6 postfix and maildrop both linked to /usr/lib/libmysqlclient.so.10 which went
7 away when MySQL was upgraded.. When the still running postfix delivered the
8 mail using dropmail, dropmail just died with "error while loading shared
9 libraries: no such file or directory" and for some reason (I'd call it a bug
10 in postfix) it didn't defer them, they just went to /dev/null...
11 Anyway, I won't whine about it.. Instead I'm looking into finding a solution
12 for the REAL problem...
13
14 A solution I've been thinking about is this:
15
16 When a package is installed portage will run ldd on all binaries and libs and
17 put its library-depends in a file in its /var/db/pkg-directory.
18
19 Later when a package is upgraded, it will scan the LIBDEPS-files for broken
20 dependancies and tell the user something like:
21 * WARNING: The following packages needs to be reinstalled because of broken
22 dependancies:
23 * net-www/blabla
24 * app-games/blablabla
25 * media-video/blabla
26
27 And when a package is uninstalled with -C or --clean, it will scan the
28 LIBDEPS-files for the libs it will remove and refuse to uninstall it if it
29 breaks anything. Maybe with a warning like this:
30 * WARNING: dev-libs/libblablabla can't be uninstalled because the following
31 packages depends on it:
32 * net-www/blabla
33 * app-games/blablabla
34 * media-video/blabla
35 * use --force to uninstall it anyway.
36
37
38
39 Anyone have a better solution?
40
41 Regards,
42 Per Wigren
43
44 --
45 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Destroying dependancies... Michael Taylor <mtaylor@××××××××××.org>
Re: [gentoo-dev] Destroying dependancies... Alain Penders <alain@g.o>