RPM Community Forums

Mailing List Message of <rpm-users>

Re: rpm-5.3.11

From: Jeff Johnson <n3npq@mac.com>
Date: Sun 14 Aug 2011 - 00:38:10 CEST
Message-id: <CFA105CF-8727-4050-B5C9-531FDD32B4C9@mac.com>

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
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.