Opened 23 years ago
Closed 21 years ago
#307 closed defect (fixed)
Fix installation of the same program by more than package
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Book | Version: | CVS |
Severity: | normal | Keywords: | |
Cc: | greg@… |
Description
Some packages overwrite files from other packages (we already note this for hostname, but there are a few more). We should mention this so people can take action if they don't want that to happen.
Change History (19)
comment:1 by , 23 years ago
comment:2 by , 22 years ago
Priority: | normal → highest |
---|
comment:3 by , 22 years ago
Priority: | highest → high |
---|
comment:4 by , 22 years ago
Priority: | high → lowest |
---|
comment:5 by , 22 years ago
Priority: | lowest → normal |
---|
comment:6 by , 22 years ago
Priority: | normal → high |
---|
comment:8 by , 21 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:9 by , 21 years ago
Summary: | Mention which files are overwritten by a package → Fix installation of the same program by more than package |
---|
Instead of just mentioning which packages overwrite, we should decide which program (if there are choices like with kill, hostname) from which package we decide is best to use and make patches to prevent installation of others like we do with hostname, libiberty and going to do with the kill programs. This will make reinstalling a random package a lot safer: it won't all of the sudden install a "wrong" version of a program.
Change the summary line to be more accurate.
comment:10 by , 21 years ago
"kill" is a shell builtin so it doesn't matter most of the time. But some scripts will call /bin/kill so we need to have one there at least.
Three packages currently install "kill"
coreutils -> /usr/bin procps -> /bin util-linux -> /bin
I propose that we use the one from procps. The one from util-linux can be inhibited from installing by building it like so:
make HAVE_KILL=yes HAVE_SLN=yes
The one from coreutils can be removed by:
rm /usr/bin/kill
(similar to how we deal with /bin/groups from shadow).
Deal with this after 5.0 release.
comment:12 by , 21 years ago
Long time ago, I reported a similar problem. See http://archives.linuxfromscratch.org/mail-archives/lfs-dev/2003-January/031064.html (and other messages inside this thread). The information there would still be valid on LFS 5.x.
comment:14 by , 21 years ago
Committed some fixes to prune the number of "kill" binaries installed. This at least addresses part of the problem (Bug 687).
comment:15 by , 21 years ago
Priority: | high → normal |
---|
comment:16 by , 21 years ago
for the "uptime" command, I think the coreutils one is better than the procps one, as it is l10ned at least. The procps one is not l10ned, and can be omitted on install with SKIP (make SKIP='/usr/bin/uptime /usr/share/man/man1/uptime.1' install).
comment:17 by , 21 years ago
Owner: | changed from | to
---|---|
Status: | reopened → new |
comment:18 by , 21 years ago
Status: | new → assigned |
---|
After logging a whole by-the-book install with install-log, run this script on the generated logs for a list of duplicates (not guaranteed to work). It doesn't work on checklfs logs though, because they have directory names logged as well.
#!/bin/sh cd $1 && for LOG in *; do
done