Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-beta-2
-
Component/s: rpm
-
Labels:None
-
Environment:CentOS release 5 (Final)
Description
<mapping> currently specifies the destination directory for the files. This directory is always listed as part of the installed files.
This presents a problem when trying to install a startup script for the application:
<mapping>
<directory>/etc/init.d</directory>
[...]
</mapping>
Trying to install the RPM results in the following error:
- rpm -Uvh dummy-1.0-1.i386.rpm
file /etc/init.d from install of dummy-1.0-1 conflicts with file from package chkconfig-1.3.30.1-1
$ rpm -qlvp dummy-1.0-1.i386.rpm
[..]
drwxr-xr-x 2 root root 0 Oct 17 10:50 /etc/init.d
-rwxr-xr-x 1 root root 15060 Oct 17 10:50 /etc/init.d/dummy
[..]
Current workarounds:
- Use the postinstall script to create the file in /etc/init.d, removing this <mapping> altogether.
or - Use --force during the installation
This is because /etc/init.d/ is a link to /etc/rc.d/init.d/, thus a mapping to the latter should work.