Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 2017 15:12:09 -0700
From:      Yuri <yuri@rawbw.com>
To:        freebsd-pkg@freebsd.org
Cc:        lifanov@freebsd.org, Kubilay Kocak <koobs@FreeBSD.org>
Subject:   [feature idea] Allow duplicate files with the same content
Message-ID:  <96dbc99f-3a21-423d-18b8-6737c5517ff8@rawbw.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96dbc99f-3a21-423d-18b8-6737c5517ff8>