Messed-up package dependencies?

2014-08-13 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

bear with me... Noob at work!

So, it seems that upgrading from 5.5-STABLE to -current completely
messed-up package dependencies.

2/3 of previously installed packages were not upgradable; I tried
to delete them all and re-add, but that of course didn't solve
anything.

Just as an example:


just22@poseidon:[~] pkga gtk+2
Update candidates: quirks-2.9 - quirks-2.9 (ok)
quirks-2.9 signed on 2014-07-31T22:37:55Z
Can't install gtk+2-2.24.24 because of libraries
|library atk-1.0.21209.1 not found
| /usr/local/lib/libatk-1.0.so.21009.1 (atk-2.10.0p0): bad major
|library ffi.1.0 not found
| /usr/local/lib/libffi.so.0.0 (libffi-3.0.9p6): bad major
|library gio-2.0.4000.0 not found
| /usr/local/lib/libgio-2.0.so.3800.0 (glib2-2.38.2p6): bad major
|library glib-2.0.4000.0 not found
| /usr/local/lib/libglib-2.0.so.3800.0 (glib2-2.38.2p6): bad major
|library gmodule-2.0.4000.0 not found
| /usr/local/lib/libgmodule-2.0.so.3800.0 (glib2-2.38.2p6): bad major
|library gobject-2.0.4000.0 not found
| /usr/local/lib/libgobject-2.0.so.3800.0 (glib2-2.38.2p6): bad major
|library gthread-2.0.4000.0 not found
| /usr/local/lib/libgthread-2.0.so.3800.0 (glib2-2.38.2p6): bad major
|library harfbuzz.4.4 not found
| /usr/local/lib/libharfbuzz.so.4.2 (harfbuzz-0.9.25): minor is too small
|library png.17.2 not found
| /usr/local/lib/libpng.so.17.1 (png-1.6.8): minor is too small
Direct dependencies for gtk+2-2.24.24 resolve to 
gtk-update-icon-cache-2.24.22p1 python-2.7.6p0 gettext-0.18.2p4 cups-libs-1.7.4
hicolor-icon-theme-0.12p2 gdk-pixbuf-2.30.4 atk-2.10.0p0 pango-1.36.2 
gnome-icon-theme-symbolic-3.10.1 libiconv-1.14p1
Full dependency tree is glib2-2.38.2p6 libdaemon-0.14p0 pcre-8.33 lzo2-2.06p0 
bzip2-1.0.6p0 python-2.7.6p0 gdbm-1.10p0 libcroco-0.6.8p0 tiff-4.0.3p2
librsvg-2.40.1 avahi-0.6.31p13 gettext-0.18.2p4 gnome-icon-theme-3.10.0p2 
pango-1.36.2 jpeg-9p0 jasper-1.900.1p2 libxml-2.9.1 png-1.6.8
gtk-update-icon-cache-2.24.22p1 libelf-0.8.13p1 shared-mime-info-1.2 
cairo-1.12.16 graphite2-1.2.4 hicolor-icon-theme-0.12p2
gnome-icon-theme-symbolic-3.10.1 dbus-1.8.0v0 cups-libs-1.7.4 harfbuzz-0.9.25 
gdk-pixbuf-2.30.4 atk-2.10.0p0 libffi-3.0.9p6 libiconv-1.14p1

So it's complaining that the library atk is not found, but... wait...
the atk version in the package tree is 2.12.0, not 1.0.21209.1

I certainly make something terribly wrong... but what? And is there
any way to recover the situation? Where should I start the debugging?

Please help.

Thanks in advance

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Messed-up package dependencies?

2014-08-13 Thread Steven Roberts
 So, it seems that upgrading from 5.5-STABLE to -current completely
 messed-up package dependencies.

http://www.openbsd.org/faq/current.html

You should ALWAYS use a snapshot as the starting point for running -current. 
Upgrading by compiling your own source code is not supported.

 I certainly make something terribly wrong... but what? And is there
 any way to recover the situation? Where should I start the debugging?

Backup your data. Install a Snapshot. Try again.

http://www.openbsd.org/faq/faq5.html#Flavors

P.S. Why do you want to run current?



Re: Messed-up package dependencies?

2014-08-13 Thread Alessandro DE LAURENZIS
Well, I didn't update the PKG_PATH var. So obvious... I should sleep a
bit more... Sorry for the noise.

All the best

