[lug] rpm build question

Michael J. Hammel mjhammel at graphics-muse.org
Wed Dec 11 16:46:27 MST 2002


Thus spoke rm at fabula.de
> ... this is a rather dangerous approach: suppose you do this and replace
> foo.man from package blah with your version. Now iof the user chooses to
> deinstall package blah the manpage (your version!) will be removed -
> suboptimal. Pre/post-install scripts should not modifiy the set of installed
> files (or the package manager will be confused about the ownership of a file).

I obviously wasn't very clear on this, but the approach I suggested wouldn't 
remove the existing man page, just install the new one in another spot.  The
deinstall of the new package would check for the new man page in the "other
spot" and remove it unless it didn't exist, in which case the assumption is
that the "real" man page is the one the new package installed.   The goal
being that the new package doesn't break existing packages installations.

It gets rather confusing, but it can work.  I've done similar things with
other packaging systems.

-- 
Michael J. Hammel           |
The Graphics Muse           |  I love California. I practically grew up in 
mjhammel at graphics-muse.org  |  Phoenix. - Former U.S. Vice-President Dan Quayle
http://www.graphics-muse.com 



More information about the LUG mailing list