Resolving file conflicts FC18
Hello.
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:
%files
%dir %{apphome}/conf
%{apphome}/conf/pkg1.cnf
Package 2:
%files
%dir %{apphome}/conf
%{apphome}/conf/pkg2.cnf
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.
Thanks!
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 :)What is the relation between both packages? You could make one of them own %{apphome}/conf, and let the other require the first package.