Joanmarie Diggs wrote:
On Tue, 2009-08-25 at 14:52 -0500, Shawn Walker wrote:
[...]
The issue of --force and --no-deps is that if you use it 'now' to 'fix'
something that's broken, your system will be forever broken later until
you actually do it right.
Agreed. And I'm not saying that pkg should have --force and --no-deps,
but I wonder if ... something ... in that general ballpark might
actually make it less likely to have a broken system.
For instance, I have a need to build and install the various a11y libs
-- and on occasion Gtk+. I cannot remove these packages because so many
things depend on them. I've tried making pkg(5) files, placing them in a
local repo, and then updating the existing packages with those I've
created but, as I recall, packagemanager wouldn't let me update them
stating I had to do an update all instead. I don't recall why update all
failed now, but it did.
See this RFE:
2775 pkg reinstall
http://defect.opensolaris.org/bz/show_bug.cgi?id=2775
That should cover your particular usage case.
So what I wind up doing is taking a snapshot and then overwriting the
files with a make install. (Yeah, I know, baaaaad user.) If I catch a
screw-up in my build immediately, it's easy to rollback. If I don't
catch it for awhile, however, rolling back becomes less ideal.
If I could cause packagemanager to remove just the packages I need to
overwrite, couldn't I later recover from a broken build by simply
reinstalling those packages? I could also re-install those packages
right before performing an update so that I'm not asking pkg to update a
system which is not in the state pkg thinks it is.
PackageManager has some interesting logic in place right now to attempt
to force an 'Update All'. I don't quite understand it, and don't think
it should be there, but I don't know what problem it is trying to solve
to say for certain one way or another. The pkg(5) cli client certainly
doesn't have anything like that.
Having just thought through the above, I guess what I'd like to see,
more than --force and --no-deps is a way to restore the packages whose
files I wind up having to overwrite.
pkg fix can generally get you back to a known good state if files become
'corrupt'. See this RFE for additional enhancements to this:
8269 subcommand or option to restore preserved files to original state
desired
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss