opnsense / update

OPNsense update tools
https://opnsense.org/
BSD 2-Clause "Simplified" License
128 stars 79 forks source link

Update removing packages without replacement #51

Closed andreas-p closed 5 years ago

andreas-p commented 5 years ago

When updating from 19.1.6 to 19.1.7, the bind912 package was removed (probably because bind-tools-914 was to be installed), but bind914 wasn't installed so I was left with disfunctional local resolving.

In general, the updater shouldn't remove a package without installing a replacement.

fichtner commented 5 years ago

You can report this to https://github.com/freebsd/pkg or https://bugs.freebsd.org/bugzilla/ or discuss this package split on the FreeBSD ports mailing list. It was a FreeBSD ports decision to break out bind-tools completely. There's nothing I can do here.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237551

All plugin dependencies have been correctly adjusted so you must have been assuming "bind912" is always there and use it manually.

https://github.com/opnsense/plugins/commit/942687d476

Looking at closer it's good that "pkg" uses consistency and forces the stale package out rather than keeping the stale one and not updating correctly. If you run into these issues you can always lock the particular package from the GUI, but having said the previous it'll probably prevent you from updating correctly. It's an impossible choice to assume what the user wants so the system goes with a sane state.

Please also note this has nothing to do with opnsense-update as the "bad" behaviour is a single call of "pkg upgrade".

fraenki commented 5 years ago

but bind914 wasn't installed so I was left with disfunctional local resolving

@andreas-p, if you want to ensure that a working BIND package is always installed, I'd suggest to install (and configure) the official BIND plugin "os-bind". (Feel free to open feature requests in opnsense/plugins if it's missing functionality that you rely on.)

andreas-p commented 5 years ago

os-bind doesn't allow support file include or "custom options", I already requested that. Need to stay with plain freebsd pkg.