My clock disappeared

My GNOME clock applet disappeared from panel, as most of the things proportionally to my usage.


Each time when my system booted, from couple of other pop-ups from nowhere, I have seen this pop-up as well:
The panel encountered a problem while loading "OAFIID:GNOME_ClockApplet".

One day I decided to get rid of this annoying pop-up and I tried to reinstall that clock (what's gnome-applets) and the problem just began. I've fresh ports (via csup).

Code:
> sudo portupgrade -f gnome-applets
...
===>  Configuring for gnome-applets-2.32.1.1_1

checking for GNOME_APPLETS3... no
configure: error: Package requirements (libpanelapplet-3.0 >= 2.31.2) were not met:

No package 'libpanelapplet-3.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GNOME_APPLETS3_CFLAGS
and GNOME_APPLETS3_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
===>  Script "configure" failed unexpectedly.
Please run the gnomelogalyzer, available from
"http://www.freebsd.org/gnome/gnomelogalyzer.sh", which will diagnose the
problem and suggest a solution. If - and only if - the gnomelogalyzer cannot
...
> cd /usr/ports/*/gnome-applets
> lynx --dump http://www.freebsd.org/gnome/gnomelogalyzer.sh | sh

Generating build log. Please wait... done.

The cause of your build failure is not known to sh.  Before e-mailing the
build log to the FreeBSD GNOME team at freebsd-gnome@FreeBSD.org, TRY EACH
OF THE FOLLOWING:
...
> psearch libpanelapplet
x11-toolkits/libpanelappletmm C++ wrapper for libpanelapplet library
> pkg_info | grep libpanelapplet
(none)
> locate libpanelapplet
/usr/local/libdata/pkgconfig/libpanelapplet-2.0.pc
I've no green idea where I can install missing package: libpanelapplet
What's proper BSD way of solving that problem, apart of doing everything from scratch and reinstalling the whole GNOME.
 
What version is your gnome-panel? I have a feeling you're trying to install 2.32 components on a Gnome 2.30.
 
Yes:)
But it shouldn't detect dependency somehow?

Code:
> pkg_info | grep gnome-panel
gnome-panel-2.30.2_1 Panel component for the GNOME 2 Desktop

But I can't even upgrade it into 2.32

Code:
> sudo portupgrade gnome-panel
...
gnome-panel-2.32.1.tar.bz2                    100% of 3058 kB  835 kBps
...

  CCLD   gnome-panel
gnome_panel-main.o(.text+0x2114): In function `geginv_realized':
: undefined reference to `gdk_visual_get_depth'
gnome_panel-panel.o(.text+0xfe6): In function `panel_receive_dnd_data':
: undefined reference to `gdk_drag_context_get_selected_action'
gnome_panel-panel.o(.text+0x105d): In function `panel_receive_dnd_data':
: undefined reference to `gdk_drag_context_get_selected_action'
gnome_panel-panel.o(.text+0x1894): In function `panel_check_drop_forbidden':
: undefined reference to `gdk_drag_context_get_actions'
gnome_panel-panel.o(.text+0x18a6): In function `panel_check_drop_forbidden':
: undefined reference to `gdk_drag_context_get_suggested_action'
gnome_panel-panel.o(.text+0x194f): In function `panel_check_drop_forbidden':
: undefined reference to `gdk_drag_context_get_actions'
gnome_panel-panel.o(.text+0x19dc): In function `panel_check_dnd_target_data':
: undefined reference to `gdk_drag_context_get_actions'
gnome_panel-panel.o(.text+0x19f9): In function `panel_check_dnd_target_data':
: undefined reference to `gdk_drag_context_list_targets'
gnome_panel-launcher.o(.text+0xa6a): In function `is_this_drop_ok':
: undefined reference to `gdk_drag_context_get_actions'
gnome_panel-launcher.o(.text+0xa82): In function `is_this_drop_ok':
: undefined reference to `gdk_drag_context_list_targets'
gmake[4]: *** [gnome-panel] Error 1
gmake[4]: Leaving directory `/usr/ports/x11/gnome-panel/work/gnome-panel-2.32.1/gnome-panel'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/ports/x11/gnome-panel/work/gnome-panel-2.32.1/gnome-panel'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/ports/x11/gnome-panel/work/gnome-panel-2.32.1/gnome-panel'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/x11/gnome-panel/work/gnome-panel-2.32.1'
gmake: *** [all] Error 2
*** Error code 1

I already reported that to the maintainer by sending the e-mail:
http://permalink.gmane.org/gmane.os.freebsd.devel.gnome/30980
No reply, no fix.

It's similar dependency bug as here:
http://bugs.gentoo.org/show_bug.cgi?id=337296
Gilles Dartiguelongue said:
this symbol is in gtk+-2.22. Raised dependency and pushed.
I've:
Code:
gtk-2.20.1_2        Gimp Toolkit for X11 GUI (current stable version)
That mean I've to upgrade GTK to 2.22?

When tried to upgrade gtk, I've errors as well:

Code:
> sudo portupgrade gtk
---
>  Upgrading 'gtk-2.20.1_2' to 'gtk-2.22.1_1' (x11-toolkits/gtk20)

checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... no
configure: error: Package requirements (glib-2.0 >= 2.25.10    atk >= 1.29.2    pango >= 1.20    cairo >= 1.6    gdk-pixbuf-2.0 >= 2.21.0) were not met:

Requested 'gdk-pixbuf-2.0 >= 2.21.0' but version of GdkPixbuf is 2.20.1

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.

So I tried to upgrade gdk-pixbuf into 2.21.0 as the error says:
Code:
> pkg_info | grep gdk-pixbuf
gdk-pixbuf-0.22.0_11 A graphic library for GTK+
> sudo portupgrade gdk-pixbuf
(none)
But there is another version called gdk-pixbuf2.
Code:
> sudo portinstall gdk-pixbuf2
** No such package or port: gdk-pixbuf2
Maybe not here, but...
Code:
> sudo portinstall gdk-pixbuf\*
--->  Found 2 ports matching 'gdk-pixbuf*':
	graphics/gdk-pixbuf
	graphics/gdk-pixbuf2
Does the work. Installed gdk-pixbuf2.

Then I was able to upgrade gdk-pixbuf:
Code:
> sudo portupgrade -f gdk-pixbuf

Then upgrade of gtk:
Code:
> sudo portupgrade -f gtk

And gnome-panel again:
Code:
> sudo portupgrade -f gnome-panel

And another error:
Code:
  GISCAN PanelApplet-3.0.gir
g-ir-scanner: warning: Option --strip-prefix has been deprecated]: *** [PanelApplet-3.0.gir] Error 1
gmake[3]: Leaving directory `/usr/ports/x11/gnome-panel/work/gnome-panel-2.32.1/libpanel-applet'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/ports/x11/gnome-panel/work/gnome-panel-2.32.1/libpanel-applet'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/x11/gnome-panel/work/gnome-panel-2.32.1'
gmake: *** [all] Error 2
*** Error code 1
Enough!

This was my second try to repair my clock, after one week resting, already wasted two half-days.
I'll have a look another day, I can't spend whole day fixing the clock, which disappeared without a reason, because of some broken dependencies in ports.
 
Back
Top