On Wed 13/08 21:14, Alessandro DE LAURENZIS wrote:
 Dear misc@ readers,
 
 bear with me... Noob at work!
 
 So, it seems that upgrading from 5.5-STABLE to -current completely
 messed-up package dependencies.
 
 2/3 of previously installed packages were not upgradable; I tried
 to delete them all and re-add, but that of course didn't solve
 anything.
 
 Just as an example:
 
 
 just22@poseidon:[~] pkga gtk+2
 Update candidates: quirks-2.9 - quirks-2.9 (ok)
 quirks-2.9 signed on 2014-07-31T22:37:55Z
 Can't install gtk+2-2.24.24 because of libraries
 |library atk-1.0.21209.1 not found
 | /usr/local/lib/libatk-1.0.so.21009.1 (atk-2.10.0p0): bad major
 |library ffi.1.0 not found
 | /usr/local/lib/libffi.so.0.0 (libffi-3.0.9p6): bad major
 |library gio-2.0.4000.0 not found
 | /usr/local/lib/libgio-2.0.so.3800.0 (glib2-2.38.2p6): bad major
 |library glib-2.0.4000.0 not found
 | /usr/local/lib/libglib-2.0.so.3800.0 (glib2-2.38.2p6): bad major
 |library gmodule-2.0.4000.0 not found
 | /usr/local/lib/libgmodule-2.0.so.3800.0 (glib2-2.38.2p6): bad major
 |library gobject-2.0.4000.0 not found
 | /usr/local/lib/libgobject-2.0.so.3800.0 (glib2-2.38.2p6): bad major
 |library gthread-2.0.4000.0 not found
 | /usr/local/lib/libgthread-2.0.so.3800.0 (glib2-2.38.2p6): bad major
 |library harfbuzz.4.4 not found
 | /usr/local/lib/libharfbuzz.so.4.2 (harfbuzz-0.9.25): minor is too small
 |library png.17.2 not found
 | /usr/local/lib/libpng.so.17.1 (png-1.6.8): minor is too small
 Direct dependencies for gtk+2-2.24.24 resolve to 
 gtk-update-icon-cache-2.24.22p1 python-2.7.6p0 gettext-0.18.2p4 
 cups-libs-1.7.4
 hicolor-icon-theme-0.12p2 gdk-pixbuf-2.30.4 atk-2.10.0p0 pango-1.36.2 
 gnome-icon-theme-symbolic-3.10.1 libiconv-1.14p1
 Full dependency tree is glib2-2.38.2p6 libdaemon-0.14p0 pcre-8.33 lzo2-2.06p0 
 bzip2-1.0.6p0 python-2.7.6p0 gdbm-1.10p0 libcroco-0.6.8p0 tiff-4.0.3p2
 librsvg-2.40.1 avahi-0.6.31p13 gettext-0.18.2p4 gnome-icon-theme-3.10.0p2 
 pango-1.36.2 jpeg-9p0 jasper-1.900.1p2 libxml-2.9.1 png-1.6.8
 gtk-update-icon-cache-2.24.22p1 libelf-0.8.13p1 shared-mime-info-1.2 
 cairo-1.12.16 graphite2-1.2.4 hicolor-icon-theme-0.12p2
 gnome-icon-theme-symbolic-3.10.1 dbus-1.8.0v0 cups-libs-1.7.4 harfbuzz-0.9.25 
 gdk-pixbuf-2.30.4 atk-2.10.0p0 libffi-3.0.9p6 libiconv-1.14p1
 
 So it's complaining that the library atk is not found, but... wait...
 the atk version in the package tree is 2.12.0, not 1.0.21209.1
 
 I certainly make something terribly wrong... but what? And is there
 any way to recover the situation? Where should I start the debugging?
 
 Please help.
 
 Thanks in advance
 
 -- 
 Alessandro DE LAURENZIS
 [mailto:just22@gmail.com]
 LinkedIn: http://it.linkedin.com/in/delaurenzis

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: [Bulk] Messed-up package dependencies?

2014-08-13 Thread Kevin Chadwick
previously on this list Alessandro DE LAURENZIS contributed:

 bear with me... Noob at work!
 
 So, it seems that upgrading from 5.5-STABLE to -current completely
 messed-up package dependencies.
 
 2/3 of previously installed packages were not upgradable; I tried
 to delete them all and re-add, but that of course didn't solve
 anything.

Did you set the PKG_PATH to the snapshot package directory on the
mirror?

You can use the following which sthen posted previously
/usr/sbin/pkg_info -aq  PKG_LIST_FULL 
or /usr/sbin/pkg_info -mg  PKG_LIST_MANUAL

To get a list of installed packages

and something like

/usr/bin/env
PKG_PATH=http://???snapshot/packages/amd64; /usr/sbin/pkg_add -zl
PKG_LIST_MANUAL

to install the same set built for current

Don't forget to check out www.openbsd.org/faq/current.html and
plus.html and the faq on upgrading to current

-- 
___

'Write programs that do one thing and do it well. Write programs to work
together. Write programs to handle text streams, because that is a
universal interface'

(Doug McIlroy)

In Other Words - Don't design like polkit or systemd
___