Thank you,

I'm using binpatches with openup as well...

On Mon, Sep 5, 2016 at 5:10 AM, Ingo Schwarze <[email protected]> wrote:

>
> ​> ​
> That seems very unlikely, but you can easily check whether the
> ​
> ​>
> ​
> man60.tgz *you* used is corrupt by running "tar -tzvf" against

​
> ​>
> ​
> it.  You did not even mention your architecture, so it's not clear

​
> ​>
> ​
> which file you are talking about.

​
> ​> ​


​From the install60.fs usb image I used to upgrade:

$ pwd
/mnt/usb/6.0/i386
$ ls -l man60.tgz
-rw-r--r--  1 root  wheel  8824627 Jul 26 13:54 man60.tgz
$ tar tzf man60.tgz | grep -i pkg.add
$


Checking files used for the upgrade:

$ cd /tmp/6.0
$ ls
SHA256       SHA256.sig   install60.fs man60.tgz
$ pwd
/tmp/6.0
$ signify -Cp /etc/signify/openbsd-60-base.pub -x SHA256.sig install60.fs
Signature Verified
install60.fs: OK
$ signify -Cp /etc/signify/openbsd-60-base.pub -x SHA256.sig man60.tgz
Signature Verified
man60.tgz: OK
$ tar tzf man60.tgz | grep -i pkg.add
$

​


> ​
> ​>
> ​
> To help finding out what's broken on your system, please show the

​
> ​>
> ​
> output of the following commands:

​
> ​> ​

​
> ​>
> ​
>   $ functions

​
> ​>
> ​
>   $ alias man

​
> ​>
> ​
>   $ echo $MANPATH

​
> ​>
> ​
>   $ cat /etc/man.conf

​
> ​>
> ​
>   $ ls -al /usr/share/man/man1/pk*

​
> ​>
> ​
>   $ ls -al /usr/share/man/*.db

​
> ​> ​

​
> ​>
> ​
> Yours,

 ​>
> ​
> Ingo



$ functions
$ alias man
man alias not found
$  echo $MANPATH

$ cat /etc/man.conf
#       $OpenBSD: man.conf,v 1.22 2015/01/20 19:17:28 schwarze Exp $

# Sheer, raging paranoia...
_version        BSD.2

# The whatis/apropos database.
_whatdb         /usr/share/man/whatis.db
_whatdb         /usr/X11R6/man/whatis.db
_whatdb         /usr/local/man/whatis.db

# Subdirectories for paths ending in '/', IN SEARCH ORDER.
_subdir         {cat,man}1 {cat,man}8 {cat,man}6 {cat,man}2 {cat,man}3
{cat,man}5 {cat,man}7 {cat,man}4 {cat,man}9 {cat,man}3p {cat,man}3f
{cat,man}n

# Files typed by suffix and their commands.
# Note the order: .Z must come after .[1-9n].Z, or it will match first.
_suffix         .0
_build          .0.Z            /usr/bin/zcat %s
_build          .0.gz           /usr/bin/gzcat %s
_build          .[1-9n]         /usr/bin/mandoc %s
_build          .[1-9n].Z       /usr/bin/zcat %s | /usr/bin/mandoc
_build          .[1-9n].gz      /usr/bin/gzcat %s | /usr/bin/mandoc
_build          .[1-9][a-z]     /usr/bin/mandoc %s
_build          .[1-9][a-z].Z   /usr/bin/zcat %s | /usr/bin/mandoc
_build          .[1-9][a-z].gz  /usr/bin/gzcat %s | /usr/bin/mandoc
_build          .tbl            /usr/bin/mandoc %s
_build          .tbl.Z          /usr/bin/zcat %s | /usr/bin/mandoc
_build          .tbl.gz         /usr/bin/gzcat %s | /usr/bin/mandoc

# Sections and their directories.
# All paths ending in '/' are the equivalent of entries specifying that
# directory with all of the subdirectories listed for the keyword _subdir.

# default
_default        /usr/{share,X11R6,local}/man/

# Other sections that represent complete man subdirectories.
X11             /usr/X11R6/man/
X11R6           /usr/X11R6/man/
local           /usr/local/man/

# Specific section/directory combinations.
1               /usr/{share,X11R6,local}/man/{cat,man}1
2               /usr/{share,X11R6,local}/man/{cat,man}2
3               /usr/{share,X11R6,local}/man/{cat,man}3
3F              /usr/local/man/{cat,man}3f
3f              /usr/local/man/{cat,man}3f
3P              /usr/{share,local}/man/{cat,man}3p
3p              /usr/{share,local}/man/{cat,man}3p
4               /usr/{share,X11R6,local}/man/{cat,man}4
5               /usr/{share,X11R6,local}/man/{cat,man}5
6               /usr/{share,X11R6,local}/man/{cat,man}6
7               /usr/{share,X11R6,local}/man/{cat,man}7
8               /usr/{share,X11R6,local}/man/{cat,man}8
9               /usr/share/man/{cat,man}9
n               /usr/local/man/{cat,man}n

# added from external programs or possible conflicting ports
eopenssl        /usr/local/lib/eopenssl/man
$ ls -al /usr/share/man/man1/pk*
-r--r--r--  1 root  wheel   7476 Jul 26 13:42
/usr/share/man/man1/pkg-config.1
-r--r--r--  1 root  wheel  21211 Jul 26 13:42
/usr/share/man/man1/pkg_create.1
-r--r--r--  1 root  wheel   5198 Jul 26 13:42
/usr/share/man/man1/pkg_delete.1
-r--r--r--  1 root  wheel   6694 Jul 26 13:42 /usr/share/man/man1/pkg_info.1
-r--r--r--  1 root  wheel   2982 Jul 26 13:42
/usr/share/man/man1/pkg_mklocatedb.1
-r--r--r--  1 root  wheel   4424 Jul 26 13:42 /usr/share/man/man1/pkg_sign.1
-r--r--r--  1 root  wheel   6287 Jul 26 13:42 /usr/share/man/man1/pkill.1
$ ls -al /usr/share/man/*.db
-rw-r--r--  1 root  wheel  488448 Sep  3 03:30 /usr/share/man/mandoc.db
$

​Maybe this will help someone else:

The upgrade guidance states that removing the hard links using
"rm -Rf /usr/share/man" will head-off issues...
(https://www.openbsd.org/faq/upgrade60.html)

I jumped the gun, and did the upgrade before reading the guidance.
Guilt overcame me for this oversight so I proceeded to make it "right" by
manually
removing the old man pages, and manually installing the updated ones...

By a unfortunate set of choices on my part, pkg_add was the first man page
I tried
to use to test my post upgrade fix...  It is pretty funny now :^)

Anyway, I believe my post sequence of events after the "oh crap" moment went
something like this:

1)  Ran makewhatis
2)  Ran pkg-config
3)  Verified that pkg.conf looked sane
4)  started testing other man pages, hmm they work fine...
5)  looked at man60.tgz
6)  posted to misc@


​A related follow-up question:
Is the intent that "upgrade" can be run safely on a stable system more than
1 time?

I know I can backup config+data and do a clean install, but that seems like
overkill right now...

Reply via email to