Re: pkg_add -u skipping mutt and python

2017-10-29 Thread Stuart Henderson
On 2017-10-26, Alex Holst  wrote:
> mutt is linked against two libc. To make matters worse, I am running
> mutt 1.6.2 from 6.0, not 1.9.x from OpenBSD 6.2.

Mutt isn't linked against two libc. Some of the libraries it use have
been updated (pulling in new libc) but mutt itself hasn't been updated.

> Skipping mutt-1.9.1v3-gpgme-sasl (update candidate for 
> mutt-1.6.2v0-compressed-sasl-sidebar-slang)
> mutt-1.6.2v0-compressed-sasl-sidebar-slang pkgpaths: 
> mail/mutt,sasl,sidebar,slang,compressed 
> mail/mutt/,slang,compressed,sidebar,sasl 
> mail/mutt/snapshot,sasl,sidebar,compressed,slang 
> mail/mutt/stable,sasl,slang,compressed,sidebar
> mutt-1.9.1v3-gpgme-sasl pkgpaths: mail/mutt/stable,sasl,gpgme 
> mail/mutt/snapshot,sasl,gpgme mail/mutt,sasl,gpgme mail/mutt/,sasl,gpgme

I just removed a stray / in the PLIST in the port in -current, which *may* be
related, but honestly I would just pkg_delete and pkg_add the version you want.
The maze of flavours makes it hard to get updates absolutely correct with all
combinations.

> [..]
> Skipping python-3.6.2 (update candidate for python-3.4.5p2)
> python-3.4.5p2 pkgpaths: lang/python/3.4,-main lang/python3/3.4,-main
> python-3.6.2 pkgpaths: lang/python3/3.6,-main lang/python/3.6,-main

This is working as currently designed (though I agree it's not totally
useful). python/3.4 and python/3.6 are separate branches in ports and don't
auto update between the branches, even though python 3.4 (and 3.5) have now
been removed. Problem is, the module directories are different, so if you
had some locally installed thing using 3.4 it probably wouldn't work
directly with 3.6. Leaving them installed in parallel there's still some 
chance old programs will still run (up to a point).




Re: pkg_add -u skipping mutt and python

2017-10-26 Thread Cág
This is because pkgpaths differ from previous versions for both of them.
>From pkg_add(1):

"To update packages in -u mode, pkg_add performs the following steps.
[...]
4. Candidates are then matched according to their pkgpaths in order to weed
out similar packages with distinct options."

In addition to pkg_add(1), you can read OpenBSD::Intro(3p), the PACKAGE
UPDATES section.

I suppose something was done wrong during the port update.

Also, do you have two libc versions installed or they are simply linked to
them?

-- 
caóc



pkg_add -u skipping mutt and python

2017-10-26 Thread Alex Holst
I'd appreciate any input on how several of my systems could have ended
up with this pkg_add behaviour of not properly updating packages:

# uname -a
OpenBSD lamb.my.domain 6.2 GENERIC#132 amd64
# cat /etc/installurl   


   
http://fastly.cdn.openbsd.org/pub/OpenBSD
# pkg_info | wc -l
 114
# time pkg_add -u
quirks-2.367 signed on 2017-10-03T11:21:28Z
0m09.10s real 0m03.62s user 0m04.43s system

(http really is much faster than https in this case.)

So, no packages to update. However:

$ mutt
mutt:/usr/lib/libc.so.90.0: /usr/lib/libc.so.88.0 : WARNING: 
symbol(sys_errlist) size mismatch, relink your program

# ldd $(which mutt)
/usr/local/bin/mutt:
StartEnd  Type Open Ref GrpRef Name
125953f0 1259543e1000 exe  10   0  
/usr/local/bin/mutt
125bb1d9a000 125bb214d000 rlib 01   0  
/usr/local/lib/libslang.so.16.0
125c52cd7000 125c530ff000 rlib 01   0  
/usr/lib/libm.so.9.0
125c3cafd000 125c3cf57000 rlib 01   0  
/usr/lib/libssl.so.39.0
125bbda53000 125bbe022000 rlib 02   0  
/usr/lib/libcrypto.so.38.0
125be39d9000 125be3bf1000 rlib 02   0  
/usr/lib/libz.so.5.0
125b58e5b000 125b59078000 rlib 01   0  
/usr/local/lib/libsasl2.so.3.0
125b6d2f4000 125b6d534000 rlib 01   0  
/usr/local/lib/libqdbm.so.14.14
125bc1f1f000 125bc2154000 rlib 01   0  
/usr/local/lib/libidn.so.17.2
125bd18ff000 125bd1b0a000 rlib 02   0  
/usr/local/lib/libintl.so.6.0
125c41b1c000 125c41e19000 rlib 04   0  
/usr/local/lib/libiconv.so.6.0
125c244dc000 125c24732000 rlib 01   0  
/usr/lib/libtermlib.so.14.0
125b6d67f000 125b6db49000 rlib 01   0  
/usr/lib/libc.so.88.0
125b981e4000 125b984c3000 rlib 01   0  
/usr/lib/libc.so.90.0
125bc580 125bc580 rtld 01   0  
/usr/libexec/ld.so

