Ask Your Question

Resolving file conflicts FC18

asked 2013-10-04 09:56:58 -0500

Trenin gravatar image

updated 2014-09-28 12:10:23 -0500

mether gravatar image


I am working on a project that started in fc12. We are now upgrading our servers to fc18 and have an installation problem.

We have two packages, both of which have the following lines in their spec files:

install -d -m 0755 ${RPM_BUILD_ROOT}%{apphome}/conf

Both packages store files in this directory as follows:

Package 1:
install -m 0600 conf/pkg1.cnf ${RPM_BUILD_ROOT}%{apphome}/conf

Package 2:
install -m 0600 conf/pkg2.cnf ${RPM_BUILD_ROOT}%{apphome}/conf

Similarily, both have portions in the %files sections:

Package 1:
%dir %{apphome}/conf

Package 2:
%dir %{apphome}/conf

When I attempt to install these with a fresh install using anaconda, I get errors of the following form in /tmp/packaging.log:

ERR packaging: file /apphome/conf conflicts between attempted installs of pkg1.i386 and pkg2.i386.

How can I resolve this?

Here is what I tried so far: - remove the "%dir" lines from one of the packages - no effect - same errors - remove the "install -d" lines from one of the packages - buildrpm fails when trying to store files in the directory

Is it a permission problem? Do I simply need to make sure both packages are creating the directory with the same permissions?

FIXED I was able to resolve by making sure the permissions on the directories were the same in both packages.


edit retag flag offensive close merge delete


Could you post result of this commands: rpm -qp pkg1.i386.rpm -l; rpm -qp pkg2.i386.rpm -l Of course correct file names to packages :)

none gravatar imagenone ( 2013-10-04 10:38:39 -0500 )edit

What is the relation between both packages? You could make one of them own %{apphome}/conf, and let the other require the first package.

skytux gravatar imageskytux ( 2013-10-04 11:30:16 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-04 11:28:43 -0500

Trenin gravatar image

Fixed by ensuring the permissions on the directories were the same.

edit flag offensive delete link more

Question Tools


Asked: 2013-10-04 09:56:58 -0500

Seen: 282 times

Last updated: Oct 09 '13