Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: pkg_{pre,post}inst misusage
Date: Fri, 23 Dec 2005 18:55:01
Message-Id: pan.2005.12.23.18.43.00.666301@cox.net
In Reply to: Re: [gentoo-dev] pkg_{pre,post}inst misusage by Jason Stubbs
1 Jason Stubbs posted <200512240222.06574.jstubbs@g.o>, excerpted
2 below, on Sat, 24 Dec 2005 02:22:06 +0900:
3
4 > A quick patch makes symlinks handled similarly to regular files and
5 > solves the issue. I'll put it into testing unless anybody can come up
6 > with a reason not to. The case that will be broken by the patch is when
7 > two different packages install the same symlink. PackageA is
8 > installed, PackageB is installed, PackageB is uninstalled -> PackageA is
9 > broken. Does this case exist?
10
11 Yikes! That's not going to remove /lib or /usr/lib or the like, for us on
12 amd64, where that's a symlink to lib64, will it?
13
14 equery b /lib
15 [ Searching for file(s) /lib in *... ]
16 net-analyzer/macchanger-1.5.0-r1 (/lib)
17 sys-apps/baselayout-1.12.0_pre12 (/lib)
18 sys-boot/grub-0.97 (/lib)
19 sys-devel/gcc-4.0.2-r1 (/lib)
20 sys-devel/gcc-3.4.4-r1 (/lib)
21 sys-fs/device-mapper-1.01.05 (/lib)
22 sys-fs/lvm2-2.01.14 (/lib)
23 sys-fs/udev-078 (/lib)
24 sys-libs/glibc-2.3.6 (/lib)
25
26 There's a similar, longer list, for /usr/lib. Obviously, not all of
27 those will own it as a symlink, but it is one, and if removing one happens
28 to remove the symlink...
29
30 Also consider the effect where a former dir is now a symlink or a former
31 symlink is now a dir. The recent xorg directory moves come to mind.
32
33 You are /sure/ the new code won't screw anything of that sort up, right?
34 Maybe that's the reason nobody seems to have been around to know about.
35 It just sounds like it /could/ be dangerous to me. For some reason, I
36 don't like the idea of something that could hose a system that badly! =8^\
37
38 --
39 Duncan - List replies preferred. No HTML msgs.
40 "Every nonfree program has a lord, a master --
41 and if you use the program, he is your master." Richard Stallman in
42 http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html
43
44
45 --
46 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Re: pkg_{pre,post}inst misusage Simon Stelling <blubb@g.o>
Re: [gentoo-dev] Re: pkg_{pre,post}inst misusage Jason Stubbs <jstubbs@g.o>