LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 01-21-2020, 02:12 PM   #1
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,031
Blog Entries: 11

Rep: Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226
Three confusing messages after a big OpenBSD package update


Yesterday I upgraded my OpenBSD base system from 6.5 to 6.6. That went very smoothly. Today I carried out the package update. At the end of the update were three instructions that I find confusing:
Code:
 --- -dbus-1.12.12p0v0 -------------------
Remember to update /etc/machine-id
--- -dconf-0.30.1p1 -------------------
You should also run rm -rf /etc/dconf/db/*
You should also run rm -rf /etc/dconf/profile/*
--- -libxml-2.9.8p1 -------------------
Remember to update /var/db/xmlcatalog
Does the first message mean that I should run dbus-uuidgen and direct the output into /etc/machine-id? I'm a bit loth to do that as the man page says you should not change machine_ids on a running system.

The second message seems to be irrelevant as I don't actually have any files in these two directories. Should I have any?

I do have a /var/db/xmlcatalog file. So should I run xmlcatalog and direct the results into this file to overwrite what is there?

I just need a little reassurance .
 
Old 01-21-2020, 05:29 PM   #2
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 223

Rep: Reputation: 96
A package update (pkg_add -u or -r) removes the old package and replaces it with the new. So you'll get these sorts of post-delete-cleanup messages that you can safely ignore.
 
1 members found this post helpful.
Old 01-22-2020, 04:35 AM   #3
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,031

Original Poster
Blog Entries: 11

Rep: Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226
You mean those operations were actually carried out by the install scripts?
 
Old 01-22-2020, 04:53 AM   #4
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,379
Blog Entries: 18

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Quote:
Originally Posted by hazel View Post
You mean those operations were actually carried out by the install scripts?
No, I think what he's saying is that the messages are additional steps one needs to take when removing something, but that the package tools aren't smart enough to differentiate the remove phase of an upgrade from an actual remove and spam you with irrelevant messages.
 
2 members found this post helpful.
Old 01-22-2020, 04:55 AM   #5
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,031

Original Poster
Blog Entries: 11

Rep: Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226
Thanks, guys!
 
Old 01-22-2020, 08:39 AM   #6
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,413

Rep: Reputation: Disabled
The pkg_* tools are very simple and yes they do output those "clean up" notes as others have suggested, even when just upgrading a package.

OpenBSD does not have a package manager with the sophistication, features and added complexity of FreeBSD's pkg (pkgng). The latter being very much an implementation of a Linux style package manager.
 
Old 01-22-2020, 08:58 AM   #7
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 223

Rep: Reputation: 96
And from a cultural / social point-of-view, if you dislike something about OpenBSD -- such as seeing these messages appear during an update -- the Project will gladly review user-submitted patches to eliminate them, and will either ignore or disparage entreaties to have someone else do the work to eliminate them.

Most of the Project's developers started on the road to being developers by first submitting patches to address things that annoyed them.
 
Old 01-23-2020, 02:15 PM   #8
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,031

Original Poster
Blog Entries: 11

Rep: Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226Reputation: 2226
That's not as easy as it sounds! Out of curiosity, I followed the invocation sequence: pkg_delete-> PkgDelete->Delete. It's all perl scripts and I don't speak perl. But the message about updating the file definitely comes from Delete.pm.
Code:
sub delete
{
        my ($self, $state) = @_;
        my $realname = $self->realname($state);
        if ($state->verbose >= 2 && $state->{extra}) {
                $state->say("deleting extra file: #1", $realname);
        }
        return if $state->{not};
        return unless -e $realname or -l $realname;
        if ($state->replacing) {
                $state->log("Remember to update #1", $realname);
                $self->mark_dir($state);
        } elsif ($state->{extra}) {
                unlink($realname) or
                    $state->say("problem deleting extra file #1: #2", $realname, $!);
        } else {
                $state->log("You should also remove #1", $realname);
                $self->mark_dir($state);
        }
}
I can't understand much of this but it looks like if there is a file defined in the package as extra (and /etc/machine-id is so defined in the dbus package) and there exists such a file or a link to it, and you are replacing the package, you print that message. If you're not replacing, you just delete it.

Which suggests that this is not a message printed by accident because the script couldn't distinguish between deleting and replacing. It does seem to distinguish and this message is definitely intended for users doing a replacement.
 
Old 01-24-2020, 06:42 AM   #9
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 223

Rep: Reputation: 96
"Remember to update" is possibly valid, but you also received extraneous messages to "rm -rf" two dconf structures. Those came from the @extraunexec entries in ports/devel/dconf/pkg/PLIST.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 12 04-25-2019 08:33 AM
difference between big theta, big omega & big o mahboob ul haq Linux - Newbie 1 01-29-2011 02:36 PM
Big O, Big Omega, and Big Theta oulevon Programming 7 05-26-2010 08:18 AM
How BIG are "Big files" in "XFS is the best with big files"? ingerudo Linux - General 1 09-11-2009 09:36 AM
LXer: Why Big Compute and Big Storage will meet Big Pipe at the Last Mile LXer Syndicated Linux News 0 12-23-2007 02:20 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 03:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration