On May 13, 2010, at 5:24 PM, Belal Salem wrote:
> # rpm -Uvh fontconfig-2.8.0-3.el6.i686.rpm
> error: Failed dependencies:
> /etc/fonts is needed by fontconfig-2.8.0-3.el6.i686
> /etc/fonts/conf.d is needed by fontconfig-2.8.0-3.el6.i686
> the folders '/etc/fonts' and '/etc/fonts/conf.d' are already installed by this package!!
Yes … but …
Those directories are not explicitly in the package, but rather
implicitly created in order to install a file on a path.
That's the reason. There are two rules:
1) Every file Requires: its parent directory.
2) Every symlink requires its end-point.
You can add --noparentdirs (or --nolinktos) to disable the functionality.
Or you can do
mkdir -p /etc/rpm/sysinfo/Dirnames
echo "/etc/fonts" >> /etc/rpm/sysinfo/Dirnames
echo "/etc/fonts/conf.d" >> /etc/rpm/sysinfo/Dirnames
There's also some macro (I never use it, so I've forgotten) to add --noparentidrs persistently.
Or you can compile rpm without the functionality.
73 de Jeff
Received on Sun Aug 14 00:38:55 2011