void-linux / xbps

The X Binary Package System (XBPS)
https://voidlinux.org/xbps/
Other
821 stars 124 forks source link

Again. xbps destroy links in root [BUG] #513

Closed Bezzumnbiu closed 2 years ago

Bezzumnbiu commented 2 years ago

XBPS: 0.59.1 API: 20200221

if you create a package with a program from a folder similar to root, that is, where there is / bin / lib / sbin, etc., then xbps-install will remove the references and simply create these folders again

How to repeat this experiment:

Create in the folder that will become the basis for xbps-create, folders / bin / lib / sbin
Throw any files into them
Collecting the package
Install the package on the system
???
Congratulations, you have killed the links in your root section.

Of course, you can just create a normal directory tree and make sure that all packages are installed in directories that are not made as links in the system ... But I alone think that this should not be so?

Duncaen commented 2 years ago

This is basically a duplicate of https://github.com/void-linux/xbps/issues/287, xbps does not do full conflict checks with already installed packages. Until this is fixed/changed, this is a packaging error.