Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkgin uses "pkg_add -f" #40

Closed
gdt opened this issue Jan 6, 2015 · 1 comment
Closed

pkgin uses "pkg_add -f" #40

gdt opened this issue Jan 6, 2015 · 1 comment

Comments

@gdt
Copy link

gdt commented Jan 6, 2015

I had xentools41 installed, and did "pkgin in xentools24". This should have failed, because xentools42 conflicts with xentools41 because PLISTs overlap. pkg_add rejects this addition. As a result, I had a mix of the packages, and when I removed xentools42 the xentools41 package was broken. It seems this happens because -f is pased to pkg_add.

This is a critical integrity failure; it should not be possible to reach unsafe states with pkgin. pkgin should never use -f with pkg_add. I really do mean never; if some specific check needs overriding for a good reason, there should be a flag to just skip that. (Arguably, pkg_add/etc. should have a coherent scheme of named checks with a flexible override mechanism.)

@iMilnb
Copy link
Contributor

iMilnb commented Jan 6, 2015

pkgin has been modified in order to use pkg_add -D instead, could you try it and tell us if it behaves as expected?

@iMilnb iMilnb closed this as completed Jan 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants