[feature idea] Allow duplicate files with the same content
Yuri
yuri at rawbw.com
Mon Jul 24 22:12:16 UTC 2017
Problem:
Currently several py-backports-* ports install the same __init__.py file
into the same location. This is the only conflict between several ports.
This was by design, because they didn't think it matters to overwrite
the same file installed by another package. [1]
I am suggesting to solve this by introducing this feature into pkg:
* pkg will ignore duplicate files installed by multiple packages if
their content is identical
* pkg will maintain the reference count for each installed file, and
will silently delete it once the last package using it is uninstalled.
This automatically solves the above problem, and can also be useful in
some other cases when the same installed file needs to be shared by two
or more packages.
Opinions? I am equally okay with both thumbs-up and thumbs-down.
References:
[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219794
[2] https://reviews.freebsd.org/D11095
Yuri
More information about the freebsd-pkg
mailing list