mutt is linked against two libc. To make matters worse, I am running
mutt 1.6.2 from 6.0, not 1.9.x from OpenBSD 6.2.

# mutt -h | head -n1  
mutt:/usr/lib/libc.so.90.0: /usr/lib/libc.so.88.0 : WARNING: 
symbol(sys_errlist) size mismatch, relink your program
Mutt 1.6.2 (2016-07-01)
# pkg_info -Q mutt
mutt-1.9.1v3
mutt-1.9.1v3-gpgme
mutt-1.9.1v3-gpgme-sasl
mutt-1.9.1v3-sasl
mutt-1.9.1v3-sasl-slang
mutter-3.24.4p1
muttprint-0.73
neomutt-20170912
neomutt-20170912-gpgme
neomutt-20170912-gpgme-sasl
neomutt-20170912-sasl
# pkg_info -v mutt | grep '@url'
@url 
http://ftp.hostserver.de/pub/OpenBSD/6.0/packages/amd64/mutt-1.6.2v0-compressed-sasl-sidebar-slang.tgz
# pkg_info -v python-3.4.5p2 | grep '@url' 
@url https://ftp.hostserver.de/pub/OpenBSD/6.1/packages/amd64/python-3.4.5p2.tgz

sysclean -p pointed out outdated mutt and python. All other packages
were updated correctly.

# pkg_add -vu
Update candidates: quirks-2.367 -> quirks-2.367
quirks-2.367 signed on 2017-10-03T11:21:28Z
Update candidates: adwaita-icon-theme-3.24.0 -> adwaita-icon-theme-3.24.0
Update candidates: at-spi2-atk-2.24.1 -> at-spi2-atk-2.24.1
Update candidates: at-spi2-core-2.24.1 -> at-spi2-core-2.24.1
[..]
Skipping mutt-1.9.1v3-gpgme-sasl (update candidate for 
mutt-1.6.2v0-compressed-sasl-sidebar-slang)
mutt-1.6.2v0-compressed-sasl-sidebar-slang pkgpaths: 
mail/mutt,sasl,sidebar,slang,compressed 
mail/mutt/,slang,compressed,sidebar,sasl 
mail/mutt/snapshot,sasl,sidebar,compressed,slang 
mail/mutt/stable,sasl,slang,compressed,sidebar
mutt-1.9.1v3-gpgme-sasl pkgpaths: mail/mutt/stable,sasl,gpgme 
mail/mutt/snapshot,sasl,gpgme mail/mutt,sasl,gpgme mail/mutt/,sasl,gpgme
Skipping mutt-1.9.1v3-sasl (update candidate for 
mutt-1.6.2v0-compressed-sasl-sidebar-slang)
mutt-1.6.2v0-compressed-sasl-sidebar-slang pkgpaths: 
mail/mutt,sasl,sidebar,slang,compressed 
mail/mutt/,slang,compressed,sidebar,sasl 
mail/mutt/snapshot,sasl,sidebar,compressed,slang 
mail/mutt/stable,sasl,slang,compressed,sidebar
mutt-1.9.1v3-sasl pkgpaths: mail/mutt/,sasl mail/mutt,sasl 
mail/mutt/stable,sasl mail/mutt/snapshot,sasl
Skipping mutt-1.9.1v3-gpgme (update candidate for 
mutt-1.6.2v0-compressed-sasl-sidebar-slang)
mutt-1.6.2v0-compressed-sasl-sidebar-slang pkgpaths: 
mail/mutt,sasl,sidebar,slang,compressed 
mail/mutt/,slang,compressed,sidebar,sasl 
mail/mutt/snapshot,sasl,sidebar,compressed,slang 
mail/mutt/stable,sasl,slang,compressed,sidebar
mutt-1.9.1v3-gpgme pkgpaths: mail/mutt,gpgme mail/mutt/,gpgme 
mail/mutt/snapshot,gpgme mail/mutt/stable,gpgme
Skipping mutt-1.9.1v3-sasl-sla