lsbinstall - unclear definition and uninstall features
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPM |
New
|
Undecided
|
Unassigned | ||
lsb |
Confirmed
|
Medium
|
Unassigned | ||
Mandriva |
In Progress
|
Medium
|
Bug Description
This should probably split into several sub-bugs.
I think the functionality provided by lsbinstall is great, especially for
install scripts and postinstalls of RPM files; but I'm puzzled that no
_uninstallation_ option is provided.
Besides the word "install" is a bit ambivalent. Does /usr/lib/
copy/move an initscript from some place (e,g. /opt/*/) to /etc/init.d or does it
merely provide the symlinks to
./rc*.d/? Or both? initd_install does only the latter and at least some
implementations expect the initscripts to be installed to /etc/init.d/. (Which
has the advantage that the user can simply find the init scripts and a rpm -qf
works.) Analogously for fonts.
Profile: I think one should mention that POSIX shell commands should be used,
i.e. TCSH won't work and Bash extensions my not work neither. (Hopefully, all
shells which read profile(.d) support all POSIX commands, whether they are bash,
ash, ksh, zsh or ...)
For Service: Shouldn't one explicitly define the allowed protocol values ("tcp"
and "udp")? Otherwise some my pass "Tcp" or "Transmission control protocol",
which the script may or may not support.
Another questions is in how far error conditions should be taken into account; e.g.
- a service already exists: Should it add them as alias, should it bail out or
should it be simply undefined (=implementation dependent)?
- For all installations which copy files: What to do if a file already exist?
This can happend during a (broken?) update or when several packages contain the
same file - for fonts this may happen. (Returning an exit status code != 0 would
be one option)
- What happens if e.g. a font format is not supported?
Since uninstall is (in my opinion) needed (uninstall font before updated to
prevent problems above, remove unneeded menu items and ldconfig directories),
this opens another Pandora's box:
- How to handle user modifications of files being copied; e.g. inet, profile and
cron scripts, and /etc/service lines?
- Should there be a special option for upgrades in order to handle such cases
more gracefully?
Changed in mandriva: | |
importance: | Unknown → Medium |
status: | Unknown → In Progress |
tags: | added: lsbinstall |