From: Nickolay S. <sk...@bs...> - 2003-10-31 13:38:44
|
Hello, Paul ! > So, if we want to conform to a standard used by RedHat, Mandrake and SuSE to > name but a few, we need to use the -r switch. I know you don't want to get > involved in distro specific installs, but I don't think we have any choice. > What happens if the -r switch is used on gentoo? Does it throw an error or > does it swallow it silently? It throws error. >> What mess are you talking about ? > Actually, that comes from using the -m switch with useradd. It creates the > user home directory based on the contents of /etc/skel. On my system that > is three sub-dirs and 18 config files that are all entirely useless to the > firebird user. And when the install is deleted this stuff remains behind. > These files have nothing to do with firebird and it just looks messy. > Anyway, I think the right way for useradd is to use the -r switch if it is > available and not to use the -m switch under any circumstances. I can replace -m switch with -M switch. What about leaving -r switch to distro-specific installer builders ? >> >> I'm going to specify --prefix=/opt/firebird during RPM build. It >> should work, I tested it some time ago. >> > Specifying a prefix when running autogen works. But if a developer doesn't > specify a --prefix at that time and tries to specify a prefix when > installing the final rpm an error about the rpm being non-relocatable is > thrown. It ought to be relocatable for those users who don't want to > install into wherever the build-time prefix is. But I've never written an > rpm script that is relocateable, so I don't know if that is complicated or > not. I'm going to specify autogen.sh --prefix=/opt/firebird before building RPM packages. Resulting packages will install to /opt/firebird. > Paul -- Nickolay Samofatov mailto:sk...@bs... |