directory conflicts between packages
Miro Hrončok
mhroncok at redhat.com
Fri Mar 24 09:35:09 UTC 2023
On 24. 03. 23 5:32, Tim Mooney wrote:
>
> All-
>
> It seems the rpm 4.16.1.3 that's part of RHEL 9 behaves differently from
> previous versions of RPM with regard to multiple packages that claim the
> same directory.
>
> This particularly impacts perl modules, where two unrelated perl modules
> may both want to install files into a subdirectory. For example,
> perl-Test-A and perl-Test-B may not have any dependency relation between
> them, but they may both deliver files into
>
> %{perl_sitelib}/Test
>
> For years, under previous versions of RPM, the recommendation was that
> both packages should claim a directory with %dir. Based on my reading
> of the Fedora perl packaging guidelines, that's *still* the
> recommendation:
>
> https://docs.fedoraproject.org/en-US/packaging-guidelines/Perl/#_directory_ownership
>
> At least on RHEL 9, though, with rpm 4.16.1.3, that's treated as an error:
>
> Error: Transaction test error:
> file /usr/local/lib64/perl5/5.32/auto/Test from install of
> perl-Test-Exception-0.43-1.x86_64 conflicts with file from package
> perl-Test-Pod-1.52-1.x86_64
> file /usr/local/share/perl5/5.32/Test from install of
> perl-Test-Exception-0.43-1.x86_64 conflicts with file from package
> perl-Test-Pod-1.52-1.x86_64
>
> With that error in mind, what's the modern recommendation for packaging
> directories that may be used by multiple unrelated packages?
Are you 100 % sure the path is a directory in both packages? Not a file, not a
link?
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
More information about the Rpm-list
mailing list